1{ lib, stdenv, fetchFromGitHub, autoreconfHook, lcms2, pkg-config }:
2
3stdenv.mkDerivation rec {
4 pname = "libraw";
5 version = "0.21.1";
6
7 src = fetchFromGitHub {
8 owner = "LibRaw";
9 repo = "LibRaw";
10 rev = version;
11 sha256 = "sha256-K9mULf6V/TCl5Vu4iuIdSGF9HzQlgNQLRFHIpNbmAlY";
12 };
13
14 outputs = [ "out" "lib" "dev" "doc" ];
15
16 propagatedBuildInputs = [ lcms2 ];
17
18 nativeBuildInputs = [ autoreconfHook pkg-config ];
19
20 enableParallelBuilding = true;
21
22 meta = with lib; {
23 description = "Library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)";
24 homepage = "https://www.libraw.org/";
25 license = with licenses; [ cddl lgpl2Plus ];
26 platforms = platforms.unix;
27 };
28}
29