2023-08-12 14:34:46 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, autoreconfHook
|
|
|
|
, lcms2
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2014-02-13 02:22:39 +00:00
|
|
|
|
2023-01-28 08:45:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libraw";
|
2023-01-28 08:45:59 +00:00
|
|
|
version = "0.21.1";
|
2014-02-13 02:22:39 +00:00
|
|
|
|
2020-10-23 22:40:06 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LibRaw";
|
|
|
|
repo = "LibRaw";
|
2023-01-28 08:45:59 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-K9mULf6V/TCl5Vu4iuIdSGF9HzQlgNQLRFHIpNbmAlY";
|
2014-02-13 02:22:39 +00:00
|
|
|
};
|
|
|
|
|
2023-08-12 14:34:46 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2023-1729.patch";
|
|
|
|
url = "https://github.com/LibRaw/LibRaw/commit/9ab70f6dca19229cb5caad7cc31af4e7501bac93.patch";
|
|
|
|
hash = "sha256-OAyqphxvtSM15NI77HwtGTmTmP9YNu3xhZ6D1CceJ7I=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-09-19 12:32:54 +00:00
|
|
|
outputs = [ "out" "lib" "dev" "doc" ];
|
|
|
|
|
2016-08-12 12:12:36 +00:00
|
|
|
propagatedBuildInputs = [ lcms2 ];
|
2014-02-13 02:22:39 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2014-02-13 02:22:39 +00:00
|
|
|
|
2020-10-23 22:40:06 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
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)";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.libraw.org/";
|
2023-01-28 08:45:59 +00:00
|
|
|
license = with licenses; [ cddl lgpl2Plus ];
|
2020-10-23 22:40:06 +00:00
|
|
|
platforms = platforms.unix;
|
2014-02-13 02:22:39 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|