Change nix formatter (#206)

the files were formatted with alejandra. the nix community has set a standard for the format and release a new tool.

Reviewed-on: https://codeberg.org/ArkHost/HelixNotes/pulls/206
This commit is contained in:
lokthare
2026-07-06 15:53:20 +02:00
committed by ArkHost
parent 95515cac9d
commit a13d17ed81
+12 -6
View File
@@ -6,18 +6,22 @@
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = { outputs =
{
self, self,
nixpkgs, nixpkgs,
flake-utils, flake-utils,
}: }:
flake-utils.lib.eachDefaultSystem (system: let flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
cargoToml = builtins.fromTOML (builtins.readFile ./src-tauri/Cargo.toml); cargoToml = builtins.fromTOML (builtins.readFile ./src-tauri/Cargo.toml);
pname = cargoToml.package.name; pname = cargoToml.package.name;
version = cargoToml.package.version; version = cargoToml.package.version;
in { in
{
packages.default = pkgs.rustPlatform.buildRustPackage { packages.default = pkgs.rustPlatform.buildRustPackage {
inherit pname version; inherit pname version;
src = ./.; src = ./.;
@@ -44,7 +48,8 @@
wrapGAppsHook3 wrapGAppsHook3
]; ];
buildInputs = with pkgs; buildInputs =
with pkgs;
lib.optionals stdenv.hostPlatform.isLinux [ lib.optionals stdenv.hostPlatform.isLinux [
webkitgtk_4_1 webkitgtk_4_1
libayatana-appindicator libayatana-appindicator
@@ -71,6 +76,7 @@
}; };
}; };
formatter = pkgs.alejandra; formatter = pkgs.nixfmt;
}); }
);
} }