hr.nix (1224B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 bc, 6 cgpsmapper, 7 fig2dev, 8 git, 9 gmaptool, 10 imagemagick, 11 libjpeg, 12 mapsoft2, 13 netpbm, 14 sqlite, 15 unstableGitUpdater, 16 writableTmpDirAsHomeHook, 17 zip, 18 }: 19 20 stdenv.mkDerivation { 21 pname = "slazav-hr"; 22 version = "2025-01-27"; 23 24 src = fetchFromGitHub { 25 owner = "slazav"; 26 repo = "map_hr"; 27 rev = "947b237a977453db2e5cbb961d5b3842ce770697"; 28 hash = "sha256-nXd1y1TVIhwS3XP2DzeFKsDsdYWk2Q6xOtlh9kmve8o="; 29 leaveDotGit = true; 30 }; 31 32 postPatch = '' 33 substituteInPlace vmaps.conf \ 34 --replace-fail "/home/sla/mapsoft2/programs/ms2render/" "" 35 ''; 36 37 nativeBuildInputs = [ 38 bc 39 cgpsmapper 40 fig2dev 41 git 42 gmaptool 43 imagemagick 44 libjpeg 45 mapsoft2 46 netpbm 47 sqlite 48 writableTmpDirAsHomeHook 49 zip 50 ]; 51 52 preBuild = '' 53 make -C pics 54 ''; 55 56 buildFlags = [ "out" ]; 57 58 installPhase = '' 59 install -Dm644 OUT/* -t $out 60 ''; 61 62 passthru.updateScript = unstableGitUpdater { }; 63 64 meta = { 65 description = "Slazav mountains"; 66 homepage = "https://slazav.xyz/maps/hr.htm"; 67 license = lib.licenses.free; 68 maintainers = [ lib.maintainers.sikmir ]; 69 platforms = lib.platforms.all; 70 skip.ci = true; 71 }; 72 }