Commit graph

17 commits

Author SHA1 Message Date
Bernd Müller
4072d6ed51 [add] example shell for turtlebot4 with gz-ros and nav2
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
2025-04-27 19:28:07 -04:00
Michal Sojka
a9202c4284 flake.nix: Remove checks for now
The checks output is useful for flake-based CI tools such as hydra,
hercules-ci, buildbot-nix and others. However, having it in the flake
in the current state brings several problems:

1. checks should be a flat attrset, while our release.nix provides a
   recursive attrset. Recursive attrset is fine for Hydra, but plain
   `nix flake check` complains. We can flatten the attrset, but this
   is not sufficient because of 2. Alternatively, if we want just
   hydra compatibility we can rename checks to hydraJobs, but problem
   2 will still persist.

2. We have several packages, which fail to evaluate. Either because of
   missing callPackages arguments or because of them being insecure.
   This breaks even basic things like `nix flake show`.
2024-11-20 20:13:44 -05:00
Michal Sojka
b23f83fb17 flake.nix: Add aach64-linux to checks 2024-11-20 20:13:44 -05:00
Michal Sojka
ce30af70c7 flake.nix: Add "checks" flake output based on release.nix
To make "nix flake check" and similar tools work, we need to allow
setting the system attribute in release.nix explicitly. Without this,
flake jobs in Hydra complain about:

    error: attribute 'currentSystem' missing' in restricted evaluation mode.
2024-11-20 20:13:44 -05:00
Ben Wolsieffer
2c5bb60569 Add GitHub action dev shell to flake 2024-11-17 12:25:57 -05:00
Michal Sojka
a9a387b495 Add flake template
With this change, one can initialize a ROS project by running:

    nix flake init --template github:lopsided98/nix-ros-overlay

Besides adding the template, this commit also updates the README to
list the same template as the one from the flake. The listing in the
README can be easily updated to match the flake.nix file by running
the "mdsh" tool.
2024-11-03 18:18:16 -05:00
Ben Wolsieffer
a3f78410d1 Rename ros2-gz example
Remove example from the name to match the others.
2024-10-15 21:46:43 -04:00
Bernd Müller
31c1e5f7df [add] example-ros2-gz shell 2024-10-13 16:32:24 -04:00
Michal Sojka
3ed0f25726 Reduce the number of systems offered by the flake
This gets rid of evaluation error for armv7a-darwin. It makes no sense
to support this platform in this overlay. According to the discussion
around around
https://github.com/NixOS/nixpkgs/pull/324155#issuecomment-2362297603,
it is better to support just the systems exposed by the nixpkgs flake.

Currently, these are:
- aarch64-darwin
- aarch64-linux
- armv6l-linux
- armv7l-linux
- i686-linux
- powerpc64le-linux
- riscv64-linux
- x86_64-darwin
- x86_64-freebsd
- 86_64-linux
2024-09-19 19:24:28 -04:00
Jeremy Kolb
461db9a822 Do not use import for the default module
see: https://fzakaria.com/2024/07/29/import-but-don-t-import-your-nixos-modules.html
see: https://github.com/nix-community/nixd/issues/556
2024-08-07 08:01:10 -04:00
Michal Sojka
048d9ef7ed Add an example with Flakes 2023-04-08 14:01:19 -04:00
Michal Sojka
af531ba974 Configure the Cachix binary cache in flake.nix
With this, Flake users will be automatically asked whether they want
to use the binary cache and its key. If they answer yes, the cache
will be automatically used without any needed configuration.

Additionally, the users will be asked whether they want to mark this
settings as permanent. In that case the cache will be used
automatically in the future without any interaction.

This means that when anybody runs a command like this:

    nix shell github:lopsided98/nix-ros-overlay#humble.rviz2

they will automatically get the packages from the binary cache.
2023-04-08 14:01:19 -04:00
Ben Wolsieffer
055101b832 flake: add back overlay and nixosModule, with warning
I'd rather not just break things for no real reason, no matter when 'nix flake
check' says.
2022-07-21 19:28:26 -04:00
Jeremy Kolb
6bf6d29a4e Migrate to new flake names 2022-07-17 11:57:40 -04:00
Ben Wolsieffer
97bd4c9cd8 flake: use legacyPackages
Nested package sets are not allowed in the "packages" attribute, so use
legacyPackages instead.
2021-06-28 12:45:18 -04:00
Ben Wolsieffer
37073ae710 flake: add nixosModule 2020-09-22 14:09:50 -04:00
Ben Wolsieffer
28c1c1a7b1 Add basic Nix flake. 2020-09-21 20:53:46 -04:00