Добавлено bpy окружение

This commit is contained in:
Igor Brylyov 2023-01-24 22:33:29 +03:00
parent 72eeede4a1
commit 7d0f05f13e
4 changed files with 63 additions and 6 deletions

View file

@ -1,5 +1,5 @@
{
description = "Nix ROS Template";
description = "Robossembler Development Environments on Nix";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
@ -14,14 +14,28 @@
ros = ros-flake.legacyPackages.${system}.rolling;
in
{
devShells.default =
devShells.ros =
pkgs.mkShell {
buildInputs = (with ros; [ ros2run rmw-fastrtps-dynamic-cpp xacro gazebo ]);
buildInputs = (with ros; [ ros2run rmw-fastrtps-dynamic-cpp ]);
RMW_IMPLEMENTATION = "rmw_fastrtps_dynamic_cpp";
shellHook = ''
export LD_LIBRARY_PATH=${(with pkgs; lib.makeLibraryPath [ libsodium ])}
'';
};
devShells.blender =
let
bpy = pkgs.callPackage ./pkgs/bpy.nix { };
LD_LIBRARY_PATH = with pkgs;
lib.makeLibraryPath ([ libxkbcommon ] ++
(with xorg; [ libX11 libXrender libXxf86vm libXfixes libXi ])
);
in
pkgs.mkShell {
packages = [ bpy ];
shellHook = ''
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${pkgs.stdenv.cc.cc.lib}/lib/:/run/opengl-driver/lib/
'';
};
}
);
}