Remove broken way of thinking about devshells

Need a better way of providing good defaults
This commit is contained in:
Kaare Hoff Skovgaard 2025-07-06 22:48:04 +02:00
parent b3ddb341d8
commit 05c74cc4e6
Signed by: khs
GPG key ID: C7D890804F01E9F0

View file

@ -50,14 +50,12 @@
"aarch64-linux" "aarch64-linux"
"aarch64-darwin" "aarch64-darwin"
], ],
devShellPackages ? (pkgs: [ ]),
treeFmtFile ? ./treefmt.nix, treeFmtFile ? ./treefmt.nix,
... ...
}: }:
let let
snowfallOptions = builtins.removeAttrs options [ snowfallOptions = builtins.removeAttrs options [
"flakeBaseSystems" "flakeBaseSystems"
"devShellPackages"
"treeFmtFile" "treeFmtFile"
]; ];
flake = snowfall-lib.mkFlake snowfallOptions; flake = snowfall-lib.mkFlake snowfallOptions;
@ -74,15 +72,6 @@
checks = flake.checks.${system} // { checks = flake.checks.${system} // {
fmt = treeFmtEval.config.build.check self; fmt = treeFmtEval.config.build.check self;
}; };
devShells = flake.devShells.${system} // {
default =
flake.devShells.${system}.default or (pkgs.mkShell {
packages = [
pkgs.nixfmt-rfc-style
pkgs.nixd
] ++ (devShellPackages pkgs);
});
};
} }
)); ));
}; };