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
47 lines
921 B
Nix
47 lines
921 B
Nix
{
|
|
lib,
|
|
cmake,
|
|
fetchFromGitHub,
|
|
ninja,
|
|
stdenv,
|
|
onetbb,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "openpgl";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenPathGuidingLibrary";
|
|
repo = "openpgl";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-3DZx+19t3ux3y1HplvrjF7QEhTH/pC+VlKdZhiUPbGI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
onetbb
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DOPENPGL_BUILD_STATIC=OFF"
|
|
"-DTBB_ROOT=${onetbb.out}"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString (
|
|
stdenv.hostPlatform.isAarch64 && !stdenv.hostPlatform.isDarwin
|
|
) "-flax-vector-conversions";
|
|
|
|
meta = {
|
|
description = "Intel Open Path Guiding Library";
|
|
homepage = "https://github.com/OpenPathGuidingLibrary/openpgl";
|
|
platforms = lib.platforms.unix;
|
|
maintainers = [ lib.maintainers.amarshall ];
|
|
license = lib.licenses.asl20;
|
|
};
|
|
})
|