syncthingtray: move app to /Applications
& add binary to /bin
This commit is contained in:
parent
aa194f3efe
commit
60a7f51554
@ -76,8 +76,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
export QT_QPA_PLATFORM=offscreen
|
||||
export QT_PLUGIN_PATH="${lib.getBin qtbase}/${qtbase.qtPluginPrefix}"
|
||||
'';
|
||||
# don't test --help on Darwin because output is .app
|
||||
doInstallCheck = !stdenv.isDarwin;
|
||||
postInstall = lib.optionalString stdenv.isDarwin ''
|
||||
# put the app bundle into the proper place /Applications instead of /bin
|
||||
mkdir -p $out/Applications
|
||||
mv $out/bin/syncthingtray.app $out/Applications
|
||||
# Make binary available in PATH like on other platforms
|
||||
ln -s $out/Applications/syncthingtray.app/Contents/MacOS/syncthingtray $out/bin/syncthingtray
|
||||
'';
|
||||
installCheckPhase = ''
|
||||
$out/bin/syncthingtray --help | grep ${finalAttrs.version}
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user