move dev shell to flake

This commit is contained in:
Tim Schubert 2022-08-15 18:52:51 +02:00
parent af679b644f
commit afb2ca459e
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 11 additions and 7 deletions

View file

@ -56,7 +56,17 @@ in
$link/activate
'');
};
devShell = pkgs.callPackage ./shell.nix { inherit agenix-bin; };
devShell = pkgs.callPackage
({}:
pkgs.mkShell {
buildInputs = [
agenix-bin
];
}
)
{ };
formatter = nixpkgs.legacyPackages."${system}".nixpkgs-fmt;
checks = {
format = pkgs.runCommand "check-format" { buildInputs = [ formatter ]; } "${formatter}/bin/nixpkgs-fmt --check ${./.} && touch $out";

View file

@ -1,6 +0,0 @@
{ agenix-bin, mkShell }:
mkShell {
buildInputs = [
agenix-bin
];
}