switch to alejandra for nix formatting

This commit is contained in:
Robin Appelman 2024-12-23 22:55:24 +01:00
commit 576d0418c8
8 changed files with 500 additions and 386 deletions

View file

@ -1,7 +1,6 @@
# mill-scale -- Another rust module for flakelight
# Copyright (C) 2024 Robin Appelman <robin@icewind.nl>
# SPDX-License-Identifier: MIT
{
description = "Another rust module for flakelite";
inputs = {
@ -12,12 +11,22 @@
inputs.nixpkgs.follows = "flakelight/nixpkgs";
};
};
outputs = { flakelight, crane, rust-overlay, ... }: flakelight ./. {
imports = [ flakelight.flakelightModules.flakelightModule ];
flakelightModule = { lib, ... }: {
imports = [ ./mill-scale.nix ];
inputs.crane = lib.mkDefault crane;
inputs.rust-overlay = lib.mkDefault rust-overlay;
outputs = {
flakelight,
crane,
rust-overlay,
...
}:
flakelight ./. {
imports = [flakelight.flakelightModules.flakelightModule];
formatters = pkgs:
with pkgs; {
"*.nix" = pkgs.lib.getExe alejandra;
};
flakelightModule = {lib, ...}: {
imports = [./mill-scale.nix];
inputs.crane = lib.mkDefault crane;
inputs.rust-overlay = lib.mkDefault rust-overlay;
};
};
};
}