Skip to content

Conversation

dvn0
Copy link
Contributor

@dvn0 dvn0 commented Mar 15, 2024

Description of changes

This adds the keila newsletter server --written in elixir-- to nixpkgs.

It currently builds successfully on x86_64-linux but fails when running the keila executable with cat: /nix/store/5b33lyx90c12kpngaa882yw3kzr4bhm8-keila-0.14.0/releases/COOKIE: No such file or directory

I understand this likely means that the installation environment needs to be modified a bit, but I haven't looked into this.

We should also have a nixos module for this software.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@dvn0
Copy link
Contributor Author

dvn0 commented Mar 15, 2024

After some further research it's clear that the future service module is supposed to set the RELEASE_COOKIE environment variable. There are examples in the pleroma and mobilizon and akkoma services.

So as far as I can tell this package works and is done.

@dvn0 dvn0 changed the title WIP: keila: init at 0.14.0 keila: init at 0.14.0 Mar 15, 2024
@dvn0
Copy link
Contributor Author

dvn0 commented Mar 15, 2024

The nixos service module needs to have the following environment variables configurable:

RELEASE_COOKIE=
SECRET_KEY_BASE="${YOUR_SECRET_KEY}"
DB_URL="postgres://postgres:postgres@postgres/postgres"
URL_HOST="${YOUR_URL_HOST}"
MAILER_SMTP_HOST="${YOUR_MAILER_SMTP_HOST}"
MAILER_SMTP_USER:="${YOUR_MAILER_SMTP_USER}"
MAILER_SMTP_PASSWORD="${YOUR_MAILER_SMTP_PASSWORD}"

@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Mar 15, 2024
@dvn0 dvn0 marked this pull request as draft November 15, 2024 08:51
@dvn0 dvn0 changed the title keila: init at 0.14.0 keila: init at 0.15.1 Nov 15, 2024
@ofborg ofborg bot added the 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. label Nov 15, 2024
beamDeps = [];
};

mjml = buildMix rec {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently fails to build with

== Compilation error in file lib/mjml/native.ex ==
** (MatchError) no match of right hand side value: {:error, :enoent}
    (rustler_precompiled 0.7.2) lib/rustler_precompiled.ex:1013: RustlerPrecompiled.write_metadata/2
    (rustler_precompiled 0.7.2) lib/rustler_precompiled.ex:209: RustlerPrecompiled.__using__/2
    lib/mjml/native.ex:32: (module)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, I might just revert to the version before the introduction of this mjml/rustler stuff. I looked a bit into it, and rustler wants to network access, and maybe that's why it's failing.

@nixpkgs-ci nixpkgs-ci bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants