group packages in attrset literal

This will make generating packages for cross possible.
This commit is contained in:
Charles Hall 2024-01-22 23:07:30 -08:00
parent 67d280dd2e
commit d29591d47d
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -71,25 +71,27 @@
};
in
{
packages.default = package pkgsHost;
packages = {
default = package pkgsHost;
packages.oci-image =
let
package = self.packages.${system}.default;
in
pkgsHost.dockerTools.buildImage {
name = package.pname;
tag = "latest";
config = {
# Use the `tini` init system so that signals (e.g. ctrl+c/SIGINT) are
# handled as expected
Entrypoint = [
"${pkgsHost.lib.getExe' pkgsHost.tini "tini"}"
"--"
];
Cmd = [
"${pkgsHost.lib.getExe package}"
];
oci-image =
let
package = self.packages.${system}.default;
in
pkgsHost.dockerTools.buildImage {
name = package.pname;
tag = "latest";
config = {
# Use the `tini` init system so that signals (e.g. ctrl+c/SIGINT)
# are handled as expected
Entrypoint = [
"${pkgsHost.lib.getExe' pkgsHost.tini "tini"}"
"--"
];
Cmd = [
"${pkgsHost.lib.getExe package}"
];
};
};
};