about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libgeotiff/default.nix
blob: ed2711557e73809b54b90323c3650d7c44f185c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, libtiff, libjpeg, proj, zlib}:

stdenv.mkDerivation rec {
  version = "1.4.3";
  name = "libgeotiff-${version}";

  src = fetchurl {
    url = "https://download.osgeo.org/geotiff/libgeotiff/${name}.tar.gz";
    sha256 = "0rbjqixi4c8yz19larlzq6jda0px2gpmpp9c52cyhplbjsdhsldq";
  };

  configureFlags = [
    "--with-jpeg=${libjpeg.dev}"
    "--with-zlib=${zlib.dev}"
  ];
  buildInputs = [ libtiff proj ];

  hardeningDisable = [ "format" ];

  meta = {
    description = "Library implementing attempt to create a tiff based interchange format for georeferenced raster imagery";
    homepage = https://www.remotesensing.org/geotiff/geotiff.html;
    license = stdenv.lib.licenses.mit;
    maintainers = [stdenv.lib.maintainers.marcweber];
    platforms = with stdenv.lib.platforms; linux ++ darwin;
  };
}