ahuston-0 ef9050523d
migrate to uv2nix
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2025-03-18 18:11:42 -04:00

45 lines
766 B
Nix

{
self,
pkgs,
checks,
system,
uv-shell,
...
}:
let
# construct the shell provided by pre-commit for running hooks
pre-commit = pkgs.mkShell {
inherit (checks.pre-commit-check) shellHook;
buildInputs = checks.pre-commit-check.enabledPackages;
};
# constructs a custom shell with commonly used utilities
rad-dev = pkgs.mkShell {
packages = with pkgs; [
deadnix
pre-commit
treefmt
statix
nixfmt-rfc-style
ruff
];
};
# constructs the application in-place
flupdt = pkgs.mkShell { inputsFrom = [ self.packages.${system}.flupdt ]; };
in
{
default = pkgs.mkShell {
inputsFrom = [
pre-commit
rad-dev
flupdt
#uv-shell.impure
uv-shell.uv2nix
];
};
}