diff options
author | Laverne Schrock <laverne@schrock.email> | 2017-02-13 18:40:36 -0600 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-02-15 00:50:05 +0100 |
commit | f56fa4824a3ebb79c797e83dda4eb6fb3f0dcee0 (patch) | |
tree | cbe9b29f2262f86e14ac2631881d142e684f404e /pkgs/games/mnemosyne | |
parent | e18bec1e3c902d6ae8ce84f8d5586fc3e784aed0 (diff) |
mnemosyne: move generated locale files to correct location
It feels like a bit of a hack to move them after the install rather than generating them in the correct spot in the first place, but this fixes #12763.
Diffstat (limited to 'pkgs/games/mnemosyne')
-rw-r--r-- | pkgs/games/mnemosyne/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/games/mnemosyne/default.nix b/pkgs/games/mnemosyne/default.nix index c1bde5fcbc365..03052c52f7fe0 100644 --- a/pkgs/games/mnemosyne/default.nix +++ b/pkgs/games/mnemosyne/default.nix @@ -20,6 +20,11 @@ in pythonPackages.buildPythonApplication rec { substituteInPlace setup.py --replace /usr $out find . -type f -exec grep -H sys.exec_prefix {} ';' | cut -d: -f1 | xargs sed -i s,sys.exec_prefix,\"$out\", ''; + postInstall = '' + mkdir -p $out/share + mv $out/lib/python2.7/site-packages/$out/share/locale $out/share + rm -r $out/lib/python2.7/site-packages/nix + ''; meta = { homepage = http://mnemosyne-proj.org/; description = "Spaced-repetition software"; |