base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / libraw / package.nix
blob5c40666a21155e7c97ccd3e793943749caa87482
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , autoreconfHook
5 , lcms2
6 , pkg-config
8 # for passthru.tests
9 , deepin
10 , freeimage
11 , hdrmerge
12 , imagemagick
13 , python3
16 stdenv.mkDerivation rec {
17   pname = "libraw";
18   version = "0.21.3";
20   src = fetchFromGitHub {
21     owner = "LibRaw";
22     repo = "LibRaw";
23     rev = version;
24     hash = "sha256-QFyRQ0V7din/rnkRvEWf521kSzN7HwJ3kZiQ43PAmVI=";
25   };
27   outputs = [ "out" "lib" "dev" "doc" ];
29   propagatedBuildInputs = [ lcms2 ];
31   nativeBuildInputs = [ autoreconfHook pkg-config ];
33   enableParallelBuilding = true;
35   passthru.tests = {
36     inherit imagemagick hdrmerge freeimage;
37     inherit (deepin) deepin-image-viewer;
38     inherit (python3.pkgs) rawkit;
39   };
41   meta = with lib; {
42     description = "Library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)";
43     homepage = "https://www.libraw.org/";
44     license = with licenses; [ cddl lgpl2Plus ];
45     platforms = platforms.unix;
46   };