From 0c633ccf2649738c654f04e780d7bebe1b288653 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Tue, 14 Aug 2018 22:34:46 -0500 Subject: [PATCH] firefox: add default for execdir not all of the browsers have this set --- pkgs/applications/networking/browsers/firefox/wrapper.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/browsers/firefox/wrapper.nix b/pkgs/applications/networking/browsers/firefox/wrapper.nix index a60d533c5a58..827dd520e364 100644 --- a/pkgs/applications/networking/browsers/firefox/wrapper.nix +++ b/pkgs/applications/networking/browsers/firefox/wrapper.nix @@ -104,22 +104,22 @@ let 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} + rm -f $out${browser.execdir or "/bin"}/${browserName} '' + '' - if [ ! -x "${browser}${browser.execdir}/${browserName}" ] + if [ ! -x "${browser}${browser.execdir or "/bin"}/${browserName}" ] then echo "cannot find executable file \`${browser}${browser.execdir}/${browserName}'" exit 1 fi makeWrapper "$(readlink -v --canonicalize-existing "${browser}${browser.execdir}/${browserName}")" \ - "$out${browser.execdir}/${browserName}${nameSuffix}" \ + "$out${browser.execdir or "/bin"}/${browserName}${nameSuffix}" \ --suffix-each MOZ_PLUGIN_PATH ':' "$plugins" \ --suffix LD_LIBRARY_PATH ':' "$libs" \ --suffix-each GTK_PATH ':' "$gtk_modules" \ --suffix-each LD_PRELOAD ':' "$(cat $(filterExisting $(addSuffix /extra-ld-preload $plugins)))" \ --prefix-contents PATH ':' "$(filterExisting $(addSuffix /extra-bin-path $plugins))" \ - --suffix PATH ':' "$out${browser.execdir}" \ + --suffix PATH ':' "$out${browser.execdir or "/bin"}" \ --set MOZ_APP_LAUNCHER "${browserName}${nameSuffix}" \ --set MOZ_SYSTEM_DIR "$out/lib/mozilla" \ ${lib.optionalString (browser ? gtk3)