From 592d23d7db0880f92bb6c71b83368b9fa6412d70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sun, 27 Aug 2017 17:03:46 +0200 Subject: [PATCH] maxx: fix evaluation Occurences of `$'` apparently do have to be quoted in ''-strings. --- pkgs/desktops/maxx/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/maxx/default.nix b/pkgs/desktops/maxx/default.nix index 3e8ca1f388e9..339183f906ec 100644 --- a/pkgs/desktops/maxx/default.nix +++ b/pkgs/desktops/maxx/default.nix @@ -34,7 +34,7 @@ in stdenv.mkDerivation { nativeBuildInputs = [ makeWrapper ]; buildPhase = '' - while IFS= read -r -d $'\0' i; do + while IFS= read -r -d ''$'\0' i; do substituteInPlace "$i" --replace /opt/MaXX $out/opt/MaXX done < <(find "." -type f -exec grep -Iq /opt/MaXX {} \; -and -print0) @@ -57,7 +57,7 @@ in stdenv.mkDerivation { --prefix GDK_PIXBUF_MODULE_FILE : "$(echo ${librsvg.out}/lib/gdk-pixbuf-2.0/*/loaders.cache)" \ --prefix PATH : ${stdenv.lib.makeBinPath runtime_deps} - while IFS= read -r -d $'\0' i; do + while IFS= read -r -d ''$'\0' i; do if isELF "$i"; then bin=`patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$i"; echo $?` patchelf --set-rpath "${stdenv.lib.makeLibraryPath deps}" "$i"