nur-packages

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

podm.nix (952B)


      1 {
      2   lib,
      3   stdenv,
      4   fetchFromGitHub,
      5   bc,
      6   cgpsmapper,
      7   git,
      8   gmaptool,
      9   libjpeg,
     10   mapsoft2,
     11   netpbm,
     12   sqlite,
     13   zip,
     14 }:
     15 
     16 stdenv.mkDerivation {
     17   pname = "slazav-podm";
     18   version = "2024-06-16";
     19 
     20   src = fetchFromGitHub {
     21     owner = "slazav";
     22     repo = "map_podm";
     23     rev = "f6357a7379567d5997325fd0f5b2078c327096f8";
     24     hash = "sha256-j71hgn0ISol8Cna0EQgY18z182YZmMLyH2UIYwmamK8=";
     25     leaveDotGit = true;
     26   };
     27 
     28   nativeBuildInputs = [
     29     bc
     30     cgpsmapper
     31     git
     32     gmaptool
     33     libjpeg
     34     mapsoft2
     35     netpbm
     36     sqlite
     37     zip
     38   ];
     39 
     40   preBuild = ''
     41     export HOME=$TMPDIR
     42   '';
     43 
     44   buildFlags = [
     45     "in"
     46     "out"
     47   ];
     48 
     49   installPhase = ''
     50     install -Dm644 OUT/* -t $out
     51   '';
     52 
     53   meta = {
     54     description = "Slazav Moscow region map";
     55     homepage = "https://slazav.xyz/maps/podm.htm";
     56     license = lib.licenses.free;
     57     maintainers = [ lib.maintainers.sikmir ];
     58     platforms = lib.platforms.all;
     59     skip.ci = true;
     60   };
     61 }