about summary refs log tree commit diff
path: root/pkgs/applications/version-management
diff options
context:
space:
mode:
authorCharles Strahan <charles.c.strahan@gmail.com>2014-07-02 02:43:47 -0400
committerCharles Strahan <charles.c.strahan@gmail.com>2014-07-02 02:43:47 -0400
commit6c15656a06829a197dc7d84b4b91e46359321783 (patch)
treec67dcea55c3fad7bb8d5c3d2a6c7e314ab3565e1 /pkgs/applications/version-management
parentf666bf4ddf3f5f50cad6e17907dae53d545444d0 (diff)
downloadnixlib-6c15656a06829a197dc7d84b4b91e46359321783.tar
nixlib-6c15656a06829a197dc7d84b4b91e46359321783.tar.gz
nixlib-6c15656a06829a197dc7d84b4b91e46359321783.tar.bz2
nixlib-6c15656a06829a197dc7d84b4b91e46359321783.tar.lz
nixlib-6c15656a06829a197dc7d84b4b91e46359321783.tar.xz
nixlib-6c15656a06829a197dc7d84b4b91e46359321783.tar.zst
nixlib-6c15656a06829a197dc7d84b4b91e46359321783.zip
vcprompt: new package
This adds the vcprompt utility, a little C program that prints a short string
with barebones information about the current working directory for various
version control systems.
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r--pkgs/applications/version-management/vcprompt/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/vcprompt/default.nix b/pkgs/applications/version-management/vcprompt/default.nix
new file mode 100644
index 000000000000..476abd4e19bd
--- /dev/null
+++ b/pkgs/applications/version-management/vcprompt/default.nix
@@ -0,0 +1,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;
+  };
+}