summary refs log tree commit diff
path: root/pkgs/applications/audio/vimpc/default.nix
blob: 717262dbcb5774171805793c03ad2acf531c3b6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ stdenv, fetchurl, autoconf, automake, mpd_clientlib, ncurses, pcre, pkgconfig, taglib }:

stdenv.mkDerivation rec {
  version = "0.09.0";
  name = "vimpc-${version}";

  src = fetchurl {
    url = "https://github.com/boysetsfrog/vimpc/archive/v${version}.tar.gz";
    sha256 = "13eb229a5e9eee491765ee89f7fe6a38140a41a01434b117da3869d725c15706";
  };

  buildInputs = [ autoconf
                  automake
                  mpd_clientlib
                  ncurses
                  pcre
                  pkgconfig
                  taglib
                ];

  preConfigure = "./autogen.sh";

  postInstall = ''
    mkdir -p $out/etc
    cp doc/vimpcrc.example $out/etc
  '';

  meta = {
    description = "A vi/vim inspired client for the Music Player Daemon (mpd).";
    homepage = https://github.com/boysetsfrog/vimpc;
    license = stdenv.lib.licenses.gpl3;
    platforms = stdenv.lib.platforms.linux;
  };
}