fix(c): fix flake output (devshell, apps)
This commit is contained in:
parent
a95b46a6a0
commit
e2607d77cc
16
c/flake.nix
16
c/flake.nix
|
@ -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";
|
||||||
};
|
};
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue