2021-07-03 21:28:44 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, readline }:
|
2019-07-10 11:19:31 +00:00
|
|
|
|
|
|
|
let
|
2022-04-22 21:13:05 +00:00
|
|
|
patchPrefix = "https://web.archive.org/web/20220422205751/https://github.com/samuelgrf/kjv/commit/";
|
2019-07-10 11:19:31 +00:00
|
|
|
|
2021-07-03 21:28:44 +00:00
|
|
|
add-apocrypha = fetchpatch {
|
|
|
|
url = patchPrefix + "0856fa0d37b45de0d6b47d163b5ea9a0b7f2c061.patch";
|
|
|
|
sha256 = "1jkajdg4wvpbbwc5mn37i4c8nfis4z0pv5rl7gqs0laj0gpj7jn8";
|
|
|
|
};
|
2019-07-10 11:19:31 +00:00
|
|
|
|
2021-07-03 21:28:44 +00:00
|
|
|
add-install-target = fetchpatch {
|
|
|
|
url = patchPrefix + "50a83256ee45430fb06b7aea1945dd91c6813bc3.patch";
|
|
|
|
sha256 = "0bv9yma67jdj496a6vn6y007c9gwjpg3rzld1i9m9y9xmlzq4yzv";
|
|
|
|
};
|
2019-07-10 11:19:31 +00:00
|
|
|
in
|
|
|
|
|
2021-07-03 21:28:44 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-07-10 11:19:31 +00:00
|
|
|
pname = "kjv";
|
2021-07-03 21:28:44 +00:00
|
|
|
version = "unstable-2021-03-11";
|
2019-07-10 11:19:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bontibon";
|
2021-07-03 21:28:44 +00:00
|
|
|
repo = "kjv";
|
|
|
|
rev = "108595dcbb9bb12d40e0309f029b6fb3ccd81309";
|
|
|
|
hash = "sha256-Z6myd9Xn23pYizG+IZVDrP988pYU06QIcpqXtWTcPiw=";
|
2019-07-10 11:19:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ add-apocrypha add-install-target ];
|
|
|
|
|
2021-07-03 21:28:44 +00:00
|
|
|
buildInputs = [ readline ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
2019-07-10 11:19:31 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-07-10 11:19:31 +00:00
|
|
|
description = "Bible, King James Version";
|
|
|
|
homepage = "https://github.com/bontibon/kjv";
|
2021-07-03 21:28:44 +00:00
|
|
|
license = licenses.unlicense;
|
2022-09-18 15:01:46 +00:00
|
|
|
maintainers = with maintainers; [ jtobin cafkafk ];
|
2021-07-03 21:28:44 +00:00
|
|
|
mainProgram = "kjv";
|
2019-07-10 11:19:31 +00:00
|
|
|
};
|
|
|
|
}
|