sdrangel: fix build on x86_64-darwin
[NixPkgs.git] / pkgs / games / pacvim / default.nix
blob1335f46d342c023dd4f7824a7debf6d7ebc4566f
1 { lib, stdenv, fetchFromGitHub, fetchpatch, ncurses }:
3 stdenv.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   ];
22   buildInputs = [ ncurses ];
23   makeFlags = [ "PREFIX=$(out)" ];
25   meta = with lib; {
26     homepage = "https://github.com/jmoon018/PacVim";
27     description = "A game that teaches you vim commands";
28     mainProgram = "pacvim";
29     maintainers = [ ];
30     license = licenses.lgpl3;
31     platforms = platforms.unix;
32   };