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