commit 90a0b96c7b85fc0f189b7370a47a5bdd8506a010 parent 5340bc83e4edda25b69e5e735e90c807030854e2 Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Fri, 24 Jul 2020 11:37:38 +0300 Add goldendict-bin Diffstat:
A | pkgs/applications/goldendict/bin.nix | | | 32 | ++++++++++++++++++++++++++++++++ |
M | pkgs/default.nix | | | 1 | + |
2 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/pkgs/applications/goldendict/bin.nix b/pkgs/applications/goldendict/bin.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchurl, undmg }: +let + pname = "goldendict"; + version = "1.5.0-RC2-gc3ff15f"; +in +stdenv.mkDerivation { + inherit pname version; + + src = fetchurl { + url = "https://downloads.sourceforge.net/project/goldendict/early%20access%20builds/MacOS/GoldenDict-${version}}%28Qt_5121%29.dmg"; + sha256 = "1zvkwnpsybflgbgs3dvjcivrdpq4fc8njb96nsw507dmbnysq15w"; + name = "Goldendict-${version}.dmg"; + }; + + preferLocalBuild = true; + + nativeBuildInputs = [ undmg ]; + + installPhase = '' + mkdir -p $out/Applications/GoldenDict.app + cp -R . $out/Applications/GoldenDict.app + ''; + + meta = with stdenv.lib; { + description = "A feature-rich dictionary lookup program"; + homepage = "http://goldendict.org/"; + license = licenses.gpl3Plus; + maintainers = [ maintainers.sikmir ]; + platforms = [ "x86_64-darwin" ]; + skip.ci = true; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -8,6 +8,7 @@ lib.makeScope newScope ( ### APPLICATIONS + goldendict-bin = callPackage ./applications/goldendict/bin.nix { }; gpxlab = libsForQt5.callPackage ./applications/gpxlab { inherit sources; };