-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
37 lines (37 loc) · 1.12 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
{
description = "Nix flake for IPA2X project";
inputs.nixpkgs.url = "github:lopsided98/nixpkgs/nix-ros";
inputs.nix-ros = {
url = "github:lopsided98/nix-ros-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, nix-ros, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ nix-ros.overlays.default ];
};
fastdds = pkgs.callPackage ./nix/fastdds.nix {};
in {
devShells.ros =
pkgs.mkShell {
nativeBuildInputs = [ pkgs.fastddsgen ];
buildInputs = with pkgs.rosPackages.noetic; [
ros-core
];
};
packages = rec {
default = ipa2x-warning;
inherit fastdds;
ipa2x-warning = pkgs.stdenv.mkDerivation rec {
name = "ipa2x-warning";
src = ./warning_cpp;
nativeBuildInputs = [ pkgs.cmake ];
buildInputs = [ fastdds pkgs.argparse ];
};
};
}
);
}