1{ lib
2, stdenv
3, fetchFromGitHub
4, autoreconfHook
5, pkg-config
6, libjpeg
7, libtiff
8, proj
9, zlib
10}:
11
12stdenv.mkDerivation rec {
13 version = "1.7.1";
14 pname = "libgeotiff";
15
16 src = fetchFromGitHub {
17 owner = "OSGeo";
18 repo = "libgeotiff";
19 rev = version;
20 hash = "sha256-bE6UAUKiorriTgYrqhxbMAN2NEtmV/8IIfF02RUghSI=";
21 };
22
23 outputs = [ "out" "dev" ];
24
25 sourceRoot = "${src.name}/libgeotiff";
26
27 configureFlags = [
28 "--with-jpeg=${libjpeg.dev}"
29 "--with-zlib=${zlib.dev}"
30 ];
31
32 nativeBuildInputs = [
33 autoreconfHook
34 pkg-config
35 ];
36
37 buildInputs = [ libtiff proj ];
38
39 #hardeningDisable = [ "format" ];
40
41 meta = with lib; {
42 description = "Library implementing attempt to create a tiff based interchange format for georeferenced raster imagery";
43 homepage = "https://github.com/OSGeo/libgeotiff";
44 changelog = "https://github.com/OSGeo/libgeotiff/blob/${src.rev}/libgeotiff/NEWS";
45 license = licenses.mit;
46 maintainers = with maintainers; teams.geospatial.members ++ [ marcweber ];
47 platforms = with platforms; linux ++ darwin;
48 };
49}