2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, lcms2
|
|
|
|
, pkg-config
|
|
|
|
|
|
|
|
# for passthru.tests
|
|
|
|
, deepin
|
|
|
|
, freeimage
|
|
|
|
, hdrmerge
|
|
|
|
, imagemagick
|
|
|
|
, python3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "libraw";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "0.21.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-27 00:29:36 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LibRaw";
|
|
|
|
repo = "LibRaw";
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = version;
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-p9CmOCulvV7+KKn1lXwpcysOo0+mD5UgPqy2ki0cIFE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "lib" "dev" "doc" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ lcms2 ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-27 00:29:36 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit imagemagick hdrmerge freeimage;
|
|
|
|
inherit (deepin) deepin-image-viewer;
|
|
|
|
inherit (python3.pkgs) rawkit;
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)";
|
|
|
|
homepage = "https://www.libraw.org/";
|
2023-02-16 17:41:37 +00:00
|
|
|
license = with licenses; [ cddl lgpl2Plus ];
|
2020-10-27 00:29:36 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|