default.nix (984B)
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 src = fetchFromGitHub { 17 owner = "btittelbach"; 18 repo = "openmtbmap_openvelomap_linux"; 19 rev = "de24cd5d4168d8571c544ac42c51883af957a01a"; 20 hash = "sha256-J09SYLk869pQYeoGfuY9PFIOU+/W9w22kKwAkVpvkNI="; 21 }; 22 23 patches = [ 24 (replaceVars ./0001-fix-path.patch { 25 inherit gmaptool mkgmap p7zip; 26 }) 27 ]; 28 29 buildInputs = [ zsh ]; 30 31 installPhase = '' 32 install -Dm755 create_omtb_garmin_img.sh $out/bin/create_omtb_garmin_img 33 ''; 34 35 meta = { 36 description = "Linux script to extract and compile garmin *.img map files from openmtbmap.org or openvelomap.org downloads"; 37 homepage = "https://github.com/btittelbach/openmtbmap_openvelomap_linux"; 38 license = lib.licenses.free; 39 maintainers = [ lib.maintainers.sikmir ]; 40 platforms = lib.platforms.all; 41 skip.ci = true; 42 }; 43 }