nur-packages

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

hr.nix (938B)


      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-hr";
     18   version = "2024-08-03";
     19 
     20   src = fetchFromGitHub {
     21     owner = "slazav";
     22     repo = "map_hr";
     23     rev = "d65d437f4cb9a450538c17778f22f9e129773c39";
     24     hash = "sha256-P+H6vXL+lvebhpup5KH6l5HZQiwPKvhCR8YsOmcItFE=";
     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 mountains";
     55     homepage = "https://slazav.xyz/maps/hr.htm";
     56     license = lib.licenses.free;
     57     maintainers = [ lib.maintainers.sikmir ];
     58     platforms = lib.platforms.all;
     59     skip.ci = true;
     60   };
     61 }