From 61fe6b10d9521b4392c4fdd257d12c04edbff65c Mon Sep 17 00:00:00 2001 From: Jairo Llopis <973709+yajo@users.noreply.github.com> Date: Mon, 9 Jun 2025 17:19:39 +0200 Subject: [PATCH] feat: expose `lib` to allow easy composition With this change, we can now use devshell like this: ```nix { inputs = { devshell = { url = "github:numtide/devshell"; inputs.nixpkgs.follows = "nixpkgs"; }; nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; }; outputs = {devshell, ...}: { devShells.x86_64-linux.default = devshell.lib.mkShell {}; }; } ``` This makes it comfortable to use without flake parts. For instance, when composing with Blueprint it makes it easier to use a `devshell.nix` file without having to use overlays. --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 7baec94f..ddc35632 100644 --- a/flake.nix +++ b/flake.nix @@ -108,7 +108,7 @@ default = toml; }; - lib.importTOML = import ./nix/importTOML.nix; + lib = devshell; flakeModule = ./flake-module.nix; };