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=";
|
mvnSha256 = "7Sm1hAoi5xc4MLONOD8ySLLkpao0qmlMRRva/8zR210=";
|
||||||
|
mvnParameters = "-P desktop,all-platforms";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
copyDesktopItems
|
copyDesktopItems
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
, mvnSha256 ? "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
, mvnSha256 ? "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||||
, mvnHash ? "sha256-${mvnSha256}"
|
, mvnHash ? "sha256-${mvnSha256}"
|
||||||
, mvnFetchExtraArgs ? {}
|
, mvnFetchExtraArgs ? {}
|
||||||
|
, mvnParameters ? ""
|
||||||
, ...
|
, ...
|
||||||
} @args:
|
} @args:
|
||||||
|
|
||||||
|
@ -26,7 +27,7 @@ stdenv.mkDerivation (rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
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
|
# keep only *.{pom,jar,sha1,nbm} and delete all ephemeral files with lastModified timestamps inside
|
||||||
|
|
Loading…
Reference in a new issue