2021-02-12 11:33:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2021-11-19 09:23:32 +00:00
|
|
|
, fetchpatch
|
2021-02-12 11:33:57 +00:00
|
|
|
, autoreconfHook
|
|
|
|
, libmpdclient
|
|
|
|
, ncurses
|
|
|
|
, pcre
|
|
|
|
, pkg-config
|
|
|
|
, taglib
|
|
|
|
, curl
|
|
|
|
}:
|
2014-07-25 14:32:04 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-16 07:10:28 +00:00
|
|
|
version = "0.09.2";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "vimpc";
|
2014-07-25 14:32:04 +01:00
|
|
|
|
2015-07-01 17:30:55 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boysetsfrog";
|
|
|
|
repo = "vimpc";
|
2018-05-23 11:31:59 +01:00
|
|
|
rev = "v${version}";
|
2019-02-16 07:10:28 +00:00
|
|
|
sha256 = "0lswzkap2nm7v5h7ppb6a64cb35rajysd09nb204rxgrkij4m6nx";
|
2014-07-25 14:32:04 +01:00
|
|
|
};
|
|
|
|
|
2021-11-19 09:23:32 +00:00
|
|
|
patches = [
|
|
|
|
# Pull fix pending upstream inclusion for ncurses-6.3:
|
|
|
|
# https://github.com/boysetsfrog/vimpc/pull/100
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ncurses-6.3.patch";
|
|
|
|
url = "https://github.com/boysetsfrog/vimpc/commit/055ecdce0720fdfc9ec2528c520b6c33da36271b.patch";
|
|
|
|
sha256 = "01p858jjxm0bf8hnk1z8h45j8c1y9i995mafa6ff3vg9vlak61pv";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2021-02-12 11:33:57 +00:00
|
|
|
buildInputs = [ libmpdclient ncurses pcre taglib curl ];
|
2014-07-25 14:32:04 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/etc
|
|
|
|
cp doc/vimpcrc.example $out/etc
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "A vi/vim inspired client for the Music Player Daemon (mpd)";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/boysetsfrog/vimpc";
|
2015-07-01 17:30:55 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2014-07-25 14:32:04 +01:00
|
|
|
};
|
|
|
|
}
|