Files
nixpkgs/pkgs/by-name/li/libyafaray/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

67 lines
1.2 KiB
Nix

{
cmake,
fetchFromGitHub,
freetype,
lib,
libjpeg,
libtiff,
libxml2,
opencv,
openexr,
pkg-config,
stdenv,
swig,
zlib,
withPython ? true,
python3,
}:
stdenv.mkDerivation {
pname = "libyafaray";
version = "unstable-2022-09-17";
src = fetchFromGitHub {
owner = "YafaRay";
repo = "libYafaRay";
rev = "6e8c45fb150185b3356220e5f99478f20408ee49";
sha256 = "sha256-UVBA1vXOuLg4RT+BdF4rhbZ6I9ySeZX0N81gh3MH84I=";
};
postPatch = ''
sed '1i#include <memory>' -i \
include/geometry/poly_double.h include/noise/noise_generator.h # gcc12
'';
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
freetype
libjpeg
libtiff
libxml2
opencv
openexr
swig
zlib
]
++ lib.optional withPython python3;
meta = with lib; {
description = "Free, open source raytracer";
downloadPage = "https://github.com/YafaRay/libYafaRay";
homepage = "http://www.yafaray.org";
maintainers = with maintainers; [ hodapp ];
license = licenses.lgpl21;
platforms = [
"aarch64-linux"
"x86_64-linux"
];
};
}
# TODO: Add optional Ruby support
# TODO: Add Qt support? (CMake looks for it, but what for?)