uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
46
pkgs/development/tools/analysis/findbugs/default.nix
Normal file
46
pkgs/development/tools/analysis/findbugs/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "findbugs";
|
||||
version = "3.0.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
|
||||
sha256 = "06b46fz4nid7qvm36r66zw01fr87y4jyz21ixw27b8hkqah0s3p8";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
substituteInPlace bin/findbugs --replace /bin/pwd pwd
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
d=$out/libexec/findbugs
|
||||
mkdir -p $d $out/bin $out/nix-support
|
||||
|
||||
cp -prd bin lib plugin doc $d/
|
||||
rm $d/bin/*.bat
|
||||
for i in $d/bin/*; do
|
||||
if [ -f $i ]; then ln -s $i $out/bin/; fi
|
||||
done
|
||||
|
||||
# Get rid of unnecessary JARs.
|
||||
rm $d/lib/ant.jar
|
||||
|
||||
# Make some JARs findable.
|
||||
mkdir -p $out/share/java
|
||||
ln -s $d/lib/{findbugs.jar,findbugs-ant.jar} $out/share/java/
|
||||
|
||||
cat <<EOF > $out/nix-support/setup-hook
|
||||
export FINDBUGS_HOME=$d
|
||||
EOF
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A static analysis tool to find bugs in Java programs automatically";
|
||||
homepage = "http://findbugs.sourceforge.net/";
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
platforms = with platforms; unix;
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
license = licenses.lgpl3;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue