nur-packages

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

base.nix (664B)


      1 {
      2   lib,
      3   stdenvNoCC,
      4   fetchurl,
      5   pname,
      6   version,
      7   sha256,
      8 }:
      9 
     10 stdenvNoCC.mkDerivation {
     11   inherit pname version;
     12 
     13   src = fetchurl {
     14     url = "https://www.uralla.ru/garmin/topo/topo.${pname}.img";
     15     inherit sha256;
     16   };
     17 
     18   dontUnpack = true;
     19 
     20   installPhase = "install -Dm644 $src $out/${pname}.img";
     21 
     22   preferLocalBuild = true;
     23 
     24   meta = {
     25     description = "Туристические карты для навигаторов Garmin";
     26     homepage = "https://www.uralla.ru/ural-garmin-topo-img-map-16505.html";
     27     license = lib.licenses.free;
     28     maintainers = [ lib.maintainers.sikmir ];
     29     platforms = lib.platforms.all;
     30     skip.ci = true;
     31   };
     32 }