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}); ] (system: function nixpkgs.legacyPackages.${system});
in in
rec { rec {
devShells.default = forAllSystems ( devShells = forAllSystems (pkgs: {
pkgs: default = 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;
@ -43,9 +42,12 @@
}; };
}); });
apps = rec { apps = forAllSystems (pkgs: rec {
default = hello; default = hello;
hello = builtins.mapAttrs (name: value: "${value.hello}/bin/hello") packages; hello = {
}; program = "${packages.${pkgs.system}.hello}/bin/hello";
type = "app";
};
});
}; };
} }