diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2022-01-25 17:19:49 +0100 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2022-01-25 17:19:49 +0100 |
commit | e211c94b94f0327958dae20537f43551e3a1a653 (patch) | |
tree | a63f6a793dd72abc4b6e562589fc00be6aee63ce /nixos/tests/plausible.nix | |
parent | 6ea0d68c4da8a61f8ff41eb046a7c8f9c9b1c2fe (diff) | |
download | nixpkgs-e211c94b94f0327958dae20537f43551e3a1a653.tar nixpkgs-e211c94b94f0327958dae20537f43551e3a1a653.tar.gz nixpkgs-e211c94b94f0327958dae20537f43551e3a1a653.tar.bz2 nixpkgs-e211c94b94f0327958dae20537f43551e3a1a653.tar.lz nixpkgs-e211c94b94f0327958dae20537f43551e3a1a653.tar.xz nixpkgs-e211c94b94f0327958dae20537f43551e3a1a653.tar.zst nixpkgs-e211c94b94f0327958dae20537f43551e3a1a653.zip |
plausible: 1.4.0 -> 1.4.3
ChangeLog: https://github.com/plausible/analytics/blob/v1.4.3/CHANGELOG.md#unreleased Also makes the option `services.plausible.releaseCookiePath` mandatory[1]: since Elixir 1.13 the `RELEASE_COOKIE` env-var *must* be set, otherwise the startup fails[2]. Since we drop `$out/releases/COOKIE` in the `fixupPhase` of `mixRelease` and Elixir seems to always attempt to generate such a file[3], I figured it's reasonable to just make it mandatory now. Closes #155575 [1] https://nixos.org/manual/nixos/stable/options.html#opt-services.plausible.releaseCookiePath [2] https://github.com/elixir-lang/elixir/commit/f24eb2c1ef3cfb345e9420945c57f276148c0a89 / https://github.com/elixir-lang/elixir/issues/11114 [3] https://hexdocs.pm/mix/Mix.Tasks.Release.html, see `:cookie`
Diffstat (limited to 'nixos/tests/plausible.nix')
-rw-r--r-- | nixos/tests/plausible.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/tests/plausible.nix b/nixos/tests/plausible.nix index 45e11f0270e..58c1dd5cf4a 100644 --- a/nixos/tests/plausible.nix +++ b/nixos/tests/plausible.nix @@ -8,6 +8,9 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { virtualisation.memorySize = 4096; services.plausible = { enable = true; + releaseCookiePath = "${pkgs.runCommand "cookie" { } '' + ${pkgs.openssl}/bin/openssl rand -base64 64 >"$out" + ''}"; adminUser = { email = "admin@example.org"; passwordFile = "${pkgs.writeText "pwd" "foobar"}"; |