appleseed: use python3
This commit is contained in:
parent
d39767ea0f
commit
1079157175
|
@ -1,11 +1,12 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, boost165, pkg-config, guile,
|
{ lib, stdenv, fetchFromGitHub, cmake, boost165, pkg-config, guile,
|
||||||
eigen, libpng, python, libGLU, qt4, openexr, openimageio,
|
eigen, libpng, python3, libGLU, qt4, openexr, openimageio,
|
||||||
opencolorio_1, xercesc, ilmbase, osl, seexpr, makeWrapper
|
opencolorio_1, xercesc, ilmbase, osl, seexpr, makeWrapper
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let boost_static = boost165.override {
|
let boost_static = boost165.override {
|
||||||
enableStatic = true;
|
enableStatic = true;
|
||||||
enablePython = true;
|
enablePython = true;
|
||||||
|
python = python3;
|
||||||
};
|
};
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
|
@ -20,7 +21,7 @@ in stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost_static guile eigen libpng python
|
boost_static guile eigen libpng python3
|
||||||
libGLU qt4 openexr openimageio opencolorio_1 xercesc
|
libGLU qt4 openexr openimageio opencolorio_1 xercesc
|
||||||
osl seexpr
|
osl seexpr
|
||||||
];
|
];
|
||||||
|
@ -59,7 +60,7 @@ in stdenv.mkDerivation rec {
|
||||||
# Work around a bug in the CMake build:
|
# Work around a bug in the CMake build:
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
chmod a+x $out/bin/*
|
chmod a+x $out/bin/*
|
||||||
wrapProgram $out/bin/appleseed.studio --set PYTHONHOME ${python}
|
wrapProgram $out/bin/appleseed.studio --set PYTHONHOME ${python3}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue