about summary refs log tree commit diff
path: root/pkgs/development/tools/global-platform-pro
diff options
context:
space:
mode:
authorLéo Gaspard <leo@gaspard.io>2018-08-17 01:27:45 +0900
committerLéo Gaspard <leo@gaspard.io>2018-08-17 01:27:45 +0900
commitfd14b4d48de0b7ad6b4d5beeaaf6eadb50f68d09 (patch)
tree61a38b2f9f12ee2652cb748e708742aee8f9f655 /pkgs/development/tools/global-platform-pro
parent61e0b8d3be4a9dcf930c5625e38f3a2bf85575b0 (diff)
fixup: merge buildPhase and installPhase
Diffstat (limited to 'pkgs/development/tools/global-platform-pro')
-rw-r--r--pkgs/development/tools/global-platform-pro/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/development/tools/global-platform-pro/default.nix b/pkgs/development/tools/global-platform-pro/default.nix
index 5848f131d73cf..8bdb14c7c6578 100644
--- a/pkgs/development/tools/global-platform-pro/default.nix
+++ b/pkgs/development/tools/global-platform-pro/default.nix
@@ -46,13 +46,14 @@ stdenv.mkDerivation rec {
     name = "${name}-deps";
     inherit src patches;
     nativeBuildInputs = [ jdk maven ];
-    buildPhase = ''
+    installPhase = ''
+      # Download the dependencies
       while ! mvn package "-Dmaven.repo.local=$out/.m2" -Dmaven.wagon.rto=5000; do
         echo "timeout, restart maven to continue downloading"
       done
-    '';
-    # keep only *.{pom,jar,sha1,nbm} and delete all ephemeral files with lastModified timestamps inside
-    installPhase = ''
+
+      # And keep only *.{pom,jar,sha1,nbm} and delete all ephemeral files
+      # with lastModified timestamps inside
       find "$out/.m2" -type f \
         -regex '.+\(\.lastUpdated\|resolver-status\.properties\|_remote\.repositories\)' \
         -delete