diff --git a/pkgs/development/tools/java/fastjar/default.nix b/pkgs/development/tools/java/fastjar/default.nix new file mode 100644 index 000000000000..bd69e8aeb5b7 --- /dev/null +++ b/pkgs/development/tools/java/fastjar/default.nix @@ -0,0 +1,31 @@ +{ fetchurl, stdenv, zlib }: + +let version = "0.94"; in + stdenv.mkDerivation rec { + name = "fastjar-${version}"; + + src = fetchurl { + url = "mirror://sourceforge/fastjar/${version}/${name}.tar.gz"; + sha256 = "15bvhvn2fzpziynk4myg1wl70wxa5a6v65hkzlcgnzh1wg1py8as"; + }; + + buildInputs = [ zlib ]; + + doCheck = true; + + meta = { + description = "FastJar, a fast Java archiver written in C"; + + longDescription = '' + Fastjar is a version of Sun's `jar' utility, written entirely in C, and + therefore quite a bit faster. Fastjar can be up to 100x faster than + the stock `jar' program running without a JIT. + ''; + + homepage = http://fastjar.sourceforge.net/; + + license = "GPLv2+"; + + maintainers = [ stdenv.lib.maintainers.ludo ]; + }; + } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 68cd49a457b6..a82dd5e794c5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4139,6 +4139,10 @@ let inherit stdenv fetchurl; }; + fastjar = import ../development/tools/java/fastjar { + inherit fetchurl stdenv zlib; + }; + httpunit = import ../development/libraries/java/httpunit { inherit stdenv fetchurl unzip; };