buildMavenPackage: Use concatStringsSep

This commit is contained in:
Tuomas Tynkkynen 2018-02-10 23:41:02 +02:00
parent 6d8c1fe01c
commit 0ed5ba8a64

View File

@ -13,8 +13,8 @@ in stdenv.mkDerivation rec {
propagatedBuildInput = [ maven ] ++ flatDeps; propagatedBuildInput = [ maven ] ++ flatDeps;
find = ''find ${foldl' (x: y: x + " " + y) "" (map (x: x + "/m2") flatDeps)} -type d -printf '%P\n' | xargs -I {} mkdir -p $out/m2/{}''; find = ''find ${concatStringsSep " " (map (x: x + "/m2") flatDeps)} -type d -printf '%P\n' | xargs -I {} mkdir -p $out/m2/{}'';
copy = ''cp -rsfu ${foldl' (x: y: x + " " + y) "" (map (x: x + "/m2/*") flatDeps)} $out/m2''; copy = ''cp -rsfu ${concatStringsSep " " (map (x: x + "/m2/*") flatDeps)} $out/m2'';
phases = [ "unpackPhase" "buildPhase" ]; phases = [ "unpackPhase" "buildPhase" ];