{ stdenv, fetchurl, lcms2, jasper, pkgconfig }: stdenv.mkDerivation rec { name = "libraw-${version}"; version = "0.18.10"; src = fetchurl { url = "http://www.libraw.org/data/LibRaw-${version}.tar.gz"; sha256 = "0klrzg1cn8ksxqbhx52dldi5bbmad190npnhhgkyr2jzpgrbpj88"; }; 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; }; }