2021-11-18 10:32:52 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, ncurses }:
|
2018-05-16 19:10:34 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pacvim";
|
2018-05-16 19:10:34 +00:00
|
|
|
version = "2018-05-16";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jmoon018";
|
|
|
|
repo = "PacVim";
|
|
|
|
rev = "ca7c8833c22c5fe97974ba5247ef1fcc00cedb8e";
|
|
|
|
sha256 = "1kq6j7xmsl5qfl1246lyglkb2rs9mnb2rhsdrp18965dpbj2mhx2";
|
|
|
|
};
|
2021-11-18 10:32:52 +00:00
|
|
|
patches = [
|
|
|
|
# Fix pending upstream inclusion for ncurses-6.3 support:
|
|
|
|
# https://github.com/jmoon018/PacVim/pull/53
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ncurses-6.3.patch";
|
|
|
|
url = "https://github.com/jmoon018/PacVim/commit/760682824cdbb328af616ff43bf822ade23924f7.patch";
|
|
|
|
sha256 = "1y3928dc2nkfldqhpiqk0blbx7qj8ar35f1w7fb92qwxrj8p4i6g";
|
|
|
|
})
|
|
|
|
];
|
2018-05-16 19:10:34 +00:00
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-05-16 19:10:34 +00:00
|
|
|
homepage = "https://github.com/jmoon018/PacVim";
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "A game that teaches you vim commands";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "pacvim";
|
2018-05-16 19:10:34 +00:00
|
|
|
maintainers = with maintainers; [ infinisil ];
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|