2017-01-21 12:26:30 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, qtbase, qtsvg, qtserialport, qtwebkit, qtmultimedia, qttools, qtconnectivity
|
|
|
|
, yacc, flex, zlib, config, qmakeHook, makeQtWrapper
|
|
|
|
}:
|
2016-04-17 10:32:02 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "golden-cheetah-${version}";
|
2017-01-21 12:26:30 +00:00
|
|
|
version = "3.4";
|
2016-04-17 10:32:02 +01:00
|
|
|
src = fetchurl {
|
2016-04-24 14:32:05 +01:00
|
|
|
name = "${name}.tar.gz";
|
|
|
|
url = "https://github.com/GoldenCheetah/GoldenCheetah/archive/V${version}.tar.gz";
|
2017-01-21 12:26:30 +00:00
|
|
|
sha256 = "0fiz2pj155cd357kph50lc6rjyzwp045glfv4y68qls9j7m9ayaf";
|
2016-04-17 10:32:02 +01:00
|
|
|
};
|
2017-01-21 12:26:30 +00:00
|
|
|
qtInputs = [
|
2016-04-17 10:32:02 +01:00
|
|
|
qtbase qtsvg qtserialport qtwebkit qtmultimedia qttools yacc flex zlib
|
2017-01-21 12:26:30 +00:00
|
|
|
qtconnectivity
|
2016-04-17 10:32:02 +01:00
|
|
|
];
|
2017-01-21 12:26:30 +00:00
|
|
|
nativeBuildInputs = [ makeQtWrapper qmakeHook ] ++ qtInputs;
|
2016-04-21 01:12:49 +01:00
|
|
|
preConfigure = ''
|
2016-04-17 10:32:02 +01:00
|
|
|
cp src/gcconfig.pri.in src/gcconfig.pri
|
|
|
|
cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri
|
2016-08-31 17:37:05 +01:00
|
|
|
echo 'QMAKE_LRELEASE = ${qttools.dev}/bin/lrelease' >> src/gcconfig.pri
|
2016-04-17 10:32:02 +01:00
|
|
|
sed -i -e '21,23d' qwt/qwtconfig.pri # Removed forced installation to /usr/local
|
2016-04-19 11:13:33 +01:00
|
|
|
'';
|
2016-04-17 10:32:02 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp src/GoldenCheetah $out/bin
|
2017-01-21 12:26:30 +00:00
|
|
|
wrapQtProgram $out/bin/GoldenCheetah --set LD_LIBRARY_PATH "${zlib.out}/lib"
|
2016-04-17 10:32:02 +01:00
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
description = "Performance software for cyclists, runners and triathletes";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ocharles ];
|
|
|
|
};
|
|
|
|
}
|