nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ fetchurl }:
2let
3 fetchTestInput =
4 { res, sha256 }:
5 fetchurl {
6 inherit sha256;
7 url = "https://www.mkgmap.org.uk/testinput/${res}";
8 name = builtins.replaceStrings [ "/" ] [ "__" ] res;
9 };
10in
11[
12 (fetchTestInput {
13 res = "osm/alaska-2016-12-27.osm.pbf";
14 sha256 = "0hmb5v71a1bxgvrg1cbfj5l27b3vvdazs4pyggpmhcdhbwpw7ppm";
15 })
16 (fetchTestInput {
17 res = "osm/hamburg-2016-12-26.osm.pbf";
18 sha256 = "08bny4aavwm3z2114q99fv3fi2w905zxi0fl7bqgjyhgk0fxjssf";
19 })
20]