vimpc: refactor and adopt

+12 -17
+12 -17
pkgs/applications/audio/vimpc/default.nix
··· 1 - { stdenv, fetchurl, autoconf, automake, mpd_clientlib, ncurses, pcre, pkgconfig, taglib }: 2 3 stdenv.mkDerivation rec { 4 version = "0.09.0"; 5 name = "vimpc-${version}"; 6 7 - src = fetchurl { 8 - url = "https://github.com/boysetsfrog/vimpc/archive/v${version}.tar.gz"; 9 - sha256 = "13eb229a5e9eee491765ee89f7fe6a38140a41a01434b117da3869d725c15706"; 10 }; 11 12 - buildInputs = [ autoconf 13 - automake 14 - mpd_clientlib 15 - ncurses 16 - pcre 17 - pkgconfig 18 - taglib 19 - ]; 20 - 21 - preConfigure = "./autogen.sh"; 22 23 postInstall = '' 24 mkdir -p $out/etc 25 cp doc/vimpcrc.example $out/etc 26 ''; 27 28 - meta = { 29 description = "A vi/vim inspired client for the Music Player Daemon (mpd)"; 30 homepage = https://github.com/boysetsfrog/vimpc; 31 - license = stdenv.lib.licenses.gpl3; 32 - platforms = stdenv.lib.platforms.linux; 33 }; 34 }
··· 1 + { stdenv, fetchFromGitHub, autoreconfHook, mpd_clientlib, ncurses, pcre, pkgconfig 2 + , taglib }: 3 4 stdenv.mkDerivation rec { 5 version = "0.09.0"; 6 name = "vimpc-${version}"; 7 8 + src = fetchFromGitHub { 9 + owner = "boysetsfrog"; 10 + repo = "vimpc"; 11 + rev = "v${version}"; 12 + sha256 = "1z9yx2pz84lyng1ig9y4z6pdalwxb80ig7nnzhqfy3pl36hq6shi"; 13 }; 14 15 + buildInputs = [ autoreconfHook mpd_clientlib ncurses pcre pkgconfig taglib ]; 16 17 postInstall = '' 18 mkdir -p $out/etc 19 cp doc/vimpcrc.example $out/etc 20 ''; 21 22 + meta = with stdenv.lib; { 23 description = "A vi/vim inspired client for the Music Player Daemon (mpd)"; 24 homepage = https://github.com/boysetsfrog/vimpc; 25 + license = licenses.gpl3; 26 + platforms = platforms.linux; 27 + maintainers = with maintainers; [ pSub ]; 28 }; 29 }