numtide / devshell

Per project developer environments
https://numtide.github.io/devshell/
MIT License
1.22k stars 87 forks source link

feat: add a flake module for use via flake.parts #250

Closed brianmcgee closed 1 year ago

brianmcgee commented 1 year ago

Based on the suggestion from @terlar

Closes #238

Allows users to use devshell within a flake.parts based flake like so:

{inputs, ...}: {
    imports = [
        inputs.devshell.flakeModule
    ]; 

    perSystem = {
        devshell.shells.default = {
            env = [ ];
            commands = [ ];
            packages = [ ];
        };

        devshell.shells.projectA = {
            env = [ ];
            commands = [ ];
            packages = [ ];
        };

        devshell.shells.projectB = {
            env = [ ];
            commands = [ ];
            packages = [ ];
        };
    };
}
brianmcgee commented 1 year ago

bors merge

bors[bot] commented 1 year ago

Build succeeded:

roberth commented 1 year ago

Rendered docs: https://flake.parts/options/devshell.html