7 stdenv.mkDerivation (finalAttrs: {
8 pname = blender.pname + "-wrapped";
11 inherit (blender) version meta;
13 nativeBuildInputs = [ blender.pythonPackages.wrapPython makeWrapper ];
15 mkdir $out/{share/applications,bin} -p
16 sed 's/Exec=blender/Exec=${finalAttrs.finalPackage.pname}/g' $src/share/applications/blender.desktop > $out/share/applications/${finalAttrs.finalPackage.pname}.desktop
17 cp -r $src/share/blender $out/share
18 cp -r $src/share/doc $out/share
19 cp -r $src/share/icons $out/share
21 buildPythonPath "$pythonPath"
23 makeWrapper ${blender}/bin/blender $out/bin/${finalAttrs.finalPackage.pname} \
24 --prefix PATH : $program_PATH \
25 --prefix PYTHONPATH : $program_PYTHONPATH
28 pythonPath = extraModules;