chore: fmt flake.nix

This commit is contained in:
2025-11-28 18:05:19 +08:00
parent 3604d88767
commit e46690cb21

View File

@@ -4,32 +4,39 @@
fenix.url = "github:nix-community/fenix"; fenix.url = "github:nix-community/fenix";
fenix.inputs.nixpkgs.follows = "nixpkgs"; fenix.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { nixpkgs, fenix, ... }: outputs =
{ nixpkgs, fenix, ... }:
let let
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed; forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
in in
{ {
devShells = forAllSystems (system: devShells = forAllSystems (
let pkgs = import nixpkgs { inherit system; config.allowUnfree = true; }; in system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in
{ {
default = default = pkgs.mkShell rec {
pkgs.mkShell rec { nativeBuildInputs = with pkgs; [
nativeBuildInputs = with pkgs; [ gcc
gcc openssl
openssl pkg-config
pkg-config (fenix.packages.${system}.stable.withComponents [
(fenix.packages.${system}.stable.withComponents [ "cargo"
"cargo" "clippy"
"clippy" "rust-src"
"rust-src" "rustc"
"rustc" "rustfmt"
"rustfmt" "rust-analyzer"
"rust-analyzer" ])
]) gemini-cli
]; ];
buildInputs = []; buildInputs = [ ];
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (nativeBuildInputs ++ buildInputs); LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (nativeBuildInputs ++ buildInputs);
}; };
} }
); );
}; };