package.nix (1013B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 gmaptool, 6 mkgmap, 7 p7zip, 8 zsh, 9 replaceVars, 10 }: 11 12 stdenv.mkDerivation { 13 pname = "openmtbmap"; 14 version = "2020-06-10"; 15 16 __structuredAttrs = true; 17 18 src = fetchFromGitHub { 19 owner = "btittelbach"; 20 repo = "openmtbmap_openvelomap_linux"; 21 rev = "de24cd5d4168d8571c544ac42c51883af957a01a"; 22 hash = "sha256-J09SYLk869pQYeoGfuY9PFIOU+/W9w22kKwAkVpvkNI="; 23 }; 24 25 patches = [ 26 (replaceVars ./0001-fix-path.patch { 27 inherit gmaptool mkgmap p7zip; 28 }) 29 ]; 30 31 buildInputs = [ zsh ]; 32 33 installPhase = '' 34 install -Dm755 create_omtb_garmin_img.sh $out/bin/create_omtb_garmin_img 35 ''; 36 37 meta = { 38 description = "Linux script to extract and compile garmin *.img map files from openmtbmap.org or openvelomap.org downloads"; 39 homepage = "https://github.com/btittelbach/openmtbmap_openvelomap_linux"; 40 license = lib.licenses.free; 41 maintainers = [ lib.maintainers.sikmir ]; 42 platforms = lib.platforms.all; 43 skip.ci = true; 44 }; 45 }
