about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorCharles Strahan <charles.c.strahan@gmail.com>2014-07-05 16:34:51 -0400
committerCharles Strahan <charles.c.strahan@gmail.com>2014-07-06 01:34:11 -0400
commit6b16c2ec3435cf251b855a01b31b59b55736a19b (patch)
treeea11e2ec04b005c9548d1ed78a57f0aee7c40725 /pkgs/development/tools
parent1c1747be0d2c85c45ba13aa78b50ff62d7a80c3c (diff)
downloadnixlib-6b16c2ec3435cf251b855a01b31b59b55736a19b.tar
nixlib-6b16c2ec3435cf251b855a01b31b59b55736a19b.tar.gz
nixlib-6b16c2ec3435cf251b855a01b31b59b55736a19b.tar.bz2
nixlib-6b16c2ec3435cf251b855a01b31b59b55736a19b.tar.lz
nixlib-6b16c2ec3435cf251b855a01b31b59b55736a19b.tar.xz
nixlib-6b16c2ec3435cf251b855a01b31b59b55736a19b.tar.zst
nixlib-6b16c2ec3435cf251b855a01b31b59b55736a19b.zip
watchman: new package
This adds `watchman`, a CLI utility that watches files and takes action when
they change.
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/watchman/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/tools/watchman/default.nix b/pkgs/development/tools/watchman/default.nix
new file mode 100644
index 000000000000..90e31349e4f6
--- /dev/null
+++ b/pkgs/development/tools/watchman/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, lib, config, fetchFromGitHub, autoconf, automake, pcre
+, confFile ? config.watchman.confFile or null
+}:
+
+stdenv.mkDerivation rec {
+  name = "watchman-${version}";
+
+  version = "2.9.8";
+
+  src = fetchFromGitHub {
+    owner = "facebook";
+    repo = "watchman";
+    rev = "v${version}";
+    sha256 = "196d71ci7ki4p6xx49w55cqd0bqrx19nf79na3a91mrfa6f22sp6";
+  };
+
+  buildInputs = [ autoconf automake pcre ];
+
+  configureFlags = [
+      "--enable-conffile=${if confFile == null then "no" else confFile}"
+      "--with-pcre=yes"
+  ];
+
+  preConfigure = ''
+    ./autogen.sh
+  '';
+
+  meta = with lib; {
+    description = "Watches files and takes action when they change";
+    homepage    = https://facebook.github.io/watchman;
+    maintainers = with maintainers; [ cstrahan ];
+    platforms   = with platforms; linux ++ darwin;
+    license     = licenses.asl20;
+  };
+}