mnemosyne: fix build on darwin

+6 -6
+6 -6
pkgs/games/mnemosyne/default.nix
··· 1 - { fetchurl 1 + { lib 2 + , stdenv 2 3 , python 4 + , fetchurl 3 5 , anki 4 6 }: 5 7 ··· 29 31 ]; 30 32 31 33 prePatch = '' 32 - substituteInPlace setup.py --replace /usr $out 33 - find . -type f -exec grep -H sys.exec_prefix {} ';' | cut -d: -f1 | xargs sed -i s,sys.exec_prefix,\"$out\", 34 + substituteInPlace setup.py \ 35 + --replace '("", ["/usr/local/bin/mplayer"])' "" 34 36 ''; 35 37 36 - # No tests/ directrory in tarball 38 + # No tests/ directory in tarball 37 39 doCheck = false; 38 40 39 41 postInstall = '' 40 42 mkdir -p $out/share/applications 41 - mv $out/${python.sitePackages}/$out/share/locale $out/share 42 43 mv mnemosyne.desktop $out/share/applications 43 - rm -r $out/${python.sitePackages}/nix 44 44 ''; 45 45 46 46 dontWrapQtApps = true;