openslide: Initial packaging (includes python interface)

* Add upstream commit 4ea9211 for Pillow issue 2259
This commit is contained in:
Tyson Whitehead
2017-05-01 17:40:26 -04:00
parent e0577fa54e
commit c979c0fe6b
3 changed files with 154 additions and 0 deletions

33
openslide/default.nix Normal file
View File

@@ -0,0 +1,33 @@
with import <nixpkgs> { };
stdenv.mkDerivation rec {
version = "3.4.1";
name = "openslide-${version}";
src = fetchFromGitHub {
owner = "openslide";
repo = "openslide";
rev = "v${version}";
sha256 = "1g4hhjr4cbx754cwi9wl84k33bkg232w8ajic7aqhzm8x182hszp";
};
buildInputs = [
autoreconfHook
pkgconfig
zlib
openjpeg
libtiff
cairo
libpng
gdk_pixbuf
libxml2
sqlite
];
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;
};
}