3
0
Fork 0
forked from mirrors/nixpkgs

golden-cheetah: use qt5's mkDerivation

See #65399
This commit is contained in:
Chris Rendle-Short 2019-08-08 21:01:09 +10:00
parent 9175a201bb
commit 9081eefb9a

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl
{ stdenv, mkDerivation, fetchurl
, qtbase, qtsvg, qtserialport, qtwebkit, qtmultimedia, qttools, qtconnectivity
, yacc, flex, zlib, qmake, makeDesktopItem, makeWrapper
}:
@ -13,7 +13,7 @@ let
comment = "Performance software for cyclists, runners and triathletes";
categories = "Application;Utility;";
};
in stdenv.mkDerivation rec {
in mkDerivation rec {
name = "golden-cheetah-${version}";
version = "3.4";
src = fetchurl {
@ -29,6 +29,9 @@ in stdenv.mkDerivation rec {
NIX_LDFLAGS = [
"-lz"
];
qtWrapperArgs = [ "--set LD_LIBRARY_PATH ${zlib.out}/lib" ];
preConfigure = ''
cp src/gcconfig.pri.in src/gcconfig.pri
cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri
@ -40,7 +43,6 @@ in stdenv.mkDerivation rec {
mkdir -p $out/bin
cp src/GoldenCheetah $out/bin
wrapProgram $out/bin/GoldenCheetah --set LD_LIBRARY_PATH "${zlib.out}/lib"
install -Dm644 "${desktopItem}/share/applications/"* -t $out/share/applications/
install -Dm644 src/Resources/images/gc.png $out/share/pixmaps/goldencheetah.png