From 03dbba975706c03f41600b174f1a50f072712d02 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Mon, 29 Jun 2015 13:41:24 -0400 Subject: [PATCH] build-maven: Handle very long dependency lists --- pkgs/build-support/build-maven.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/build-maven.nix b/pkgs/build-support/build-maven.nix index bde95080e74..284be201ff0 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" ''