2014-02-13 03:22:39 +01:00
|
|
|
{ stdenv, fetchurl, lcms2, jasper, pkgconfig }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-06-19 07:20:22 +02:00
|
|
|
name = "libraw-${version}";
|
2016-11-09 15:28:57 +01:00
|
|
|
version = "0.17.2";
|
2014-02-13 03:22:39 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-06-19 07:20:22 +02:00
|
|
|
url = "http://www.libraw.org/data/LibRaw-${version}.tar.gz";
|
2016-11-09 15:28:57 +01:00
|
|
|
sha256 = "0p6imxpsfn82i0i9w27fnzq6q6gwzvb9f7sygqqakv36fqnc9c4j";
|
2014-02-13 03:22:39 +01:00
|
|
|
};
|
|
|
|
|
2016-11-09 15:28:57 +01:00
|
|
|
patches =
|
|
|
|
[ (fetchurl {
|
|
|
|
url = https://anonscm.debian.org/cgit/pkg-phototools/libraw.git/plain/debian/patches/0001-Fix_gcc6_narrowing_conversion.patch?id=d890937aaca6359df45a66b35e547c94ca564823;
|
|
|
|
sha256 = "1lcg5l0wmwiyzhhm67c1c7hy8py6ihxfmicnhrwpi3i6f16vq29w";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-09-19 14:32:54 +02:00
|
|
|
outputs = [ "out" "lib" "dev" "doc" ];
|
|
|
|
|
2016-08-12 14:12:36 +02:00
|
|
|
buildInputs = [ jasper ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ lcms2 ];
|
2014-02-13 03:22:39 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2015-04-20 20:26:09 +02:00
|
|
|
meta = {
|
2014-02-13 03:22:39 +01:00
|
|
|
description = "Library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)";
|
|
|
|
homepage = http://www.libraw.org/;
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-09-01 19:39:33 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-02-13 03:22:39 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|