flake-update-diff/shell.nix
ahuston-0 ef9050523d
Some checks failed
Check flake.lock / Check health of `flake.lock` (pull_request) Successful in 7s
Check Nix formatting / Perform Nix format checks (pull_request) Successful in 2m36s
Check Nix flake / Build nix outputs (ubuntu-latest) (pull_request) Failing after 2m38s
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (pull_request) Successful in 4m55s
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
];
};
}