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.
This commit is contained in:
Laverne Schrock 2017-02-13 18:40:36 -06:00 committed by Franz Pletz
parent e18bec1e3c
commit f56fa4824a

View File

@ -20,6 +20,11 @@ in pythonPackages.buildPythonApplication rec {
substituteInPlace setup.py --replace /usr $out 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\", 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 = { meta = {
homepage = http://mnemosyne-proj.org/; homepage = http://mnemosyne-proj.org/;
description = "Spaced-repetition software"; description = "Spaced-repetition software";