39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{stdenv, fetchFromGitHub, jdk6, maven_2-boostrap-3, mavenDep, plexus-components-pom, plexus-compiler-pom,
|
|
plexus-compiler-api_1_2, commons-lang_2}: stdenv.mkDerivation rec {
|
|
pname = "plexus-compiler-test";
|
|
version = "1.2-SNAPSHOT";
|
|
outJar = "plexus-compiler-test-1.2-SNAPSHOT.jar";
|
|
outPom = "pom.xml";
|
|
org = "plexus";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "codehaus-plexus";
|
|
repo = "plexus-pom";
|
|
rev = "8e56595aa5c89ba6fc76bac2bd8426333e2495bb";
|
|
hash = "sha256-C84gYXqfE+7aofPIALChnbOSB39ZRrg0ZoHgQ5B2ATg=";
|
|
};
|
|
|
|
patches = [./plexus-compiler-test.patch];
|
|
|
|
nativeBuildInputs = [jdk6 maven_2-boostrap-3
|
|
(mavenDep plexus-components-pom {})
|
|
(mavenDep plexus-compiler-pom {})
|
|
(mavenDep plexus-compiler-api_1_2 {})
|
|
(mavenDep commons-lang_2 {})];
|
|
|
|
env = {
|
|
JAVA_HOME="${jdk6}";
|
|
};
|
|
|
|
buildPhase = ''
|
|
cd plexus-components/plexus-compiler/plexus-compiler-test
|
|
m2 jar:jar
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp ./target/plexus-compiler-test-1.2-SNAPSHOT.jar $out/plexus-compiler-test-1.2-SNAPSHOT.jar
|
|
cp ./pom.xml $out/pom.xml
|
|
'';
|
|
}
|