vimpc: refactor and adopt
This commit is contained in:
parent
2bcd1dff75
commit
3eafad1a3c
@ -1,34 +1,29 @@
|
|||||||
{ stdenv, fetchurl, autoconf, automake, mpd_clientlib, ncurses, pcre, pkgconfig, taglib }:
|
{ stdenv, fetchFromGitHub, autoreconfHook, mpd_clientlib, ncurses, pcre, pkgconfig
|
||||||
|
, taglib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.09.0";
|
version = "0.09.0";
|
||||||
name = "vimpc-${version}";
|
name = "vimpc-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/boysetsfrog/vimpc/archive/v${version}.tar.gz";
|
owner = "boysetsfrog";
|
||||||
sha256 = "13eb229a5e9eee491765ee89f7fe6a38140a41a01434b117da3869d725c15706";
|
repo = "vimpc";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1z9yx2pz84lyng1ig9y4z6pdalwxb80ig7nnzhqfy3pl36hq6shi";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ autoconf
|
buildInputs = [ autoreconfHook mpd_clientlib ncurses pcre pkgconfig taglib ];
|
||||||
automake
|
|
||||||
mpd_clientlib
|
|
||||||
ncurses
|
|
||||||
pcre
|
|
||||||
pkgconfig
|
|
||||||
taglib
|
|
||||||
];
|
|
||||||
|
|
||||||
preConfigure = "./autogen.sh";
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/etc
|
mkdir -p $out/etc
|
||||||
cp doc/vimpcrc.example $out/etc
|
cp doc/vimpcrc.example $out/etc
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "A vi/vim inspired client for the Music Player Daemon (mpd)";
|
description = "A vi/vim inspired client for the Music Player Daemon (mpd)";
|
||||||
homepage = https://github.com/boysetsfrog/vimpc;
|
homepage = https://github.com/boysetsfrog/vimpc;
|
||||||
license = stdenv.lib.licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
maintainers = with maintainers; [ pSub ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user