Skip to content

Commit

Permalink
Merge pull request #153028 from NickCao/firefox-wrapper
Browse files Browse the repository at this point in the history
firefox-wrapper: add replace to nativeBuildInputs instead of string i…
  • Loading branch information
lovesegfault authored Jan 3, 2022
2 parents adf7f03 + f2f972d commit 0bed14f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/applications/networking/browsers/firefox/wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ let
];
};

nativeBuildInputs = [ makeWrapper lndir ];
nativeBuildInputs = [ makeWrapper lndir replace ];
buildInputs = [ browser.gtk3 ];


Expand Down Expand Up @@ -226,14 +226,14 @@ let
cd "${browser}"
find . -type l -print0 | while read -d $'\0' l; do
target="$(readlink "$l" | ${replace}/bin/replace-literal -es -- "${browser}" "$out")"
target="$(readlink "$l" | replace-literal -es -- "${browser}" "$out")"
ln -sfT "$target" "$out/$l"
done
# This will not patch binaries, only "text" files.
# Its there for the wrapper mostly.
cd "$out"
${replace}/bin/replace-literal -esfR -- "${browser}" "$out"
replace-literal -esfR -- "${browser}" "$out"
# create the wrapper
Expand Down

0 comments on commit 0bed14f

Please sign in to comment.