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 13:05:54 +00:00
committed by GitHub
parent 9b3515eb95
commit 39767f8ae5
@@ -1,6 +1,7 @@
{ stdenv { stdenv
, autoPatchelfHook , autoPatchelfHook
, dpkg , dpkg
, fahviewer
, fetchurl , fetchurl
, makeWrapper , makeWrapper
, python2 , python2
@@ -32,7 +33,7 @@ stdenv.mkDerivation rec {
makeWrapper makeWrapper
]; ];
buildInputs = [ python ]; buildInputs = [ fahviewer python ];
doBuild = false; doBuild = false;
@@ -45,6 +46,7 @@ stdenv.mkDerivation rec {
postFixup = '' postFixup = ''
sed -e 's|/usr/bin|$out/bin|g' -i $out/share/applications/FAHControl.desktop sed -e 's|/usr/bin|$out/bin|g' -i $out/share/applications/FAHControl.desktop
wrapProgram "$out/bin/FAHControl" \ wrapProgram "$out/bin/FAHControl" \
--suffix PATH : "${fahviewer.outPath}/bin" \
--set PYTHONPATH "$out/lib/python2.7/dist-packages" --set PYTHONPATH "$out/lib/python2.7/dist-packages"
''; '';