Merge pull request #219833 from wegank/mnemosyne-darwin
mnemosyne: fix build on darwin
This commit is contained in:
commit
e75ebddfc6
1 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,7 @@
|
||||||
{ fetchurl
|
{ lib
|
||||||
|
, stdenv
|
||||||
, python
|
, python
|
||||||
|
, fetchurl
|
||||||
, anki
|
, anki
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -29,18 +31,16 @@ python.pkgs.buildPythonApplication rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace setup.py --replace /usr $out
|
substituteInPlace setup.py \
|
||||||
find . -type f -exec grep -H sys.exec_prefix {} ';' | cut -d: -f1 | xargs sed -i s,sys.exec_prefix,\"$out\",
|
--replace '("", ["/usr/local/bin/mplayer"])' ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# No tests/ directrory in tarball
|
# No tests/ directory in tarball
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/applications
|
mkdir -p $out/share/applications
|
||||||
mv $out/${python.sitePackages}/$out/share/locale $out/share
|
|
||||||
mv mnemosyne.desktop $out/share/applications
|
mv mnemosyne.desktop $out/share/applications
|
||||||
rm -r $out/${python.sitePackages}/nix
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
|
Loading…
Reference in a new issue