{ stdenv, fetchurl, lcms2, jasper, pkgconfig }:
stdenv.mkDerivation rec {
name = "libraw-${version}";
version = "0.18.8";
src = fetchurl {
url = "http://www.libraw.org/data/LibRaw-${version}.tar.gz";
sha256 = "1qi0fkw2zmd0yplrf79z7lgpz0hxl45dj5rdgpaj7283jzys9b2n";
};
outputs = [ "out" "lib" "dev" "doc" ];
buildInputs = [ jasper ];
propagatedBuildInputs = [ lcms2 ];
nativeBuildInputs = [ pkgconfig ];
meta = {
description = "Library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)";
homepage = https://www.libraw.org/;
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.unix;
}