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