diff --git a/pkgs/development/tools/analysis/findbugs/default.nix b/pkgs/development/tools/analysis/findbugs/default.nix new file mode 100644 index 000000000000..2c14d2c83294 --- /dev/null +++ b/pkgs/development/tools/analysis/findbugs/default.nix @@ -0,0 +1,20 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "findbugs-1.3.2"; + + src = fetchurl { + url = mirror://sourceforge/findbugs/findbugs-1.3.2.tar.gz; + sha256 = "0mbwxzz5m9vizxlbg0i6rh5ywywiiw9zpabq5li7map43768apvr"; + }; + + buildPhase = '' + substituteInPlace bin/findbugs --replace /bin/pwd pwd + ''; + + installPhase = '' + ensureDir $out + cp -prd bin lib plugin doc $out/ + rm $out/bin/*.bat + ''; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 624e82c185e9..2c8a1c38d191 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1832,6 +1832,10 @@ rec { inherit fetchurl stdenv rpm; }; + findbugs = import ../development/tools/analysis/findbugs { + inherit fetchurl stdenv; + }; + flex = flex254a; flex2534 = import ../development/tools/parsing/flex/flex-2.5.34.nix {