nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.11 36 lines 919 B view raw
1{ lib, stdenv, fetchFromGitHub, libtiff, libjpeg, proj, zlib, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 version = "1.5.1"; 5 pname = "libgeotiff"; 6 7 src = fetchFromGitHub { 8 owner = "OSGeo"; 9 repo = "libgeotiff"; 10 rev = version; 11 sha256 = "081ag23pn2n5y4fkb2rnh4hmcnq92siqiqv0s20jmx0j3s2nvfxy"; 12 }; 13 14 outputs = [ "out" "dev" ]; 15 16 sourceRoot = "source/libgeotiff"; 17 18 configureFlags = [ 19 "--with-jpeg=${libjpeg.dev}" 20 "--with-zlib=${zlib.dev}" 21 ]; 22 23 nativeBuildInputs = [ autoreconfHook ]; 24 25 buildInputs = [ libtiff proj ]; 26 27 hardeningDisable = [ "format" ]; 28 29 meta = { 30 description = "Library implementing attempt to create a tiff based interchange format for georeferenced raster imagery"; 31 homepage = "https://github.com/OSGeo/libgeotiff"; 32 license = lib.licenses.mit; 33 maintainers = [lib.maintainers.marcweber]; 34 platforms = with lib.platforms; linux ++ darwin; 35 }; 36}