nixlets/flake.nix

46 lines
983 B
Nix
Raw Permalink Normal View History

2024-03-06 10:23:25 +00:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
ren.url = "gitlab:rensa-nix/core?dir=lib";
2024-03-06 10:23:25 +00:00
kubenix = {
2024-03-20 15:48:21 +01:00
url = "github:TECHNOFAB11/kubenix";
2024-03-06 10:23:25 +00:00
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
ren,
...
} @ inputs:
ren.buildWith
{
inherit inputs;
cellsFrom = ./nix;
transformInputs = system: i:
i
// {
pkgs = import i.nixpkgs {inherit system;};
};
cellBlocks = with ren.blocks; [
(simple "devShells")
(simple "ci")
(simple "docs")
(simple "soonix")
(simple "apps")
(simple "nixlets")
(simple "tests")
];
}
{
packages = ren.select self [
["repo" "ci" "packages"]
["repo" "docs"]
["repo" "soonix" "packages"]
["repo" "tests"]
];
apps = ren.select self ["repo" "apps"];
nixlets = ren.get self ["repo" "nixlets"];
};
2024-03-06 10:23:25 +00:00
}