-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
40 lines (35 loc) · 1.33 KB
/
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
{
inputs = {
nixpkgs.follows = "aleph2-common/nixpkgs";
flake-utils.follows = "aleph2-common/flake-utils";
nix-ros-overlay.follows = "aleph2-common/nix-ros-overlay";
aleph2-common.url =
"git+https://gitlab.continuum.ii.uni.wroc.pl/continuum/software/aleph2_common";
};
outputs = { self, nixpkgs, flake-utils, nix-ros-overlay, aleph2-common }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = (import nixpkgs {
system = system;
overlays = [ nix-ros-overlay.overlays.default ];
}).pkgs;
ros = pkgs.rosPackages.rolling;
aleph2-common-packages = aleph2-common.packages.${system};
aleph2-description =
aleph2-common.packages.${system}.aleph2-description;
nanotec-driver = ros.callPackage (import ./nanotec_driver) { };
aleph2-bringup = ros.callPackage (import ./aleph2_bringup) {
inherit aleph2-description nanotec-driver;
};
devEnv = ros.buildEnv { paths = [ aleph2-bringup nanotec-driver ]; };
in {
packages = {
inherit aleph2-bringup nanotec-driver devEnv;
default = aleph2-bringup;
};
devShells.default = pkgs.mkShell {
nativeBuildInputs = [ aleph2-common-packages.devEnv devEnv ];
};
formatter = pkgs.nixfmt;
});
}