From 0ed9de25468515928415ac1bd9c7cceaa6bba6fa Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Mon, 15 Jan 2018 00:03:38 +0200 Subject: [PATCH] gnuplot: Use quoting syntax that's compatible with old and new Nix versions There is probably a way to have it work with substituteInPlace, but using sed is a cheap solution to not having to figure out how to escape "'$'" in Nix that works in both versions. Issue #31179. Fixes #33833. --- pkgs/tools/graphics/gnuplot/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/graphics/gnuplot/default.nix b/pkgs/tools/graphics/gnuplot/default.nix index 8aa14220250..a177f33bb37 100644 --- a/pkgs/tools/graphics/gnuplot/default.nix +++ b/pkgs/tools/graphics/gnuplot/default.nix @@ -39,7 +39,7 @@ stdenv.mkDerivation rec { postPatch = '' # lrelease is in qttools, not in qtbase. - substituteInPlace configure --replace '$'{QT5LOC}/lrelease lrelease + sed -i configure -e 's|''${QT5LOC}/lrelease|lrelease|' ''; configureFlags = [