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
58 lines
1000 B
Nix
58 lines
1000 B
Nix
{
|
|
stdenv,
|
|
fetchurl,
|
|
boost,
|
|
gdk-pixbuf,
|
|
glib,
|
|
libjpeg,
|
|
libxml2,
|
|
lib,
|
|
pkg-config,
|
|
cargo,
|
|
rustc,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libopenraw";
|
|
version = "0.3.7";
|
|
|
|
src = fetchurl {
|
|
url = "https://libopenraw.freedesktop.org/download/libopenraw-${version}.tar.bz2";
|
|
hash = "sha256-VRWyYQNh7zRYC2uXZjURn23ttPCnnVRmL6X+YYakXtU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
cargo
|
|
rustc
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
gdk-pixbuf
|
|
glib
|
|
libjpeg
|
|
libxml2
|
|
];
|
|
|
|
postPatch = ''
|
|
sed -i configure{,.ac} \
|
|
-e "s,GDK_PIXBUF_DIR=.*,GDK_PIXBUF_DIR=$out/lib/gdk-pixbuf-2.0/2.10.0/loaders,"
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--with-boost=${lib.getDev boost}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "RAW camerafile decoding library";
|
|
homepage = "https://libopenraw.freedesktop.org";
|
|
license = licenses.lgpl3Plus;
|
|
platforms = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
maintainers = [ maintainers.struan ];
|
|
};
|
|
}
|