summary refs log tree commit diff
path: root/pkgs/build-support/build-maven.nix
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2015-06-29 13:41:24 -0400
committerShea Levy <shea@shealevy.com>2015-06-29 13:41:24 -0400
commit03dbba975706c03f41600b174f1a50f072712d02 (patch)
treee020defe0059cbd3fcb144001a07d28efb3f9fb5 /pkgs/build-support/build-maven.nix
parent3862fd57fecb710255f897be1b090d844adcffc7 (diff)
downloadnixlib-03dbba975706c03f41600b174f1a50f072712d02.tar
nixlib-03dbba975706c03f41600b174f1a50f072712d02.tar.gz
nixlib-03dbba975706c03f41600b174f1a50f072712d02.tar.bz2
nixlib-03dbba975706c03f41600b174f1a50f072712d02.tar.lz
nixlib-03dbba975706c03f41600b174f1a50f072712d02.tar.xz
nixlib-03dbba975706c03f41600b174f1a50f072712d02.tar.zst
nixlib-03dbba975706c03f41600b174f1a50f072712d02.zip
build-maven: Handle very long dependency lists
Diffstat (limited to 'pkgs/build-support/build-maven.nix')
-rw-r--r--pkgs/build-support/build-maven.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/build-support/build-maven.nix b/pkgs/build-support/build-maven.nix
index bde95080e745..284be201ff08 100644
--- a/pkgs/build-support/build-maven.nix
+++ b/pkgs/build-support/build-maven.nix
@@ -13,7 +13,7 @@
 infoFile: let
   info = builtins.fromJSON (builtins.readFile infoFile);
 
-  repo = runCommand "maven-repository" {} ''
+  script = writeText "build-maven-repository.sh" ''
     ${lib.concatStrings (map (dep: let
       inherit (dep) url sha1 groupId artifactId version;
 
@@ -25,6 +25,10 @@ infoFile: let
     '') info.dependencies)}
   '';
 
+  repo = runCommand "maven-repository" {} ''
+    bash ${script}
+  '';
+
   settings = writeText "settings.xml" ''
     <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"