default.nix (858B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 curl, 6 libjpeg, 7 libpng, 8 libtiff, 9 libgeotiff, 10 pkg-config, 11 }: 12 13 stdenv.mkDerivation (finalAttrs: { 14 pname = "tile-stitch"; 15 version = "0-unstable-2019-07-11"; 16 17 src = fetchFromGitHub { 18 owner = "e-n-f"; 19 repo = "tile-stitch"; 20 rev = "f14d113c54bb7dcffee05a7608a806b8557139e5"; 21 hash = "sha256-EEQ/8NbcB1O1rqlDWyYw7ERDQCm4j8YGv7z8WTVVCfc="; 22 }; 23 24 nativeBuildInputs = [ pkg-config ]; 25 26 buildInputs = [ 27 curl 28 libjpeg 29 libpng 30 libtiff 31 libgeotiff 32 ]; 33 34 installPhase = "install -Dm755 stitch -t $out/bin"; 35 36 meta = { 37 description = "Stitch together and crop map tiles for a specified bounding box"; 38 homepage = "https://github.com/e-n-f/tile-stitch"; 39 license = lib.licenses.bsd2; 40 maintainers = [ lib.maintainers.sikmir ]; 41 platforms = lib.platforms.unix; 42 }; 43 })