mirror of
https://gitlab.com/rensa-nix/devshell.git
synced 2026-02-02 07:15:09 +01:00
chore: initial commit
This commit is contained in:
commit
fbacfc149b
21 changed files with 748 additions and 0 deletions
19
lib/default.nix
Normal file
19
lib/default.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
pkgs,
|
||||
lib ? pkgs.lib,
|
||||
...
|
||||
}: rec {
|
||||
modules = import ./modules;
|
||||
eval = {config, ...}: let
|
||||
res = lib.evalModules {
|
||||
modules = [config modules];
|
||||
specialArgs = {
|
||||
inherit pkgs;
|
||||
};
|
||||
};
|
||||
in {
|
||||
inherit (res) config options;
|
||||
shell = res.config.shell.finalPackage;
|
||||
};
|
||||
mkShell = config: (eval {inherit config;}).shell;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue