default.nix (750B)
1 { lib, fetchurl, unzip, country ? "FIN", lang ? "en" }: 2 let 3 pname = "freizeitkarte-osm"; 4 version = "2023-12-09"; 5 in 6 fetchurl { 7 name = "${pname}-${version}"; 8 url = "http://download.freizeitkarte-osm.de/garmin/latest/${country}_${lang}_gmapsupp.img.zip"; 9 hash = "sha256-/+8F/3hYurS3GGM6teU8WlfU7IVsV8mUM2PlESWStpE="; 10 downloadToTemp = true; 11 recursiveHash = true; 12 preferLocalBuild = true; 13 postFetch = "${unzip}/bin/unzip $downloadedFile -d $out"; 14 15 meta = with lib; { 16 description = "Freizeitkarte map with DEM (Digital Elevation Model) and hillshading"; 17 homepage = "https://freizeitkarte-osm.de/"; 18 license = licenses.free; 19 maintainers = [ maintainers.sikmir ]; 20 platforms = platforms.all; 21 skip.ci = true; 22 }; 23 }