mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-25 15:33:20 +03:00
40 lines
961 B
Nix
40 lines
961 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 = {
|
|
subsystem = "python";
|
|
translator = "pip-freeze";
|
|
subsystemInfo.system = system;
|
|
subsystemInfo.pythonVersion = "3.10";
|
|
};
|
|
};
|
|
# checks.package = config.dream2nix.outputs.rosbags.packages.default;
|
|
};
|
|
};
|
|
}
|