Skip to content

Commit

Permalink
#2912 nix: try to fix binary renaming for macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Dec 9, 2024
1 parent 8e0a379 commit 0370310
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,10 @@ stdenv.mkDerivation {
+ lib.optionalString stdenv.isLinux ''
ln -s $out/bin/${appname} $out/bin/${pname}
''
# Wrap application for macOS as lowercase binary
# Remame application for macOS as lowercase binary
+ lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications
find $out
mv $out/bin/${appname}.app $out/Applications
makeWrapper $out/Applications/${appname}.app/Contents/MacOS/${appname} $out/bin/${pname}
mv $out/bin/${appname} $out/bin/${pname}
'';

meta = with lib; {
Expand Down

0 comments on commit 0370310

Please sign in to comment.