mirror of
https://gitlab.com/rensa-nix/devshell.git
synced 2026-02-02 15:25:08 +01:00
chore: update rensa and use improved input handling
This commit is contained in:
parent
fbacfc149b
commit
e76bef387e
7 changed files with 70 additions and 33 deletions
20
flake.nix
20
flake.nix
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
ren.url = "gitlab:rensa-nix/core?dir=lib";
|
||||
std = {
|
||||
url = "github:divnix/std";
|
||||
inputs = {
|
||||
|
|
@ -15,20 +16,25 @@
|
|||
|
||||
outputs = {
|
||||
self,
|
||||
std,
|
||||
ren,
|
||||
...
|
||||
} @ inputs:
|
||||
std.growOn
|
||||
ren.buildWith
|
||||
{
|
||||
inherit inputs;
|
||||
cellsFrom = ./.nix;
|
||||
cellBlocks = with std.blockTypes; [
|
||||
(devshells "devShells")
|
||||
(pkgs "tests")
|
||||
(runnables "benchmark")
|
||||
transformInputs = system: i:
|
||||
i
|
||||
// {
|
||||
pkgs = import i.nixpkgs {inherit system;};
|
||||
};
|
||||
cellBlocks = with ren.blocks; [
|
||||
(simple "devShells")
|
||||
(simple "tests")
|
||||
(simple "benchmark")
|
||||
];
|
||||
}
|
||||
{
|
||||
packages = std.harvest self [["repo" "tests"] ["repo" "benchmark"]];
|
||||
packages = ren.select self [["repo" "tests"] ["repo" "benchmark"]];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue