Files
nixpkgs/pkgs/by-name/li/libraw/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

61 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
lcms2,
pkg-config,
# for passthru.tests
hdrmerge,
imagemagick,
python3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libraw";
version = "0.21.4";
src = fetchFromGitHub {
owner = "LibRaw";
repo = "LibRaw";
tag = finalAttrs.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;
inherit (python3.pkgs) rawkit;
};
meta = {
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 lib.licenses; [
cddl
lgpl2Plus
];
platforms = lib.platforms.unix;
};
})