add formatter

This commit is contained in:
esy 2024-08-26 20:02:59 +01:00
parent d6e84f3e07
commit 6e45b2a86b
No known key found for this signature in database

View file

@ -6,11 +6,17 @@
alejandra.url = "github:kamadorueda/alejandra/3.0.0"; alejandra.url = "github:kamadorueda/alejandra/3.0.0";
}; };
outputs = { self, nixpkgs, utils, alejandra}: utils.lib.eachDefaultSystem (system: outputs = {
let self,
nixpkgs,
utils,
alejandra,
}:
utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages."${system}"; pkgs = nixpkgs.legacyPackages."${system}";
in { in {
packages.formatter = alejandra.defaultPackage.${system}; formatter = alejandra.defaultPackage.${system};
defaultPackage = pkgs.stdenv.mkDerivation { defaultPackage = pkgs.stdenv.mkDerivation {
name = "skynet-wiki"; name = "skynet-wiki";
src = self; src = self;