mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-29 17:33:46 +03:00
41 lines
991 B
Nix
41 lines
991 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;
|
|
subsystemInfo.pythonVersion = "3.10";
|
|
};
|
|
};
|
|
# checks.package = config.dream2nix.outputs.rosbags.packages.default;
|
|
};
|
|
};
|
|
}
|