refactor outputs.nix

Splits everything into separate files.
This commit is contained in:
Tim Schubert 2022-08-15 19:33:27 +02:00
parent afb2ca459e
commit 5b97801911
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
7 changed files with 83 additions and 73 deletions

9
checks.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs, formatter }:
{
format = pkgs.runCommand
"check-format"
{
buildInputs = [ formatter ];
}
"${formatter}/bin/nixpkgs-fmt --check ${./.} && touch $out";
}