nur-packages

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

base.nix (685B)


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