uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
81
pkgs/games/mnemosyne/default.nix
Normal file
81
pkgs/games/mnemosyne/default.nix
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
{ fetchurl
|
||||
, python
|
||||
, anki
|
||||
}:
|
||||
|
||||
python.pkgs.buildPythonApplication rec {
|
||||
pname = "mnemosyne";
|
||||
version = "2.7.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/mnemosyne-proj/mnemosyne/mnemosyne-${version}/Mnemosyne-${version}.tar.gz";
|
||||
sha256 = "09yp9zc00xrc9dmjbsscnkb3hsv3yj46sxikc0r6s9cbghn3nypy";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with python.pkgs; [ pyqtwebengine.wrapQtAppsHook ];
|
||||
|
||||
buildInputs = [ anki ];
|
||||
|
||||
propagatedBuildInputs = with python.pkgs; [
|
||||
cheroot
|
||||
cherrypy
|
||||
googletrans
|
||||
gtts
|
||||
matplotlib
|
||||
pyopengl
|
||||
pyqt5
|
||||
pyqtwebengine
|
||||
webob
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
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\",
|
||||
'';
|
||||
|
||||
# No tests/ directrory in tarball
|
||||
doCheck = false;
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/applications
|
||||
mv $out/${python.sitePackages}/$out/share/locale $out/share
|
||||
mv mnemosyne.desktop $out/share/applications
|
||||
rm -r $out/${python.sitePackages}/nix
|
||||
'';
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
makeWrapperArgs = [
|
||||
"\${qtWrapperArgs[@]}"
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://mnemosyne-proj.org/";
|
||||
description = "Spaced-repetition software";
|
||||
longDescription = ''
|
||||
The Mnemosyne Project has two aspects:
|
||||
|
||||
* It's a free flash-card tool which optimizes your learning process.
|
||||
* It's a research project into the nature of long-term memory.
|
||||
|
||||
We strive to provide a clear, uncluttered piece of software, easy to use
|
||||
and to understand for newbies, but still infinitely customisable through
|
||||
plugins and scripts for power users.
|
||||
|
||||
## Efficient learning
|
||||
|
||||
Mnemosyne uses a sophisticated algorithm to schedule the best time for
|
||||
a card to come up for review. Difficult cards that you tend to forget
|
||||
quickly will be scheduled more often, while Mnemosyne won't waste your
|
||||
time on things you remember well.
|
||||
|
||||
## Memory research
|
||||
|
||||
If you want, anonymous statistics on your learning process can be
|
||||
uploaded to a central server for analysis. This data will be valuable to
|
||||
study the behaviour of our memory over a very long time period. The
|
||||
results will be used to improve the scheduling algorithms behind the
|
||||
software even further.
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue