Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / op / openpgl / package.nix
blob76e61b6658d6c4ff910e3b5fe1b8fee74a8c6a71
1 { lib
2 , cmake
3 , fetchFromGitHub
4 , ninja
5 , stdenv
6 , tbb
7 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "openpgl";
11   version = "0.5.0";
13   src = fetchFromGitHub {
14     owner = "OpenPathGuidingLibrary";
15     repo = "openpgl";
16     rev = "v${finalAttrs.version}";
17     hash = "sha256-dbHmGGiHQkU0KPpQYpY/o0uCWdb3L5namETdOcOREgs=";
18   };
20   nativeBuildInputs = [
21     cmake
22     ninja
23   ];
25   buildInputs = [
26     tbb
27   ];
29   cmakeFlags = [
30     "-DOPENPGL_BUILD_STATIC=OFF"
31     "-DTBB_ROOT=${tbb.out}"
32   ];
34   env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isAarch64 && !stdenv.isDarwin) "-flax-vector-conversions";
36   meta = {
37     description = "Intel Open Path Guiding Library";
38     homepage = "https://github.com/OpenPathGuidingLibrary/openpgl";
39     platforms = lib.platforms.unix;
40     maintainers = [ lib.maintainers.amarshall ];
41     license = lib.licenses.asl20;
42   };