2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, libmpdclient
|
|
|
|
, ncurses
|
|
|
|
, pcre
|
|
|
|
, pkg-config
|
|
|
|
, taglib
|
|
|
|
, curl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.09.2";
|
|
|
|
pname = "vimpc";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boysetsfrog";
|
|
|
|
repo = "vimpc";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0lswzkap2nm7v5h7ppb6a64cb35rajysd09nb204rxgrkij4m6nx";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2021-02-13 14:23:35 +00:00
|
|
|
buildInputs = [ libmpdclient ncurses pcre taglib curl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/etc
|
|
|
|
cp doc/vimpcrc.example $out/etc
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A vi/vim inspired client for the Music Player Daemon (mpd)";
|
|
|
|
homepage = "https://github.com/boysetsfrog/vimpc";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
|
|
|
}
|