nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (763B)


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