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