add hydra, update ruff, format files

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-07-15 19:42:22 -04:00
parent 1736643635
commit 03e9a3652f
9 changed files with 242 additions and 63 deletions

View File

@ -6,44 +6,40 @@
...
}:
let
inherit (inputs) nixpkgs;
pkgs = nixpkgs.legacyPackages.${system};
let
inherit (inputs) nixpkgs;
pkgs = nixpkgs.legacyPackages.${system};
# 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;
};
# 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
];
};
# constructs a custom shell with commonly used utilities
rad-dev = pkgs.mkShell {
packages = with pkgs; [
deadnix
pre-commit
treefmt
statix
nixfmt-rfc-style
];
};
# constructs the application in-place
app = pkgs.mkShell{
inputsFrom = [self.packages.${system}.myapp];
};
# constructs the application in-place
app = pkgs.mkShell { inputsFrom = [ self.packages.${system}.myapp ]; };
# pull in python/poetry dependencies
poetry = pkgs.mkShell {
pacakges = [pkgs.poetry];
};
in
{
default = pkgs.mkShell {
inputsFrom = [
pre-commit
rad-dev
app
poetry
];
};
}
# pull in python/poetry dependencies
poetry = pkgs.mkShell { packages = [ pkgs.poetry ]; };
in
{
default = pkgs.mkShell {
inputsFrom = [
pre-commit
rad-dev
app
poetry
];
};
}