mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
opensubdiv: Add
This commit is contained in:
parent
504fbfac2f
commit
c90d26140e
47
pkgs/development/libraries/opensubdiv/default.nix
Normal file
47
pkgs/development/libraries/opensubdiv/default.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ lib, stdenv, fetchurl, fetchFromGitHub, cmake, pkgconfig, xorg, mesa, glew
|
||||
, cudaSupport ? false, cudatoolkit
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "opensubdiv-3.0.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PixarAnimationStudios";
|
||||
repo = "OpenSubdiv";
|
||||
rev = "v3_0_3";
|
||||
sha256 = "1pd7xsz4lx5l2hdixfgqx9yijchw108wqkvxj78rbblkkawvqhmx";
|
||||
};
|
||||
|
||||
patches =
|
||||
[ # Fix for building with cudatoolkit 7.
|
||||
(fetchurl {
|
||||
url = "https://github.com/opeca64/OpenSubdiv/commit/c3c258d00feaeffe1123f6077179c155e71febfb.patch";
|
||||
sha256 = "0vazhp35v8vsgnvprkzwvfkbalr0kzcwlin9ygyfb77cz7mwicnf";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
[ cmake pkgconfig mesa
|
||||
# FIXME: these are not actually needed, but the configure script wants them.
|
||||
glew xorg.libX11 xorg.libXrandr xorg.libXxf86vm xorg.libXcursor xorg.libXinerama
|
||||
]
|
||||
++ lib.optional cudaSupport cudatoolkit;
|
||||
|
||||
cmakeFlags =
|
||||
[ "-DNO_TUTORIALS=1"
|
||||
"-DNO_REGRESSION=1"
|
||||
"-DNO_EXAMPLES=1"
|
||||
"-DGLEW_INCLUDE_DIR=${glew}/include"
|
||||
"-DGLEW_LIBRARY=${glew}/lib"
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
description = "An Open-Source subdivision surface library";
|
||||
homepage = http://graphics.pixar.com/opensubdiv;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = [ lib.maintainers.eelco ];
|
||||
license = lib.licenses.asl20;
|
||||
};
|
||||
}
|
@ -7794,6 +7794,8 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
opensubdiv = callPackage ../development/libraries/opensubdiv { };
|
||||
|
||||
openwsman = callPackage ../development/libraries/openwsman {};
|
||||
|
||||
ortp = callPackage ../development/libraries/ortp { };
|
||||
|
Loading…
Reference in New Issue
Block a user