flake-compat icon indicating copy to clipboard operation
flake-compat copied to clipboard

Ability to use non-default `devShell`

Open sir4ur0n opened this issue 3 years ago • 2 comments

Current implementation hard-codes the use of devShell.${system} while other shells can be provided in flake.nix at devShell.${system}.<whatever>, e.g. devShell.${system}.foo.

It would be useful to provide means of accessing these other shells too.

sir4ur0n avatar Feb 07 '22 17:02 sir4ur0n

this could be solved generically the solution proposed here

adrian-gierakowski avatar Feb 18 '23 14:02 adrian-gierakowski

actually, you can actually do that with:

resultOfFlakeCompat.defaultNix.devShells.${system}.foo

you can accept any outputs of the flake this way, see here

adrian-gierakowski avatar Feb 18 '23 15:02 adrian-gierakowski