1
0
Fork 0
forked from auxolotl/templates

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";
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;
};
};
}