From ce1eb1ea797a95f307ea388e8ad04b16d9e85473 Mon Sep 17 00:00:00 2001 From: Sophie Taylor Date: Tue, 12 Feb 2019 19:03:06 +1000 Subject: [PATCH] Update and rename maps.nix to maps-replays.nix --- .../machine-learning/sc2-headless/default.nix | 3 +- .../machine-learning/sc2-headless/maps.nix | 37 ++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/machine-learning/sc2-headless/default.nix b/pkgs/applications/science/machine-learning/sc2-headless/default.nix index 7f5145d977c3..cd9cf6dafd19 100644 --- a/pkgs/applications/science/machine-learning/sc2-headless/default.nix +++ b/pkgs/applications/science/machine-learning/sc2-headless/default.nix @@ -33,7 +33,8 @@ in stdenv.mkDerivation rec { cp -r . "$out" rm -r $out/Libs - cp -r "${maps.minigames}"/* "$out"/Maps/ + cp -r "${maps.minigames}"/* "${maps.melee}"/* "${maps.ladder2017season1}"/* "${maps.ladder2017season2}"/* "${maps.ladder2017season3}"/* \ + "${maps.ladder2017season4}"/* "${maps.ladder2018season1}"/* "${maps.ladder2018season2}"/* "$out"/Maps/ ''; preFixup = '' diff --git a/pkgs/applications/science/machine-learning/sc2-headless/maps.nix b/pkgs/applications/science/machine-learning/sc2-headless/maps.nix index 4300a0a1b385..8e47bf239a18 100644 --- a/pkgs/applications/science/machine-learning/sc2-headless/maps.nix +++ b/pkgs/applications/science/machine-learning/sc2-headless/maps.nix @@ -7,5 +7,40 @@ sha256 = "19f873ilcdsf50g2v0s2zzmxil1bqncsk8nq99bzy87h0i7khkla"; stripRoot = false; }; - + + melee = (fetchzip { + url = "http://blzdistsc2-a.akamaihd.net/MapPacks/Melee.zip"; + sha256 = "0w050yah5rybx3m5zvpr09jv01r0xsazpyrc76338b2sd8pdxv3y"; + stripRoot = false; + }).overrideAttrs(o: { UNZIP = "-P iagreetotheeula";}); + ladder2017season1 = (fetchzip { + url = "http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2017Season1.zip"; + sha256 = "194p0mb0bh63sjy84q21x4v5pb6d7hidivfi28aalr2gkwhwqfvh"; + stripRoot = false; + }).overrideAttrs(o: { UNZIP = "-P iagreetotheeula";}); + ladder2017season2 = (fetchzip { + url = "http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2017Season2.zip"; + sha256 = "1pvp7zi16326x3l45mk7s959ggnkg2j1w9rfmaxxa8mawr9c6i39"; + stripRoot = false; + }).overrideAttrs(o: { UNZIP = "-P iagreetotheeula";}); + ladder2017season3 = (fetchzip { + url = "http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2017Season3_Updated.zip"; + sha256 = "1sjskfp6spmh7l2za1z55v7binx005qxw3w11xdvjpn20cyhkh8a"; + stripRoot = false; + }).overrideAttrs(o: { UNZIP = "-P iagreetotheeula";}); + ladder2017season4 = (fetchzip { + url = "http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2017Season4.zip"; + sha256 = "1zf4mfq6r1ylf8bmd0qpv134dcrfgrsi4afxfqwnf39ijdq4z26g"; + stripRoot = false; + }).overrideAttrs(o: { UNZIP = "-P iagreetotheeula";}); + ladder2018season1 = (fetchzip { + url = "http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2018Season1.zip"; + sha256 = "0p51xj98qg816qm9ywv9zar5llqvqs6bcyns6d5fp2j39fg08v6f"; + stripRoot = false; + }).overrideAttrs(o: { UNZIP = "-P iagreetotheeula";}); + ladder2018season2 = (fetchzip { + url = "http://blzdistsc2-a.akamaihd.net/MapPacks/Ladder2018Season2_Updated.zip"; + sha256 = "1wjn6vpbymjvjxqf10h7az34fnmhb5dpi878nsydlax25v9lgzqx"; + stripRoot = false; + }).overrideAttrs(o: { UNZIP = "-P iagreetotheeula";}); }