nur-packages

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

base.nix (698B)


      1 {
      2   lib,
      3   stdenvNoCC,
      4   fetchurl,
      5   unrar,
      6   pname,
      7   version,
      8   hash,
      9 }:
     10 
     11 stdenvNoCC.mkDerivation {
     12   inherit pname version;
     13 
     14   src = fetchurl {
     15     url = "http://meridian.perm.ru/04_maps/gpsmap/${pname}.rar";
     16     inherit hash;
     17   };
     18 
     19   sourceRoot = ".";
     20 
     21   nativeBuildInputs = [ unrar ];
     22 
     23   installPhase = "install -Dm644 *.img -t $out";
     24 
     25   preferLocalBuild = true;
     26 
     27   meta = {
     28     description = "Самодельные векторные карты для GPS-навигаторов";
     29     homepage = "http://meridian.perm.ru/04_maps/maps_for_gps.shtml";
     30     license = lib.licenses.free;
     31     maintainers = [ lib.maintainers.sikmir ];
     32     platforms = lib.platforms.all;
     33     skip.ci = true;
     34   };
     35 }