From e46690cb21a372b00464c55968d215e01a9b4327 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Fri, 28 Nov 2025 18:05:19 +0800 Subject: [PATCH] chore: fmt flake.nix --- flake.nix | 49 ++++++++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/flake.nix b/flake.nix index cd84958..44cdb0c 100644 --- a/flake.nix +++ b/flake.nix @@ -4,32 +4,39 @@ fenix.url = "github:nix-community/fenix"; fenix.inputs.nixpkgs.follows = "nixpkgs"; }; - outputs = { nixpkgs, fenix, ... }: + outputs = + { nixpkgs, fenix, ... }: let forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed; in { - devShells = forAllSystems (system: - let pkgs = import nixpkgs { inherit system; config.allowUnfree = true; }; in + devShells = forAllSystems ( + system: + let + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + }; + in { - default = - pkgs.mkShell rec { - nativeBuildInputs = with pkgs; [ - gcc - openssl - pkg-config - (fenix.packages.${system}.stable.withComponents [ - "cargo" - "clippy" - "rust-src" - "rustc" - "rustfmt" - "rust-analyzer" - ]) - ]; - buildInputs = []; - LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (nativeBuildInputs ++ buildInputs); - }; + default = pkgs.mkShell rec { + nativeBuildInputs = with pkgs; [ + gcc + openssl + pkg-config + (fenix.packages.${system}.stable.withComponents [ + "cargo" + "clippy" + "rust-src" + "rustc" + "rustfmt" + "rust-analyzer" + ]) + gemini-cli + ]; + buildInputs = [ ]; + LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (nativeBuildInputs ++ buildInputs); + }; } ); };