forked from mirrors/nixpkgs
22 lines
514 B
Nix
22 lines
514 B
Nix
|
{ callPackage, stdenv, maven, src, version }:
|
||
|
|
||
|
let
|
||
|
skeinRepo = callPackage ./skeinrepo.nix { inherit src version; };
|
||
|
in
|
||
|
stdenv.mkDerivation rec {
|
||
|
name = "skein-${version}.jar";
|
||
|
|
||
|
inherit src;
|
||
|
|
||
|
nativeBuildInputs = [ maven ];
|
||
|
|
||
|
buildPhase = ''
|
||
|
mvn --offline -f java/pom.xml package -Dmaven.repo.local="${skeinRepo}" -Dskein.version=${version} -Dversion=${version}
|
||
|
'';
|
||
|
|
||
|
installPhase = ''
|
||
|
# Making sure skein.jar exists skips the maven build in setup.py
|
||
|
mv java/target/skein-*.jar $out
|
||
|
'';
|
||
|
}
|