diff --git a/pkgs/games/mnemosyne/default.nix b/pkgs/games/mnemosyne/default.nix index 3598cca04618..f55a7efe9643 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 = {