style(c): apply nixfmt-rfc-style to flake
This commit is contained in:
parent
c1524d5bd9
commit
a95b46a6a0
15
c/flake.nix
15
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue