-
Notifications
You must be signed in to change notification settings - Fork 0
/
usd.nix
61 lines (56 loc) · 871 Bytes
/
usd.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{ stdenv
, fetchFromGitHub
, cmake
, pkg-config
, boost
, python3
, tbb
, libGL
, libGLU
, glew
, opensubdiv
, openexr
, openimageio
, opencolorio
, osl
, ptex
, xorg
}:
let
python = python3.withPackages (p: with p; [
jinja2
pyopengl
pyside2
pyside2-tools
]);
in
stdenv.mkDerivation rec {
pname = "usd";
version = "23.02";
src = fetchFromGitHub {
owner = "PixarAnimationStudios";
repo = "USD";
rev = "5c5ebddff35012461a2b0ba773c47f05730cbab4";
sha256 = "sha256-njgLK0bl9HfX0FfSgVOib2X1QSjQuQIjxqPpAtH4BZs=";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
(boost.override { enablePython = true; inherit python; })
python
tbb
libGL
libGLU
glew
opensubdiv
openexr
openimageio
opencolorio
osl
ptex
xorg.libX11
];
}