Skip to content

feat: expose lib to allow easy composition#2

Closed
yajo wants to merge 1 commit into
masterfrom
expose-it
Closed

feat: expose lib to allow easy composition#2
yajo wants to merge 1 commit into
masterfrom
expose-it

Conversation

@yajo
Copy link
Copy Markdown
Member

@yajo yajo commented Jun 9, 2025

With this change, we can now use devshell like this:

{
  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.

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.
@yajo yajo closed this Jun 9, 2025
@yajo yajo deleted the expose-it branch June 9, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant