Update flake.nix

This commit is contained in:
Michal Sojka 2024-09-15 11:06:29 +02:00
parent caae29d852
commit 190fcfcbb0

View file

@ -1,5 +1,5 @@
{ {
description = "A basic flake with a shell"; description = "Tool to convert ROS package.xml to Nix expressions compatible with nix-ros-overlay";
inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nix-ros-overlay.url = "github:lopsided98/nix-ros-overlay/master"; inputs.nix-ros-overlay.url = "github:lopsided98/nix-ros-overlay/master";
inputs.nixpkgs.follows = "nix-ros-overlay/nixpkgs"; inputs.nixpkgs.follows = "nix-ros-overlay/nixpkgs";
@ -62,9 +62,11 @@
nativeBuildInputs = with pkgs.python3Packages; [ nativeBuildInputs = with pkgs.python3Packages; [
setuptools setuptools
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = with pkgs; [
pkgs.superflore git
pkgs.nixfmt-rfc-style nix-prefetch-git
nixfmt-rfc-style
superflore
]; ];
makeWrapperArgs = [ makeWrapperArgs = [
"--set-default ROS_HOME ${rosdep-cache}" "--set-default ROS_HOME ${rosdep-cache}"
@ -75,11 +77,10 @@
{ {
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
inputsFrom = [ inputsFrom = [
ros2nix
]; ];
packages = [ packages = [
pkgs.bashInteractive pkgs.bashInteractive
pkgs.superflore
pkgs.python3Packages.rosdep
pkgs.python3Packages.flake8 pkgs.python3Packages.flake8
pkgs.python3Packages.flake8-bugbear pkgs.python3Packages.flake8-bugbear
]; ];