about summary refs log tree commit diff
path: root/pkgs/applications/version-management/vcprompt/default.nix
blob: 476abd4e19bd5a4df652eaf8d9e45de8d95b24f5 (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
{ stdenv, fetchhg, autoconf, sqlite }:

stdenv.mkDerivation {
  name = "vcprompt";

  src = fetchhg {
    url = "http://hg.gerg.ca/vcprompt/";
    rev = "1.2.1";
    sha256 = "03xqvp6bfl98bpacrw4n82qv9cw6a4fxci802s3vrygas989v1kj";
  };

  buildInputs = [ sqlite autoconf ];

  preConfigure = ''
    autoconf
    makeFlags="$makeFlags PREFIX=$out"
  '';

  meta = with stdenv.lib; {
    description = ''
      A little C program that prints a short string with barebones information
      about the current working directory for various version control systems
    '';
    homepage    = http://hg.gerg.ca/vcprompt;
    maintainers = with maintainers; [ cstrahan ];
    platforms   = with platforms; linux ++ darwin;
  };
}