From 5149f278aa61cb52fa65d39cc383c1c7d8e4360d Mon Sep 17 00:00:00 2001 From: vi Date: Tue, 25 Mar 2014 03:28:19 +0800 Subject: [PATCH] Patch *all* references to `sys.exec_prefix`. --- pkgs/games/mnemosyne/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/games/mnemosyne/default.nix b/pkgs/games/mnemosyne/default.nix index 3598cca0461..f55a7efe964 100644 --- a/pkgs/games/mnemosyne/default.nix +++ b/pkgs/games/mnemosyne/default.nix @@ -16,7 +16,7 @@ in pythonPackages.buildPythonPackage rec { ]; preConfigure = '' substituteInPlace setup.py --replace /usr $out - substituteInPlace setup.py --replace sys.exec_prefix \"$out\" + find . -type f -exec grep -H sys.exec_prefix {} ';' | cut -d: -f1 | xargs sed -i s,sys.exec_prefix,\"$out\", ''; installCommand = "python setup.py install --prefix=$out"; meta = {