Добавлено bpy окружение
This commit is contained in:
parent
72eeede4a1
commit
7d0f05f13e
4 changed files with 63 additions and 6 deletions
|
@ -1,5 +1,6 @@
|
||||||
# CG Overlay
|
# Операционные окружения разработчиков Робосборщика
|
||||||
|
|
||||||
[](https://brothermechanic.cachix.org)
|
[](https://robossembler.cachix.org)
|
||||||
|
|
||||||
Computer Graphics media packages.
|
* Python-модуль bpy: `nix develop .#blender`
|
||||||
|
* ROS2 Rolling `nix develop .#ros`
|
20
flake.nix
20
flake.nix
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
description = "Nix ROS Template";
|
description = "Robossembler Development Environments on Nix";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
@ -14,14 +14,28 @@
|
||||||
ros = ros-flake.legacyPackages.${system}.rolling;
|
ros = ros-flake.legacyPackages.${system}.rolling;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
devShells.default =
|
devShells.ros =
|
||||||
pkgs.mkShell {
|
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";
|
RMW_IMPLEMENTATION = "rmw_fastrtps_dynamic_cpp";
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export LD_LIBRARY_PATH=${(with pkgs; lib.makeLibraryPath [ libsodium ])}
|
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/
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
21
pkgs/bpy.nix
Normal file
21
pkgs/bpy.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ lib, pkgs, python310, fetchurl }:
|
||||||
|
|
||||||
|
pkgs.python310Packages.buildPythonPackage rec {
|
||||||
|
pname = "bpy";
|
||||||
|
version = "3.4.0";
|
||||||
|
format = "wheel";
|
||||||
|
src = fetchurl {
|
||||||
|
sha256 = "87b3cf0e9138ec46cdfb570d1577bf547b9cd46608ccb5068d41e28b5ae3a744";
|
||||||
|
url = "https://files.pythonhosted.org/packages/9c/f3/732e7c6d6c0932b80df488a24e02ac34e8eae14a3c893eb97dcbf6e9c93c/bpy-3.4.0-cp310-cp310-manylinux_2_17_x86_64.whl";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = with pkgs.python310Packages; [ cython numpy requests zstandard ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "3D Creation/Animation/Publishing System";
|
||||||
|
homepage = "https://www.blender.org";
|
||||||
|
license = with licenses; [ gpl2Plus ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
maintainers = with maintainers; [ movefasta ];
|
||||||
|
};
|
||||||
|
}
|
21
pkgs/bpy/default.nix
Normal file
21
pkgs/bpy/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ lib, pkgs, python310, fetchurl }:
|
||||||
|
|
||||||
|
pkgs.python310Packages.buildPythonPackage rec {
|
||||||
|
pname = "bpy";
|
||||||
|
version = "3.4.0";
|
||||||
|
format = "wheel";
|
||||||
|
src = fetchurl {
|
||||||
|
sha256 = "87b3cf0e9138ec46cdfb570d1577bf547b9cd46608ccb5068d41e28b5ae3a744";
|
||||||
|
url = "https://files.pythonhosted.org/packages/9c/f3/732e7c6d6c0932b80df488a24e02ac34e8eae14a3c893eb97dcbf6e9c93c/bpy-3.4.0-cp310-cp310-manylinux_2_17_x86_64.whl";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = with pkgs.python310Packages; [ cython numpy requests zstandard ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "3D Creation/Animation/Publishing System";
|
||||||
|
homepage = "https://www.blender.org";
|
||||||
|
license = with licenses; [ gpl2Plus ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
maintainers = with maintainers; [ movefasta ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue