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:
parent
e18bec1e3c
commit
f56fa4824a
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user