mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-09 17:42:22 +03:00

Some checks failed
Build / build (humble, aarch64-linux) (push) Has been cancelled
Build / build (humble, x86_64-linux) (push) Has been cancelled
Build / build (jazzy, aarch64-linux) (push) Has been cancelled
Build / build (jazzy, x86_64-linux) (push) Has been cancelled
Build / build (noetic, aarch64-linux) (push) Has been cancelled
Build / build (noetic, x86_64-linux) (push) Has been cancelled
Build / build (rolling, aarch64-linux) (push) Has been cancelled
Build / build (rolling, x86_64-linux) (push) Has been cancelled
50 lines
1.7 KiB
Nix
50 lines
1.7 KiB
Nix
{
|
|
description = "ROS overlay for the Nix package manager";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:lopsided98/nixpkgs/nix-ros";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
with nixpkgs.lib;
|
|
with flake-utils.lib;
|
|
eachSystem systems.flakeExposed (system: let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ self.overlays.default ];
|
|
};
|
|
in {
|
|
legacyPackages = pkgs.rosPackages;
|
|
|
|
devShells = {
|
|
example-turtlebot3-gazebo = import ./examples/turtlebot3-gazebo.nix { inherit pkgs; };
|
|
example-ros2-basic = import ./examples/ros2-basic.nix { inherit pkgs; };
|
|
example-ros2-gz = import ./examples/ros2-gz.nix { inherit pkgs; };
|
|
example-ros2-turtlebot4-gz = import ./examples/ros2-turtlebot4-gz.nix { inherit pkgs; };
|
|
|
|
# Development environment for the custom GitHub action
|
|
nix-ros-build-action = pkgs.callPackage ./.github/actions/nix-ros-build-action/shell.nix { };
|
|
};
|
|
}) // {
|
|
overlays.default = import ./overlay.nix;
|
|
nixosModules.default = ./modules;
|
|
|
|
overlay = nixpkgs.lib.warn
|
|
"'nix-ros-overlay.overlay' is deprecated, use 'nix-ros-overlay.overlays.default' instead"
|
|
self.overlays.default;
|
|
nixosModule = nixpkgs.lib.warn
|
|
"'nix-ros-overlay.nixosModule' is deprecated, use 'nix-ros-overlay.nixosModules.default' instead"
|
|
self.nixosModules.default;
|
|
templates.default = {
|
|
path = ./examples/flake;
|
|
description = "Basic ROS flake";
|
|
};
|
|
};
|
|
|
|
nixConfig = {
|
|
extra-substituters = [ "https://ros.cachix.org" ];
|
|
extra-trusted-public-keys = [ "ros.cachix.org-1:dSyZxI8geDCJrwgvCOHDoAfOm5sV1wCPjBkKL+38Rvo=" ];
|
|
};
|
|
|
|
}
|