javaPackages.mavenfod: make maven parameters configurable
This commit is contained in:
parent
bd33583c88
commit
8e317c1630
2 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,7 @@ javaPackages.mavenfod rec {
|
|||
};
|
||||
|
||||
mvnSha256 = "7Sm1hAoi5xc4MLONOD8ySLLkpao0qmlMRRva/8zR210=";
|
||||
mvnParameters = "-P desktop,all-platforms";
|
||||
|
||||
nativeBuildInputs = [
|
||||
copyDesktopItems
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue