nix: move dev outputs to subflake

This commit is contained in:
seth 2024-04-10 01:03:45 -04:00
parent 3503dda44d
commit 921540e249
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
18 changed files with 461 additions and 331 deletions

36
nix/dev/shell.nix Normal file
View file

@ -0,0 +1,36 @@
{
perSystem = {
pkgs,
config,
self',
refraction',
...
}: {
devShells.default = pkgs.mkShell {
shellHook = ''
${config.pre-commit.installationScript}
'';
packages = with pkgs; [
# general
actionlint
nodePackages.prettier
config.procfiles.daemons.package
# rust
clippy
rustfmt
rust-analyzer
# nix
self'.formatter
deadnix
nil
statix
];
inputsFrom = [refraction'.packages.refraction];
RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
};
};
}