added workspace devshell

This commit is contained in:
waalge 2023-02-08 11:22:29 +00:00 committed by Lucas
parent 98cd51db7c
commit 5d984d7ee4
1 changed files with 24 additions and 10 deletions

View File

@ -12,9 +12,15 @@
devshell.url = "github:numtide/devshell";
};
outputs = { self, cargo2nix, nixpkgs, flake-utils, devshell }:
flake-utils.lib.eachDefaultSystem (system:
let
outputs = {
self,
cargo2nix,
nixpkgs,
flake-utils,
devshell,
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {
inherit system;
overlays = [cargo2nix.overlays.default devshell.overlay];
@ -39,7 +45,6 @@
package = packages.aiken;
}
];
in rec {
inherit packages;
devShell = pkgs.devshell.mkShell {
@ -48,7 +53,16 @@
$(type -p menu &>/dev/null && menu)'';
commands = aikenCmds;
};
devShells.aiken = devShell;
devShells = {
aiken = devShell;
ws = rustPkgs.workspaceShell {
packages = with pkgs; [
# nix
rnix-lsp
alejandra
];
};
};
}
);
}