depot/third_party/nixpkgs/pkgs/development/python-modules/skein/skeinjar.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

21 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
'';
}