diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libgeotiff')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libgeotiff/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libgeotiff/default.nix b/nixpkgs/pkgs/development/libraries/libgeotiff/default.nix new file mode 100644 index 000000000000..628f4dca8c56 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libgeotiff/default.nix @@ -0,0 +1,49 @@ +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, pkg-config +, libjpeg +, libtiff +, proj +, zlib +}: + +stdenv.mkDerivation rec { + version = "1.7.1"; + pname = "libgeotiff"; + + src = fetchFromGitHub { + owner = "OSGeo"; + repo = "libgeotiff"; + rev = version; + hash = "sha256-bE6UAUKiorriTgYrqhxbMAN2NEtmV/8IIfF02RUghSI="; + }; + + outputs = [ "out" "dev" ]; + + sourceRoot = "source/libgeotiff"; + + configureFlags = [ + "--with-jpeg=${libjpeg.dev}" + "--with-zlib=${zlib.dev}" + ]; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + ]; + + buildInputs = [ libtiff proj ]; + + #hardeningDisable = [ "format" ]; + + meta = { + description = "Library implementing attempt to create a tiff based interchange format for georeferenced raster imagery"; + homepage = "https://github.com/OSGeo/libgeotiff"; + changelog = "https://github.com/OSGeo/libgeotiff/blob/${src.rev}/libgeotiff/NEWS"; + license = lib.licenses.mit; + maintainers = [lib.maintainers.marcweber]; + platforms = with lib.platforms; linux ++ darwin; + }; +} |