mirror of
https://gitlab.com/rensa-nix/devshell.git
synced 2025-12-12 14:20:08 +01:00
19 lines
359 B
Nix
19 lines
359 B
Nix
{
|
|
pkgs,
|
|
lib ? pkgs.lib,
|
|
...
|
|
}: rec {
|
|
modules = ./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;
|
|
}
|