lol
1{ lib, stdenv, fetchFromGitHub, fetchpatch, gettext, libiconv, bison, ncurses, perl, autoreconfHook }:
2
3stdenv.mkDerivation rec {
4 pname = "lifelines";
5 version = "unstable-2019-05-07";
6
7 src = fetchFromGitHub {
8 owner = pname;
9 repo = pname;
10 rev = "43f29285ed46fba322b6a14322771626e6b02c59";
11 sha256 = "1agszzlmkxmznpc1xj0vzxkskrcfagfjvqsdyw1yp5yg6bsq272y";
12 };
13
14 patches = [
15 # Fix pending upstream inclusion for ncurses-6.3 support:
16 # https://github.com/lifelines/lifelines/pull/437
17 (fetchpatch {
18 name = "ncurses-6.3.patch";
19 url = "https://github.com/lifelines/lifelines/commit/e04ce2794d458c440787c191877fbbc0784447bd.patch";
20 sha256 = "1smnz4z5hfjas79bfvlnpw9x8199a5g0p9cvhf17zpcnz1432kg7";
21 })
22 ];
23
24 buildInputs = [
25 gettext
26 libiconv
27 ncurses
28 perl
29 ];
30 nativeBuildInputs = [ autoreconfHook bison ];
31
32 meta = with lib; {
33 description = "Genealogy tool with ncurses interface";
34 homepage = "https://lifelines.github.io/lifelines/";
35 license = licenses.mit;
36 maintainers = with maintainers; [ disassembler ];
37 platforms = platforms.linux;
38 };
39}