feat: lurching towards relative usability

This commit is contained in:
Kat Inskip 2023-01-16 17:31:04 -05:00
parent a0fb7eb402
commit 961ec369ba
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
51 changed files with 1349 additions and 407 deletions

9
shells/nix.nix Normal file
View file

@ -0,0 +1,9 @@
{pkgs, ...}:
with pkgs;
mkShell {
nativeBuildInputs = [
deadnix # dead-code scanner
alejandra # code formatter
statix # anti-pattern finder
];
}

15
shells/repo.nix Normal file
View file

@ -0,0 +1,15 @@
{pkgs, inputs, system, ...}: with pkgs; let
repo = import ../outputs.nix (inputs // { inherit inputs system; });
inherit (lib.attrsets) mapAttrsToList;
in
mkShell {
nativeBuildInputs = [
deadnix # dead-code scanner
alejandra # code formatter
statix # anti-pattern finder
] ++ mapAttrsToList (name: _:
(pkgs.writeShellScriptBin "${name}-rebuild" ''
darwin-rebuild switch --flake ${toString ../.}#${name}
''))
repo.darwinConfigurations;
}

12
shells/rust.nix Normal file
View file

@ -0,0 +1,12 @@
{pkgs, ...}:
with pkgs;
mkShell {
nativeBuildInputs = [
cargo
rustc
rustfmt
rustPackages.clippy
rust-analyzer
];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
}