depot/third_party/nixpkgs/pkgs/development/libraries/libgeotiff/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

49 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, libjpeg
, libtiff
, proj
, zlib
}:
stdenv.mkDerivation rec {
version = "1.7.3";
pname = "libgeotiff";
src = fetchFromGitHub {
owner = "OSGeo";
repo = "libgeotiff";
rev = version;
hash = "sha256-FUvWZR5BrGEMnApxCBQBwmmi9NU7Tx6Ziq3mbIxjqfc=";
};
outputs = [ "out" "dev" ];
sourceRoot = "${src.name}/libgeotiff";
configureFlags = [
"--with-jpeg=${libjpeg.dev}"
"--with-zlib=${zlib.dev}"
];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [ libtiff proj ];
#hardeningDisable = [ "format" ];
meta = with lib; {
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 = licenses.mit;
maintainers = with maintainers; teams.geospatial.members ++ [ marcweber ];
platforms = with platforms; linux ++ darwin;
};
}