From f2f972dc200ac3fe7f74eb96fe5d91017447d76d Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Tue, 30 Nov 2021 14:01:43 +0800 Subject: [PATCH] firefox-wrapper: add replace to nativeBuildInputs instead of string interpolation --- pkgs/applications/networking/browsers/firefox/wrapper.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/browsers/firefox/wrapper.nix b/pkgs/applications/networking/browsers/firefox/wrapper.nix index 462c24a62319..0b64bc7de968 100644 --- a/pkgs/applications/networking/browsers/firefox/wrapper.nix +++ b/pkgs/applications/networking/browsers/firefox/wrapper.nix @@ -189,7 +189,7 @@ let ]; }; - nativeBuildInputs = [ makeWrapper lndir ]; + nativeBuildInputs = [ makeWrapper lndir replace ]; buildInputs = [ browser.gtk3 ]; @@ -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