osl: mordernize
This commit is contained in:
parent
64e60fe76d
commit
40d30b9ec5
@ -23,14 +23,14 @@
|
|||||||
let
|
let
|
||||||
boost_static = boost.override { enableStatic = true; };
|
boost_static = boost.override { enableStatic = true; };
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "openshadinglanguage";
|
pname = "openshadinglanguage";
|
||||||
version = "1.14.5.1";
|
version = "1.14.5.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "AcademySoftwareFoundation";
|
owner = "AcademySoftwareFoundation";
|
||||||
repo = "OpenShadingLanguage";
|
repo = "OpenShadingLanguage";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-dmGVCx4m2bkeKhAJbU1mrzEDAmnL++7GA5okb9wwk/Y=";
|
hash = "sha256-dmGVCx4m2bkeKhAJbU1mrzEDAmnL++7GA5okb9wwk/Y=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -51,7 +51,9 @@ stdenv.mkDerivation rec {
|
|||||||
--replace-fail "NO_DEFAULT_PATH" ""
|
--replace-fail "NO_DEFAULT_PATH" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preConfigure = "patchShebangs src/liboslexec/serialize-bc.bash ";
|
preConfigure = ''
|
||||||
|
patchShebangs src/liboslexec/serialize-bc.bash
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
bison
|
bison
|
||||||
@ -83,11 +85,11 @@ stdenv.mkDerivation rec {
|
|||||||
--replace '=''${exec_prefix}//' '=/'
|
--replace '=''${exec_prefix}//' '=/'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Advanced shading language for production GI renderers";
|
description = "Advanced shading language for production GI renderers";
|
||||||
homepage = "https://opensource.imageworks.com/osl.html";
|
homepage = "https://opensource.imageworks.com/osl.html";
|
||||||
maintainers = with maintainers; [ hodapp ];
|
maintainers = with lib.maintainers; [ hodapp ];
|
||||||
license = licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
platforms = platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user