nixpkgs/pkgs/development/libraries/libgeotiff/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, libjpeg
, libtiff
, proj
, zlib
}:
2016-11-06 09:08:40 +00:00
stdenv.mkDerivation rec {
version = "1.7.1";
pname = "libgeotiff";
2019-07-11 10:06:19 +00:00
src = fetchFromGitHub {
owner = "OSGeo";
repo = "libgeotiff";
rev = version;
hash = "sha256-bE6UAUKiorriTgYrqhxbMAN2NEtmV/8IIfF02RUghSI=";
};
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
pkg-config
];
2019-07-11 10:06:19 +00:00
2016-11-06 09:08:40 +00:00
buildInputs = [ libtiff proj ];
#hardeningDisable = [ "format" ];
2016-02-07 16:31:59 +00:00
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;
};
}