-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
39 lines (36 loc) · 907 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
description = "zeros - Zig Environment for ROS 2";
inputs = {
nix-ros-overlay.url = "github:lopsided98/nix-ros-overlay";
nixpkgs.follows = "nix-ros-overlay/nixpkgs";
zig-overlay.url = "github:mitchellh/zig-overlay";
zls.url = "github:zigtools/zls";
};
outputs =
{
self,
nixpkgs,
nix-ros-overlay,
zig-overlay,
zls,
}:
{
forAllSystems = with nixpkgs.lib; genAttrs systems.flakeExposed;
devShells = self.forAllSystems (
system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [
nix-ros-overlay.overlays.default
zig-overlay.overlays.default
(self: super: { zls = zls.packages.${system}.zls; })
];
};
in
{
default = import ./shell.nix { inherit pkgs; };
}
);
};
}