diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-08-08 21:14:59 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-08-11 22:54:48 -0500 |
commit | 08655b16f29e559bf6a4b10a6577e61febbf641f (patch) | |
tree | 376da3f55bbadbea73090add118e21faef8ac665 /pkgs/applications/networking/browsers/firefox | |
parent | c391bd3dd31cec6662995bfe6cea7a36fa3e0b5a (diff) | |
download | nixlib-08655b16f29e559bf6a4b10a6577e61febbf641f.tar nixlib-08655b16f29e559bf6a4b10a6577e61febbf641f.tar.gz nixlib-08655b16f29e559bf6a4b10a6577e61febbf641f.tar.bz2 nixlib-08655b16f29e559bf6a4b10a6577e61febbf641f.tar.lz nixlib-08655b16f29e559bf6a4b10a6577e61febbf641f.tar.xz nixlib-08655b16f29e559bf6a4b10a6577e61febbf641f.tar.zst nixlib-08655b16f29e559bf6a4b10a6577e61febbf641f.zip |
firefox: fix darwin wrapper
- add execdir passthru usually this is /bin on macOS it is different.
Diffstat (limited to 'pkgs/applications/networking/browsers/firefox')
-rw-r--r-- | pkgs/applications/networking/browsers/firefox/common.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/networking/browsers/firefox/wrapper.nix | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index 15486fc82e97..e2a3d4430df7 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -263,7 +263,7 @@ stdenv.mkDerivation (rec { installPhase = if stdenv.isDarwin then '' mkdir -p $out/Applications - cp -RL Firefox.app $out/Applications + cp -LR dist/Firefox.app $out/Applications '' else null; postInstall = lib.optionalString stdenv.isLinux '' diff --git a/pkgs/applications/networking/browsers/firefox/wrapper.nix b/pkgs/applications/networking/browsers/firefox/wrapper.nix index 313d1b1d8c82..a60d533c5a58 100644 --- a/pkgs/applications/networking/browsers/firefox/wrapper.nix +++ b/pkgs/applications/networking/browsers/firefox/wrapper.nix @@ -101,7 +101,11 @@ let nativeBuildInputs = [ makeWrapper lndir ]; buildInputs = lib.optional (browser ? gtk3) browser.gtk3; - buildCommand = '' + buildCommand = lib.optionalString stdenv.isDarwin '' + mkdir -p $out/Applications + cp -R --no-preserve=mode,ownership ${browser}/Applications/${browserName}.app $out/Applications + rm -f $out${browser.execdir}/${browserName} + '' + '' if [ ! -x "${browser}${browser.execdir}/${browserName}" ] then echo "cannot find executable file \`${browser}${browser.execdir}/${browserName}'" |