2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libtiff, libjpeg, proj, zlib, autoreconfHook }:
|
2010-07-28 13:55:54 +02:00
|
|
|
|
2016-11-06 10:08:40 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-07-11 12:06:19 +02:00
|
|
|
version = "1.5.1";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libgeotiff";
|
2010-06-03 02:51:13 +02:00
|
|
|
|
2019-07-11 12:06:19 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OSGeo";
|
|
|
|
repo = "libgeotiff";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "081ag23pn2n5y4fkb2rnh4hmcnq92siqiqv0s20jmx0j3s2nvfxy";
|
2010-06-03 02:51:13 +02:00
|
|
|
};
|
|
|
|
|
2019-07-11 12:06:19 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
sourceRoot = "source/libgeotiff";
|
|
|
|
|
2016-11-06 10:08:40 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-jpeg=${libjpeg.dev}"
|
|
|
|
"--with-zlib=${zlib.dev}"
|
|
|
|
];
|
2019-07-11 12:06:19 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2016-11-06 10:08:40 +01:00
|
|
|
buildInputs = [ libtiff proj ];
|
2010-06-03 02:51:13 +02:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-07 17:31:59 +01:00
|
|
|
|
2010-06-03 02:51:13 +02:00
|
|
|
meta = {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "Library implementing attempt to create a tiff based interchange format for georeferenced raster imagery";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/OSGeo/libgeotiff";
|
2021-01-21 18:00:13 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [lib.maintainers.marcweber];
|
|
|
|
platforms = with lib.platforms; linux ++ darwin;
|
2010-06-03 02:51:13 +02:00
|
|
|
};
|
|
|
|
}
|