biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / audio / vimpc / default.nix
blob713f444ef1ea781d3b949697a529c2b05c14e1c1
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , fetchpatch
5 , autoreconfHook
6 , libmpdclient
7 , ncurses
8 , pcre
9 , pkg-config
10 , taglib
11 , curl
14 stdenv.mkDerivation rec {
15   version = "0.09.2";
16   pname = "vimpc";
18   src = fetchFromGitHub {
19     owner = "boysetsfrog";
20     repo = "vimpc";
21     rev = "v${version}";
22     sha256 = "0lswzkap2nm7v5h7ppb6a64cb35rajysd09nb204rxgrkij4m6nx";
23   };
25   patches = [
26     # Pull fix pending upstream inclusion for ncurses-6.3:
27     #  https://github.com/boysetsfrog/vimpc/pull/100
28     (fetchpatch {
29       name = "ncurses-6.3.patch";
30       url = "https://github.com/boysetsfrog/vimpc/commit/055ecdce0720fdfc9ec2528c520b6c33da36271b.patch";
31       sha256 = "01p858jjxm0bf8hnk1z8h45j8c1y9i995mafa6ff3vg9vlak61pv";
32     })
33   ];
35   nativeBuildInputs = [ autoreconfHook pkg-config ];
36   buildInputs = [ libmpdclient ncurses pcre taglib curl ];
38   postInstall = ''
39     mkdir -p $out/etc
40     cp doc/vimpcrc.example $out/etc
41   '';
43   meta = with lib; {
44     description = "A vi/vim inspired client for the Music Player Daemon (mpd)";
45     homepage = "https://github.com/boysetsfrog/vimpc";
46     license = licenses.gpl3;
47     platforms = platforms.unix;
48     maintainers = with maintainers; [ pSub ];
49     mainProgram = "vimpc";
50   };