nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchFromGitHub, autoreconfHook, lcms2, pkg-config }:
2
3stdenv.mkDerivation rec {
4 pname = "libraw";
5 version = "0.20.2";
6
7 src = fetchFromGitHub {
8 owner = "LibRaw";
9 repo = "LibRaw";
10 rev = version;
11 sha256 = "16nm4r2l5501c9zvz25pzajq5id592jhn068scjxhr8np2cblybc";
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 = licenses.gpl2Plus;
26 platforms = platforms.unix;
27 };
28}
29