package.nix (887B)
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 __structuredAttrs = true; 18 19 src = fetchFromGitHub { 20 owner = "e-n-f"; 21 repo = "tile-stitch"; 22 rev = "f14d113c54bb7dcffee05a7608a806b8557139e5"; 23 hash = "sha256-EEQ/8NbcB1O1rqlDWyYw7ERDQCm4j8YGv7z8WTVVCfc="; 24 }; 25 26 nativeBuildInputs = [ pkg-config ]; 27 28 buildInputs = [ 29 curl 30 libjpeg 31 libpng 32 libtiff 33 libgeotiff 34 ]; 35 36 installPhase = "install -Dm755 stitch -t $out/bin"; 37 38 meta = { 39 description = "Stitch together and crop map tiles for a specified bounding box"; 40 homepage = "https://github.com/e-n-f/tile-stitch"; 41 license = lib.licenses.bsd2; 42 maintainers = [ lib.maintainers.sikmir ]; 43 platforms = lib.platforms.unix; 44 }; 45 })
