fixup: merge buildPhase and installPhase
This commit is contained in:
parent
61e0b8d3be
commit
fd14b4d48d
@ -46,13 +46,14 @@ stdenv.mkDerivation rec {
|
|||||||
name = "${name}-deps";
|
name = "${name}-deps";
|
||||||
inherit src patches;
|
inherit src patches;
|
||||||
nativeBuildInputs = [ jdk maven ];
|
nativeBuildInputs = [ jdk maven ];
|
||||||
buildPhase = ''
|
installPhase = ''
|
||||||
|
# Download the dependencies
|
||||||
while ! mvn package "-Dmaven.repo.local=$out/.m2" -Dmaven.wagon.rto=5000; do
|
while ! mvn package "-Dmaven.repo.local=$out/.m2" -Dmaven.wagon.rto=5000; do
|
||||||
echo "timeout, restart maven to continue downloading"
|
echo "timeout, restart maven to continue downloading"
|
||||||
done
|
done
|
||||||
'';
|
|
||||||
# keep only *.{pom,jar,sha1,nbm} and delete all ephemeral files with lastModified timestamps inside
|
# And keep only *.{pom,jar,sha1,nbm} and delete all ephemeral files
|
||||||
installPhase = ''
|
# with lastModified timestamps inside
|
||||||
find "$out/.m2" -type f \
|
find "$out/.m2" -type f \
|
||||||
-regex '.+\(\.lastUpdated\|resolver-status\.properties\|_remote\.repositories\)' \
|
-regex '.+\(\.lastUpdated\|resolver-status\.properties\|_remote\.repositories\)' \
|
||||||
-delete
|
-delete
|
||||||
|
Loading…
Reference in New Issue
Block a user