Files
ccpkgs/pkgs/openslide/default.nix
2023-05-23 13:15:36 -04:00

40 lines
982 B
Nix

{ stdenv, autoreconfHook, pkg-config, fetchFromGitHub
, zlib, openjpeg, libtiff, cairo, libpng, gdk-pixbuf, libxml2, sqlite }:
stdenv.mkDerivation rec {
version = "3.4.1";
name = "openslide-${version}";
src = fetchFromGitHub {
owner = "openslide";
repo = "openslide";
rev = "v${version}";
sha256 = "1g4hhjr4cbx754cwi9wl84k33bkg232w8ajic7aqhzm8x182hszp";
};
buildInputs = [
autoreconfHook
pkg-config
zlib
openjpeg
libtiff
cairo
libpng
gdk-pixbuf
libxml2
sqlite
];
# Not sure why this Windows test isn't failing under Linux
postPatch = ''
sed -i -e 's|AM_CONDITIONAL(\[WINDOWS_RESOURCES\], \[test x$RC != x\])|AM_CONDITIONAL([WINDOWS_RESOURCES], [false])|' configure.ac
'';
meta = with stdenv.lib; {
homepage = http://openslide.org;
description = "A C library that provides a simple interface to read whole-slide images.";
platforms = platforms.all;
license = licenses.lgpl2;
};
}