Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / kjv / default.nix
blobdca694bf2979277c6afbcb2ac54644ebbf1e04a8
1 { lib, stdenv, fetchFromGitHub, fetchpatch, readline }:
3 let
4   patchPrefix = "https://web.archive.org/web/20220422205751/https://github.com/samuelgrf/kjv/commit/";
6   add-apocrypha = fetchpatch {
7     url = patchPrefix + "0856fa0d37b45de0d6b47d163b5ea9a0b7f2c061.patch";
8     sha256 = "1jkajdg4wvpbbwc5mn37i4c8nfis4z0pv5rl7gqs0laj0gpj7jn8";
9   };
11   add-install-target = fetchpatch {
12     url = patchPrefix + "50a83256ee45430fb06b7aea1945dd91c6813bc3.patch";
13     sha256 = "0bv9yma67jdj496a6vn6y007c9gwjpg3rzld1i9m9y9xmlzq4yzv";
14   };
17 stdenv.mkDerivation {
18   pname = "kjv";
19   version = "unstable-2021-03-11";
21   src = fetchFromGitHub {
22     owner = "bontibon";
23     repo = "kjv";
24     rev = "108595dcbb9bb12d40e0309f029b6fb3ccd81309";
25     hash = "sha256-Z6myd9Xn23pYizG+IZVDrP988pYU06QIcpqXtWTcPiw=";
26   };
28   patches = [ add-apocrypha add-install-target ];
30   buildInputs = [ readline ];
32   makeFlags = [ "PREFIX=${placeholder "out"}" ];
34   meta = with lib; {
35     description = "The Bible, King James Version";
36     homepage = "https://github.com/bontibon/kjv";
37     license = licenses.unlicense;
38     maintainers = with maintainers; [ jtobin cafkafk ];
39     mainProgram = "kjv";
40   };