From 9e3253bb72f5e0942bb7c733ea45741f006aa824 Mon Sep 17 00:00:00 2001 From: Jared Tobin Date: Wed, 10 Jul 2019 20:19:31 +0900 Subject: [PATCH] kjv: init at unstable-2018-12-25 --- pkgs/applications/misc/kjv/default.nix | 43 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 45 insertions(+) create mode 100644 pkgs/applications/misc/kjv/default.nix diff --git a/pkgs/applications/misc/kjv/default.nix b/pkgs/applications/misc/kjv/default.nix new file mode 100644 index 000000000000..79f0b8dc6df2 --- /dev/null +++ b/pkgs/applications/misc/kjv/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchFromGitHub, fetchpatch }: + +let + +patch-base = https://github.com/LukeSmithxyz/kjv/commit/; + +add-apocrypha = fetchpatch { + url = patch-base + "b92b7622285d10464f9274f11e740bef90705bbc.patch"; + sha256 = "0n4sj8p9m10fcair4msc129jxkkx5whqzhjbr5k4lfgp6nb1zk8k"; +}; + +add-install-target = fetchpatch { + url = patch-base + "f4ad73539eb73f1890f4b791d8d38dd95900a4a4.patch"; + sha256 = "1yzj72i5fkzn2i4wl09q6jx7nwn2h4jwm49fc23nxfwchzar9m1q"; +}; + +in + +stdenv.mkDerivation rec { + pname = "kjv"; + version = "unstable-2018-12-25"; + + src = fetchFromGitHub { + owner = "bontibon"; + repo = pname; + rev = "fda81a610e4be0e7c5cf242de655868762dda1d4"; + sha256 = "1favfcjvd3pzz1ywwv3pbbxdg7v37s8vplgsz8ag016xqf5ykqqf"; + }; + + patches = [ add-apocrypha add-install-target ]; + + makeFlags = [ + "PREFIX=${placeholder ''out''}" + ]; + + meta = with stdenv.lib; { + description = "The Bible, King James Version"; + homepage = "https://github.com/bontibon/kjv"; + license = licenses.publicDomain; + maintainers = [ maintainers.jtobin ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bf9c11c56154..e380e1d9c7fc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -858,6 +858,8 @@ in inherit (darwin.apple_sdk.frameworks) Carbon Cocoa; }; + kjv = callPackage ../applications/misc/kjv { }; + luigi = callPackage ../applications/networking/cluster/luigi { }; m-cli = callPackage ../os-specific/darwin/m-cli { };