Open
Description
$ nix build --no-link --print-out-paths github:NixOS/nixpkgs/nixpkgs-unstable#nix
/nix/store/90s45p0f4wh1k3s4ka74czsnx7cb4030-nix-2.28.3-man
/nix/store/0g0h3gbbybal9l6nkyr9r8pz0hngkmda-nix-2.28.3
$ nix build --no-link --print-out-paths github:NixOS/nix/2.29.0#nix
/nix/store/1b25q1zkvls6cy2gjkig9j9qlsr1x1s2-nix-2.29.0-man
/nix/store/pyg8p4xy8m9fi9f6pjkbv7r49121mix9-nix-2.29.0
$ nix build --no-link --print-out-paths github:NixOS/nix/2.29.0#nix-cli
/nix/store/3qh0pcp0wvqc2gd5qzir4mlfcgwmdfyy-nix-2.29.0
So, consider the following (extremely simplified) flake.nix:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nix.url = "github:NixOS/nix/2.29.0";
};
outputs = { self, nixpkgs, nix }: {
inherit
(import nixpkgs {
overlays = [
# nix.overlays.default
];
})
nix;
};
}
With that:
$ nix build .#nix.man --impure --no-link --print-out-paths
/nix/store/90s45p0f4wh1k3s4ka74czsnx7cb4030-nix-2.28.3-man
but if I uncomment the overlay line:
$ nix build .#nix.man --impure --no-link --print-out-paths
error: flake 'path:/tmp/test' does not provide attribute 'packages.x86_64-linux.nix.man', 'legacyPackages.x86_64-linux.nix.man' or 'nix.man'
Add 👍 to issues you find important.