nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 9893ddaacd694ff47593b87d354f35531eef6b30
parent c63a9378203e0d6f629ee7e789a463707f5ba17e
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sun,  2 Aug 2020 16:13:34 +0300

Add anki-bin

Diffstat:
Apkgs/applications/anki/bin.nix | 36++++++++++++++++++++++++++++++++++++
Mpkgs/default.nix | 1+
2 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/pkgs/applications/anki/bin.nix b/pkgs/applications/anki/bin.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchfromgh, undmg }: +let + pname = "anki"; + version = "2.1.29"; +in +stdenv.mkDerivation { + inherit pname version; + + src = fetchfromgh { + owner = "ankitects"; + repo = "anki"; + name = "anki-${version}-mac.dmg"; + sha256 = "0cdswjn83cb360h0i0fckpyaj4qpra78qwxdg7ci9h327dan3z5k"; + inherit version; + }; + + preferLocalBuild = true; + + nativeBuildInputs = [ undmg ]; + + sourceRoot = "Anki.app"; + + installPhase = '' + mkdir -p $out/Applications/Anki.app + cp -R . $out/Applications/Anki.app + ''; + + meta = with stdenv.lib; { + homepage = "https://apps.ankiweb.net/"; + description = "Spaced repetition flashcard program"; + license = licenses.agpl3Plus; + platforms = [ "x86_64-darwin" ]; + maintainers = [ maintainers.sikmir ]; + skip.ci = true; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -8,6 +8,7 @@ lib.makeScope newScope ( ### APPLICATIONS + anki-bin = callPackage ./applications/anki/bin.nix { }; goldendict-bin = callPackage ./applications/goldendict/bin.nix { }; gpxlab = libsForQt5.callPackage ./applications/gpxlab { inherit sources;