17 stdenv.mkDerivation rec {
21 src = fetchFromGitHub {
25 sha256 = "sha256-K9mULf6V/TCl5Vu4iuIdSGF9HzQlgNQLRFHIpNbmAlY";
30 name = "CVE-2023-1729.patch";
31 url = "https://github.com/LibRaw/LibRaw/commit/9ab70f6dca19229cb5caad7cc31af4e7501bac93.patch";
32 hash = "sha256-OAyqphxvtSM15NI77HwtGTmTmP9YNu3xhZ6D1CceJ7I=";
36 outputs = [ "out" "lib" "dev" "doc" ];
38 propagatedBuildInputs = [ lcms2 ];
40 nativeBuildInputs = [ autoreconfHook pkg-config ];
42 enableParallelBuilding = true;
45 inherit imagemagick hdrmerge freeimage;
46 inherit (deepin) deepin-image-viewer;
47 inherit (python3.pkgs) rawkit;
51 description = "Library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)";
52 homepage = "https://www.libraw.org/";
53 license = with licenses; [ cddl lgpl2Plus ];
54 platforms = platforms.unix;