default.nix (999B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 gmaptool, 6 mkgmap, 7 p7zip, 8 zsh, 9 substituteAll, 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 substituteAll { 25 src = ./0001-fix-path.patch; 26 inherit gmaptool mkgmap p7zip; 27 } 28 ); 29 30 buildInputs = [ zsh ]; 31 32 installPhase = '' 33 install -Dm755 create_omtb_garmin_img.sh $out/bin/create_omtb_garmin_img 34 ''; 35 36 meta = { 37 description = "Linux script to extract and compile garmin *.img map files from openmtbmap.org or openvelomap.org downloads"; 38 homepage = "https://github.com/btittelbach/openmtbmap_openvelomap_linux"; 39 license = lib.licenses.free; 40 maintainers = [ lib.maintainers.sikmir ]; 41 platforms = lib.platforms.all; 42 skip.ci = true; 43 }; 44 }