fix(c): fix flake output (devshell, apps)

This commit is contained in:
Sigmanificient 2024-05-06 23:53:12 +02:00
parent a95b46a6a0
commit e2607d77cc

View file

@ -19,13 +19,12 @@
] (system: function nixpkgs.legacyPackages.${system});
in
rec {
devShells.default = forAllSystems (
pkgs:
pkgs.mkShell {
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
hardeningDisable = [ "fortify" ];
inputsFrom = pkgs.lib.attrsets.attrValues packages;
}
);
};
});
packages = forAllSystems (pkgs: rec {
default = hello;
@ -43,9 +42,12 @@
};
});
apps = rec {
apps = forAllSystems (pkgs: rec {
default = hello;
hello = builtins.mapAttrs (name: value: "${value.hello}/bin/hello") packages;
hello = {
program = "${packages.${pkgs.system}.hello}/bin/hello";
type = "app";
};
});
};
}