Skip to content

Commit

Permalink
gnuplot: Use quoting syntax that's compatible with old and new Nix ve…
Browse files Browse the repository at this point in the history
…rsions

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.
  • Loading branch information
dezgeg committed Jan 14, 2018
1 parent 67e8392 commit 0ed9de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/tools/graphics/gnuplot/default.nix
Expand Up @@ -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 = [
Expand Down

0 comments on commit 0ed9de2

Please sign in to comment.