mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-07 14:00:59 +03:00
parent
9175a201bb
commit
9081eefb9a
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl
|
{ stdenv, mkDerivation, fetchurl
|
||||||
, qtbase, qtsvg, qtserialport, qtwebkit, qtmultimedia, qttools, qtconnectivity
|
, qtbase, qtsvg, qtserialport, qtwebkit, qtmultimedia, qttools, qtconnectivity
|
||||||
, yacc, flex, zlib, qmake, makeDesktopItem, makeWrapper
|
, yacc, flex, zlib, qmake, makeDesktopItem, makeWrapper
|
||||||
}:
|
}:
|
||||||
@ -13,7 +13,7 @@ let
|
|||||||
comment = "Performance software for cyclists, runners and triathletes";
|
comment = "Performance software for cyclists, runners and triathletes";
|
||||||
categories = "Application;Utility;";
|
categories = "Application;Utility;";
|
||||||
};
|
};
|
||||||
in stdenv.mkDerivation rec {
|
in mkDerivation rec {
|
||||||
name = "golden-cheetah-${version}";
|
name = "golden-cheetah-${version}";
|
||||||
version = "3.4";
|
version = "3.4";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -29,6 +29,9 @@ in stdenv.mkDerivation rec {
|
|||||||
NIX_LDFLAGS = [
|
NIX_LDFLAGS = [
|
||||||
"-lz"
|
"-lz"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
qtWrapperArgs = [ "--set LD_LIBRARY_PATH ${zlib.out}/lib" ];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
cp src/gcconfig.pri.in src/gcconfig.pri
|
cp src/gcconfig.pri.in src/gcconfig.pri
|
||||||
cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri
|
cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri
|
||||||
@ -40,7 +43,6 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp src/GoldenCheetah $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 "${desktopItem}/share/applications/"* -t $out/share/applications/
|
||||||
install -Dm644 src/Resources/images/gc.png $out/share/pixmaps/goldencheetah.png
|
install -Dm644 src/Resources/images/gc.png $out/share/pixmaps/goldencheetah.png
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user