nixpkgs/pkgs/by-name/li/libraw/package.nix
Vladimír Čunát 01162f6639
libraw: drop freeimage from passthru.tests
It's marked as insecure, which is presumably why
the bot thinks that tests wouldn't pass.
2025-06-04 12:48:52 +02:00

62 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
lcms2,
pkg-config,
# for passthru.tests
freeimage,
hdrmerge,
imagemagick,
python3,
}:
stdenv.mkDerivation rec {
pname = "libraw";
version = "0.21.4";
src = fetchFromGitHub {
owner = "LibRaw";
repo = "LibRaw";
rev = version;
hash = "sha256-JAGIM7A9RbK22F8KczRcb+29t4fDDXzoCA3a4s/z6Q8=";
};
outputs = [
"out"
"lib"
"dev"
"doc"
];
propagatedBuildInputs = [ lcms2 ];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
enableParallelBuilding = true;
postPatch = lib.optionalString stdenv.hostPlatform.isFreeBSD ''
substituteInPlace libraw*.pc.in --replace-fail -lstdc++ ""
'';
passthru.tests = {
inherit imagemagick hdrmerge; # freeimage
inherit (python3.pkgs) rawkit;
};
meta = with lib; {
description = "Library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)";
homepage = "https://www.libraw.org/";
license = with licenses; [
cddl
lgpl2Plus
];
platforms = platforms.unix;
};
}