@@ -1,34 +1,29 @@
1−{ stdenv, fetchurl, autoconf, automake, mpd_clientlib, ncurses, pcre, pkgconfig, taglib }:
1+{ stdenv, fetchFromGitHub, autoreconfHook, mpd_clientlib, ncurses, pcre, pkgconfig
2+, taglib }:
23
34stdenv.mkDerivation rec {
45 version = "0.09.0";
56 name = "vimpc-${version}";
67
7− src = fetchurl {
8− url = "https://github.com/boysetsfrog/vimpc/archive/v${version}.tar.gz";
9− sha256 = "13eb229a5e9eee491765ee89f7fe6a38140a41a01434b117da3869d725c15706";
8+ src = fetchFromGitHub {
9+ owner = "boysetsfrog";
10+ repo = "vimpc";
11+ rev = "v${version}";
12+ sha256 = "1z9yx2pz84lyng1ig9y4z6pdalwxb80ig7nnzhqfy3pl36hq6shi";
1013 };
1114
12− buildInputs = [ autoconf
13− automake
14− mpd_clientlib
15− ncurses
16− pcre
17− pkgconfig
18− taglib
19− ];
20−
21− preConfigure = "./autogen.sh";
15+ buildInputs = [ autoreconfHook mpd_clientlib ncurses pcre pkgconfig taglib ];
2216
2317 postInstall = ''
2418 mkdir -p $out/etc
2519 cp doc/vimpcrc.example $out/etc
2620 '';
2721
28− meta = {
22+ meta = with stdenv.lib; {
2923 description = "A vi/vim inspired client for the Music Player Daemon (mpd)";
3024 homepage = https://github.com/boysetsfrog/vimpc;
31− license = stdenv.lib.licenses.gpl3;
32− platforms = stdenv.lib.platforms.linux;
25+ license = licenses.gpl3;
26+ platforms = platforms.linux;
27+ maintainers = with maintainers; [ pSub ];
3328 };
3429}