1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

foldingathome: Make FAHControl be able to start the FAHViewer (#82925)

The command to run when clicking the button is configurable, but by default it
tries to run `FAHViewer`.
This commit is contained in:
Claudio Bley 2020-03-19 14:05:54 +01:00 committed by GitHub
parent 9b3515eb95
commit 39767f8ae5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ stdenv
, autoPatchelfHook
, dpkg
, fahviewer
, fetchurl
, makeWrapper
, python2
@ -32,7 +33,7 @@ stdenv.mkDerivation rec {
makeWrapper
];
buildInputs = [ python ];
buildInputs = [ fahviewer python ];
doBuild = false;
@ -45,6 +46,7 @@ stdenv.mkDerivation rec {
postFixup = ''
sed -e 's|/usr/bin|$out/bin|g' -i $out/share/applications/FAHControl.desktop
wrapProgram "$out/bin/FAHControl" \
--suffix PATH : "${fahviewer.outPath}/bin" \
--set PYTHONPATH "$out/lib/python2.7/dist-packages"
'';