From d1b9dcd68fd024cf8961aa64c0cdea59a1d23d75 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 26 Feb 2008 15:48:14 +0000 Subject: [PATCH] * Added Emma, a Java code coverage tool. svn path=/nixpkgs/trunk/; revision=10865 --- .../tools/analysis/emma/default.nix | 22 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/tools/analysis/emma/default.nix diff --git a/pkgs/development/tools/analysis/emma/default.nix b/pkgs/development/tools/analysis/emma/default.nix new file mode 100644 index 000000000000..97e061d6b3f5 --- /dev/null +++ b/pkgs/development/tools/analysis/emma/default.nix @@ -0,0 +1,22 @@ +{stdenv, fetchurl, unzip}: + +stdenv.mkDerivation { + name = "emma-2.0.5312"; + + src = fetchurl { + url = mirror://sourceforge/emma/emma-2.0.5312.zip; + sha256 = "0xxy39s2lvgs56vicjzpcz936l1vjaplliwa0dm7v3iyvw6jn7vj"; + }; + + buildInputs = [unzip]; + + installPhase = '' + ensureDir $out/lib/jars + cp lib/*.jar $out/lib/jars/ + ''; + + meta = { + homepage = http://emma.sourceforge.net/; + description = "A code coverage tool for Java"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2732e2b84e7b..74fba45f7227 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1832,6 +1832,10 @@ rec { inherit fetchurl stdenv rpm; }; + emma = import ../development/tools/analysis/emma { + inherit fetchurl stdenv unzip; + }; + findbugs = import ../development/tools/analysis/findbugs { inherit fetchurl stdenv; };