javaPackages.mavenfod: make maven parameters configurable

This commit is contained in:
Maciej Krüger 2021-12-13 17:55:07 +01:00
parent bd33583c88
commit 8e317c1630
No known key found for this signature in database
GPG key ID: 0D948CE19CF49C5F
2 changed files with 3 additions and 1 deletions

View file

@ -31,6 +31,7 @@ javaPackages.mavenfod rec {
};
mvnSha256 = "7Sm1hAoi5xc4MLONOD8ySLLkpao0qmlMRRva/8zR210=";
mvnParameters = "-P desktop,all-platforms";
nativeBuildInputs = [
copyDesktopItems

View file

@ -10,6 +10,7 @@
, mvnSha256 ? "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
, mvnHash ? "sha256-${mvnSha256}"
, mvnFetchExtraArgs ? {}
, mvnParameters ? ""
, ...
} @args:
@ -26,7 +27,7 @@ stdenv.mkDerivation (rec {
];
buildPhase = ''
mvn package -Dmaven.repo.local=$out/.m2 -P desktop,all-platforms
mvn package -Dmaven.repo.local=$out/.m2 ${mvnParameters}
'';
# keep only *.{pom,jar,sha1,nbm} and delete all ephemeral files with lastModified timestamps inside