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
27
pkgs/development/compilers/aspectj/builder.sh
Executable file
27
pkgs/development/compilers/aspectj/builder.sh
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
source $stdenv/setup
|
||||
|
||||
export JAVA_HOME=$jre
|
||||
|
||||
cat >> props <<EOF
|
||||
output.dir=$out
|
||||
context.javaPath=$jre
|
||||
EOF
|
||||
|
||||
mkdir -p $out
|
||||
$jre/bin/java -jar $src -text props
|
||||
|
||||
echo "Removing files at top level"
|
||||
for file in $out/*
|
||||
do
|
||||
if test -f $file ; then
|
||||
rm $file
|
||||
fi
|
||||
done
|
||||
|
||||
cat >> $out/bin/aj-runtime-env <<EOF
|
||||
#! $SHELL
|
||||
|
||||
export CLASSPATH=$CLASSPATH:.:$out/lib/aspectjrt.jar
|
||||
EOF
|
||||
|
||||
chmod u+x $out/bin/aj-runtime-env
|
||||
25
pkgs/development/compilers/aspectj/default.nix
Normal file
25
pkgs/development/compilers/aspectj/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{lib, stdenv, fetchurl, jre}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "aspectj";
|
||||
version = "1.9.7";
|
||||
builder = ./builder.sh;
|
||||
|
||||
src = let
|
||||
versionSnakeCase = builtins.replaceStrings ["."] ["_"] version;
|
||||
in fetchurl {
|
||||
url = "https://github.com/eclipse/org.aspectj/releases/download/V${versionSnakeCase}/aspectj-${version}.jar";
|
||||
sha256 = "sha256-xrg88nLOcagaAsFSnnYChhlv6EKhdBqkJJTDzhUBvTo=";
|
||||
};
|
||||
|
||||
inherit jre;
|
||||
buildInputs = [jre];
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.eclipse.org/aspectj/";
|
||||
description = "A seamless aspect-oriented extension to the Java programming language";
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
||||
platforms = lib.platforms.unix;
|
||||
license = lib.licenses.epl10;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue