Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 61 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 autoreconfHook, 7 libmpdclient, 8 ncurses, 9 pcre, 10 pkg-config, 11 taglib, 12 curl, 13}: 14 15stdenv.mkDerivation rec { 16 version = "0.09.2"; 17 pname = "vimpc"; 18 19 src = fetchFromGitHub { 20 owner = "boysetsfrog"; 21 repo = "vimpc"; 22 rev = "v${version}"; 23 sha256 = "0lswzkap2nm7v5h7ppb6a64cb35rajysd09nb204rxgrkij4m6nx"; 24 }; 25 26 patches = [ 27 # Pull fix pending upstream inclusion for ncurses-6.3: 28 # https://github.com/boysetsfrog/vimpc/pull/100 29 (fetchpatch { 30 name = "ncurses-6.3.patch"; 31 url = "https://github.com/boysetsfrog/vimpc/commit/055ecdce0720fdfc9ec2528c520b6c33da36271b.patch"; 32 sha256 = "01p858jjxm0bf8hnk1z8h45j8c1y9i995mafa6ff3vg9vlak61pv"; 33 }) 34 ]; 35 36 nativeBuildInputs = [ 37 autoreconfHook 38 pkg-config 39 ]; 40 buildInputs = [ 41 libmpdclient 42 ncurses 43 pcre 44 taglib 45 curl 46 ]; 47 48 postInstall = '' 49 mkdir -p $out/etc 50 cp doc/vimpcrc.example $out/etc 51 ''; 52 53 meta = with lib; { 54 description = "Vi/vim inspired client for the Music Player Daemon (mpd)"; 55 homepage = "https://github.com/boysetsfrog/vimpc"; 56 license = licenses.gpl3; 57 platforms = platforms.unix; 58 maintainers = with maintainers; [ pSub ]; 59 mainProgram = "vimpc"; 60 }; 61}