2026-01-30 01:04:33 +01:00
|
|
|
{
|
|
|
|
|
inputs,
|
2024-04-21 15:28:35 -07:00
|
|
|
|
2026-01-30 01:04:33 +01:00
|
|
|
# Dependencies
|
|
|
|
|
dockerTools,
|
|
|
|
|
lib,
|
|
|
|
|
main,
|
|
|
|
|
stdenv,
|
|
|
|
|
tini,
|
2024-04-21 15:28:35 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
dockerTools.buildLayeredImage {
|
|
|
|
|
name = main.pname;
|
|
|
|
|
tag = "main";
|
|
|
|
|
created = "@${toString inputs.self.lastModified}";
|
|
|
|
|
contents = [
|
|
|
|
|
dockerTools.caCertificates
|
2024-11-30 14:18:46 -05:00
|
|
|
main
|
2024-04-21 15:28:35 -07:00
|
|
|
];
|
|
|
|
|
config = {
|
2026-01-30 01:04:33 +01:00
|
|
|
Entrypoint =
|
|
|
|
|
if
|
|
|
|
|
!stdenv.hostPlatform.isDarwin
|
2024-04-21 15:28:35 -07:00
|
|
|
# Use the `tini` init system so that signals (e.g. ctrl+c/SIGINT)
|
|
|
|
|
# are handled as expected
|
2026-01-30 01:04:33 +01:00
|
|
|
then
|
|
|
|
|
[
|
|
|
|
|
"${lib.getExe' tini "tini"}"
|
|
|
|
|
"--"
|
|
|
|
|
]
|
|
|
|
|
else
|
|
|
|
|
[ ];
|
2024-04-21 15:28:35 -07:00
|
|
|
Cmd = [
|
|
|
|
|
"${lib.getExe main}"
|
|
|
|
|
];
|
2024-11-02 13:12:14 -04:00
|
|
|
Env = [
|
|
|
|
|
"RUST_BACKTRACE=full"
|
|
|
|
|
];
|
2025-01-26 01:05:41 +00:00
|
|
|
Labels = {
|
2026-01-30 01:04:33 +01:00
|
|
|
"org.opencontainers.image.authors" =
|
|
|
|
|
"June Clementine Strawberry <june@girlboss.ceo> and Jason Volk
|
2025-01-25 22:42:16 -05:00
|
|
|
<jason@zemos.net>";
|
2026-01-30 01:04:33 +01:00
|
|
|
"org.opencontainers.image.created" = "@${toString inputs.self.lastModified}";
|
2025-01-25 22:42:16 -05:00
|
|
|
"org.opencontainers.image.description" = "a very cool Matrix chat homeserver written in Rust";
|
|
|
|
|
"org.opencontainers.image.documentation" = "https://conduwuit.puppyirl.gay/";
|
|
|
|
|
"org.opencontainers.image.licenses" = "Apache-2.0";
|
|
|
|
|
"org.opencontainers.image.revision" = inputs.self.rev or inputs.self.dirtyRev or "";
|
2025-02-07 11:49:00 -05:00
|
|
|
"org.opencontainers.image.source" = "https://github.com/girlbossceo/conduwuit";
|
2025-01-26 01:05:41 +00:00
|
|
|
"org.opencontainers.image.title" = main.pname;
|
2025-01-25 22:42:16 -05:00
|
|
|
"org.opencontainers.image.url" = "https://conduwuit.puppyirl.gay/";
|
|
|
|
|
"org.opencontainers.image.vendor" = "girlbossceo";
|
2025-01-26 01:05:41 +00:00
|
|
|
"org.opencontainers.image.version" = main.version;
|
|
|
|
|
};
|
2024-04-21 15:28:35 -07:00
|
|
|
};
|
|
|
|
|
}
|