From 8307797859545d67b95b5f3c1e526924c49cbecd Mon Sep 17 00:00:00 2001 From: vini Date: Thu, 19 Sep 2024 02:42:29 -0300 Subject: [PATCH] Toolchain/nix: Format nix files The nixfmt-rfc-style package was used. --- Ladybird/default.nix | 5 ++++- Toolchain/default.nix | 5 ++++- flake.nix | 22 ++++++++++++++++------ 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/Ladybird/default.nix b/Ladybird/default.nix index 9d61d091ea2..7168379a3d2 100644 --- a/Ladybird/default.nix +++ b/Ladybird/default.nix @@ -1,4 +1,7 @@ -{ pkgs ? import { } }: with pkgs; +{ + pkgs ? import { }, +}: +with pkgs; mkShell.override { stdenv = gcc13Stdenv; } { packages = [ diff --git a/Toolchain/default.nix b/Toolchain/default.nix index 77e850f566b..fd7e4e895d2 100644 --- a/Toolchain/default.nix +++ b/Toolchain/default.nix @@ -1,4 +1,7 @@ -{ pkgs ? import { } }: with pkgs; +{ + pkgs ? import { }, +}: +with pkgs; mkShell.override { stdenv = gcc13Stdenv; } { packages = [ diff --git a/flake.nix b/flake.nix index 945d8b494b3..b00260e258c 100644 --- a/flake.nix +++ b/flake.nix @@ -6,10 +6,20 @@ utils.url = "github:numtide/flake-utils"; }; - outputs = { self, nixpkgs, utils, }: utils.lib.eachDefaultSystem (system: let - pkgs = import nixpkgs { inherit system; }; - in { - devShells.default = import ./Toolchain { inherit pkgs; }; - devShells.ladybird = import ./Ladybird { inherit pkgs; }; - }); + outputs = + { + self, + nixpkgs, + utils, + }: + utils.lib.eachDefaultSystem ( + system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + devShells.default = import ./Toolchain { inherit pkgs; }; + devShells.ladybird = import ./Ladybird { inherit pkgs; }; + } + ); }