libraw: cleanup and modernize (#428584)

dotlambda 3e48f00d 08b56a62

Changed files
+7 -8
pkgs
by-name
li
libraw
+7 -8
pkgs/by-name/li/libraw/package.nix
···
pkg-config,
# for passthru.tests
-
freeimage,
hdrmerge,
imagemagick,
python3,
}:
-
stdenv.mkDerivation rec {
+
stdenv.mkDerivation (finalAttrs: {
pname = "libraw";
version = "0.21.4";
src = fetchFromGitHub {
owner = "LibRaw";
repo = "LibRaw";
-
rev = version;
+
tag = finalAttrs.version;
hash = "sha256-JAGIM7A9RbK22F8KczRcb+29t4fDDXzoCA3a4s/z6Q8=";
};
···
'';
passthru.tests = {
-
inherit imagemagick hdrmerge; # freeimage
+
inherit imagemagick hdrmerge;
inherit (python3.pkgs) rawkit;
};
-
meta = with lib; {
+
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 licenses; [
+
license = with lib.licenses; [
cddl
lgpl2Plus
];
-
platforms = platforms.unix;
+
platforms = lib.platforms.unix;
};
-
}
+
})