mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
e895d0e115
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
44 lines
870 B
Nix
44 lines
870 B
Nix
{ lib
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, ninja
|
|
, stdenv
|
|
, tbb
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "openpgl";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OpenPathGuidingLibrary";
|
|
repo = "openpgl";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-dbHmGGiHQkU0KPpQYpY/o0uCWdb3L5namETdOcOREgs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
];
|
|
|
|
buildInputs = [
|
|
tbb
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DOPENPGL_BUILD_STATIC=OFF"
|
|
"-DTBB_ROOT=${tbb.out}"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isAarch64 && !stdenv.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;
|
|
};
|
|
})
|