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`.

Changed files
+3 -1
pkgs
applications
science
misc
foldingathome
+3 -1
pkgs/applications/science/misc/foldingathome/control.nix
···
{ stdenv
, autoPatchelfHook
, dpkg
+
, fahviewer
, fetchurl
, makeWrapper
, python2
···
makeWrapper
];
-
buildInputs = [ python ];
+
buildInputs = [ fahviewer python ];
doBuild = false;
···
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"
'';