djview: link executable to $out/bin for darwin (#415865)

This commit is contained in:
Aleksana
2025-06-12 09:54:37 +08:00
committed by GitHub
+5
View File
@@ -61,6 +61,11 @@ stdenv.mkDerivation rec {
lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p ${Applications}
cp -a src/djview.app -t ${Applications}
mkdir -p $out/bin
pushd $out/bin
ln -sf ../Applications/djview.app/Contents/MacOS/djview
popd
'';
meta = with lib; {