2019-11-17 21:14:08 +00:00
|
|
|
{ stdenv, fetchurl, lcms2, pkgconfig
|
|
|
|
, jasper ? null, withJpeg2k ? false
|
|
|
|
# disable JPEG2000 support by default as jasper has many CVE
|
|
|
|
}:
|
2014-02-13 02:22:39 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libraw";
|
2019-10-07 15:56:39 +01:00
|
|
|
version = "0.19.5";
|
2014-02-13 02:22:39 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.libraw.org/data/LibRaw-${version}.tar.gz";
|
2019-10-07 15:56:39 +01:00
|
|
|
sha256 = "1x827sh6vl8j3ll2ihkcr234y07f31hi1v7sl08jfw3irkbn58j0";
|
2014-02-13 02:22:39 +00:00
|
|
|
};
|
|
|
|
|
2016-09-19 13:32:54 +01:00
|
|
|
outputs = [ "out" "lib" "dev" "doc" ];
|
|
|
|
|
2019-11-17 21:14:08 +00:00
|
|
|
buildInputs = stdenv.lib.optionals withJpeg2k [ jasper ];
|
2016-08-12 13:12:36 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ lcms2 ];
|
2014-02-13 02:22:39 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2015-04-20 19:26:09 +01:00
|
|
|
meta = {
|
2014-02-13 02:22:39 +00:00
|
|
|
description = "Library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)";
|
2017-08-02 22:50:51 +01:00
|
|
|
homepage = https://www.libraw.org/;
|
2014-02-13 02:22:39 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2017-07-13 18:38:51 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-02-13 02:22:39 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|