1{ lib, stdenv, fetchFromGitHub, fetchpatch, ncurses }:
2
3stdenv.mkDerivation {
4 pname = "pacvim";
5 version = "2018-05-16";
6 src = fetchFromGitHub {
7 owner = "jmoon018";
8 repo = "PacVim";
9 rev = "ca7c8833c22c5fe97974ba5247ef1fcc00cedb8e";
10 sha256 = "1kq6j7xmsl5qfl1246lyglkb2rs9mnb2rhsdrp18965dpbj2mhx2";
11 };
12 patches = [
13 # Fix pending upstream inclusion for ncurses-6.3 support:
14 # https://github.com/jmoon018/PacVim/pull/53
15 (fetchpatch {
16 name = "ncurses-6.3.patch";
17 url = "https://github.com/jmoon018/PacVim/commit/760682824cdbb328af616ff43bf822ade23924f7.patch";
18 sha256 = "1y3928dc2nkfldqhpiqk0blbx7qj8ar35f1w7fb92qwxrj8p4i6g";
19 })
20 ];
21
22 buildInputs = [ ncurses ];
23 makeFlags = [ "PREFIX=$(out)" ];
24
25 meta = with lib; {
26 homepage = "https://github.com/jmoon018/PacVim";
27 description = "A game that teaches you vim commands";
28 maintainers = with maintainers; [ infinisil ];
29 license = licenses.lgpl3;
30 platforms = platforms.unix;
31 };
32}