Skip to content

Conversation

yajo
Copy link
Contributor

@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
Copy link
Contributor Author

yajo commented Jun 9, 2025

Sorry, I just noticed lib cannot be used for this because it has no arch, and that legacyPackages already exposes what I need.

@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