mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-16 11:21:05 +01:00
group packages in attrset literal
This will make generating packages for cross possible.
This commit is contained in:
parent
67d280dd2e
commit
d29591d47d
1 changed files with 20 additions and 18 deletions
38
flake.nix
38
flake.nix
|
@ -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}"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue