style(c): apply nixfmt-rfc-style to flake

This commit is contained in:
Sigmanificient 2024-05-06 23:46:22 +02:00
parent c1524d5bd9
commit a95b46a6a0

View file

@ -3,7 +3,8 @@
inputs.nixpkgs.url = "github:auxolotl/nixpkgs/nixos-unstable"; inputs.nixpkgs.url = "github:auxolotl/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }: outputs =
{ self, nixpkgs }:
let let
forAllSystems = forAllSystems =
function: function:
@ -16,12 +17,15 @@
"mipsel-linux" "mipsel-linux"
"powerpc64le-linux" "powerpc64le-linux"
] (system: function nixpkgs.legacyPackages.${system}); ] (system: function nixpkgs.legacyPackages.${system});
in rec { in
devShells.default = forAllSystems (pkgs: rec {
devShells.default = forAllSystems (
pkgs:
pkgs.mkShell { pkgs.mkShell {
hardeningDisable = [ "fortify" ]; hardeningDisable = [ "fortify" ];
inputsFrom = pkgs.lib.attrsets.attrValues packages; inputsFrom = pkgs.lib.attrsets.attrValues packages;
}); }
);
packages = forAllSystems (pkgs: rec { packages = forAllSystems (pkgs: rec {
default = hello; default = hello;
@ -41,8 +45,7 @@
apps = rec { apps = rec {
default = hello; default = hello;
hello = builtins.mapAttrs hello = builtins.mapAttrs (name: value: "${value.hello}/bin/hello") packages;
(name: value: "${value.hello}/bin/hello") packages;
}; };
}; };
} }