mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-26 16:03:38 +03:00
40 lines
939 B
Nix
40 lines
939 B
Nix
{
|
|
inputs = {
|
|
dream2nix.url = "github:nix-community/dream2nix";
|
|
nixpkgs.follows = "dream2nix/nixpkgs";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
src.url = "gitlab:ternaris/rosbags";
|
|
src.flake = false;
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
dream2nix,
|
|
flake-parts,
|
|
src,
|
|
...
|
|
}:
|
|
flake-parts.lib.mkFlake {inherit self;} {
|
|
systems = ["x86_64-linux"];
|
|
imports = [dream2nix.flakeModuleBeta];
|
|
|
|
perSystem = {
|
|
config,
|
|
system,
|
|
...
|
|
}: {
|
|
# define an input for dream2nix to generate outputs for
|
|
dream2nix.inputs."rosbags" = {
|
|
source = src;
|
|
projects.rosbags = {
|
|
name = "rosbags";
|
|
subsystem = "python";
|
|
translator = "pip-freeze";
|
|
subsystemInfo.system = system;
|
|
};
|
|
};
|
|
checks.package = config.dream2nix.outputs.rosbags.packages.default;
|
|
};
|
|
};
|
|
}
|