diff --git a/pkgs/development/libraries/gettext/0.19.nix b/pkgs/development/libraries/gettext/0.19.nix new file mode 100644 index 000000000000..27a8bd252c8a --- /dev/null +++ b/pkgs/development/libraries/gettext/0.19.nix @@ -0,0 +1,10 @@ +{ stdenv, fetchurl, gettext }: + +stdenv.lib.overrideDerivation gettext (attrs: rec { + name = "gettext-0.19.4"; + + src = fetchurl { + url = "mirror://gnu/gettext/${name}.tar.gz"; + sha256 = "0gvz86m4cs8bdf3mwmwsyx6lrq4ydfxgadrgd9jlx32z3bnz3jca"; + }; +}) diff --git a/pkgs/development/tools/misc/fswatch/default.nix b/pkgs/development/tools/misc/fswatch/default.nix new file mode 100644 index 000000000000..bc0ad3983626 --- /dev/null +++ b/pkgs/development/tools/misc/fswatch/default.nix @@ -0,0 +1,47 @@ +{ stdenv +, fetchFromGitHub +, autoconf +, automake114x +, findutils # for xargs +, gettext_0_19 +, libtool +, makeWrapper +, texinfo +}: + +let + + version = "1.4.5.3"; + +in stdenv.mkDerivation { + + name = "fswatch-${version}"; + + src = fetchFromGitHub { + owner = "emcrisostomo"; + repo = "fswatch"; + rev = version; + sha256 = "05jphslvfgp94vd86myjw5q4wgbayj8avw49h4a4npkwhn93d11j"; + }; + + buildInputs = [ autoconf automake114x gettext_0_19 libtool makeWrapper texinfo ]; + + preConfigure = '' + ./autogen.sh + ''; + + postFixup = '' + for prog in fswatch-run fswatch-run-bash; do + wrapProgram $out/bin/$prog \ + --prefix PATH "${findutils}/bin" + done + ''; + + meta = { + description = "A cross-platform file change monitor with multiple backends"; + homepage = https://github.com/emcrisostomo/fswatch; + license = stdenv.lib.licenses.gpl3Plus; + platforms = stdenv.lib.platforms.all; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 74298308a00a..80ec3ecff77e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4629,6 +4629,8 @@ let flow = callPackage ../development/tools/analysis/flow { }; + fswatch = callPackage ../development/tools/misc/fswatch { }; + pmd = callPackage ../development/tools/analysis/pmd { }; jdepend = callPackage ../development/tools/analysis/jdepend { }; @@ -5334,6 +5336,7 @@ let gettext_0_17 = callPackage ../development/libraries/gettext/0.17.nix { }; gettext_0_18 = callPackage ../development/libraries/gettext { }; + gettext_0_19 = callPackage ../development/libraries/gettext/0.19.nix { }; gd = callPackage ../development/libraries/gd { };