From a95b46a6a0fb4ac672b70b5431b3679069ad1839 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 6 May 2024 23:46:22 +0200 Subject: [PATCH] style(c): apply nixfmt-rfc-style to flake --- c/flake.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/c/flake.nix b/c/flake.nix index 0392f3a..2188e03 100644 --- a/c/flake.nix +++ b/c/flake.nix @@ -3,7 +3,8 @@ inputs.nixpkgs.url = "github:auxolotl/nixpkgs/nixos-unstable"; - outputs = { self, nixpkgs }: + outputs = + { self, nixpkgs }: let forAllSystems = function: @@ -16,12 +17,15 @@ "mipsel-linux" "powerpc64le-linux" ] (system: function nixpkgs.legacyPackages.${system}); - in rec { - devShells.default = forAllSystems (pkgs: + in + rec { + devShells.default = forAllSystems ( + pkgs: pkgs.mkShell { hardeningDisable = [ "fortify" ]; inputsFrom = pkgs.lib.attrsets.attrValues packages; - }); + } + ); packages = forAllSystems (pkgs: rec { default = hello; @@ -41,8 +45,7 @@ apps = rec { default = hello; - hello = builtins.mapAttrs - (name: value: "${value.hello}/bin/hello") packages; + hello = builtins.mapAttrs (name: value: "${value.hello}/bin/hello") packages; }; }; }