about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/mkgmap/splitter/testinputs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/mkgmap/splitter/testinputs.nix')
-rw-r--r--nixpkgs/pkgs/applications/misc/mkgmap/splitter/testinputs.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/mkgmap/splitter/testinputs.nix b/nixpkgs/pkgs/applications/misc/mkgmap/splitter/testinputs.nix
new file mode 100644
index 000000000000..0d73f9710291
--- /dev/null
+++ b/nixpkgs/pkgs/applications/misc/mkgmap/splitter/testinputs.nix
@@ -0,0 +1,18 @@
+{ fetchurl }:
+let
+  fetchTestInput = { res, sha256 }: fetchurl {
+    inherit sha256;
+    url = "https://www.mkgmap.org.uk/testinput/${res}";
+    name = builtins.replaceStrings [ "/" ] [ "__" ] res;
+  };
+in
+[
+  (fetchTestInput {
+    res = "osm/alaska-2016-12-27.osm.pbf";
+    sha256 = "0hmb5v71a1bxgvrg1cbfj5l27b3vvdazs4pyggpmhcdhbwpw7ppm";
+  })
+  (fetchTestInput {
+    res = "osm/hamburg-2016-12-26.osm.pbf";
+    sha256 = "08bny4aavwm3z2114q99fv3fi2w905zxi0fl7bqgjyhgk0fxjssf";
+  })
+]