Commit graph

20 commits

Author SHA1 Message Date
Kerstin 872987d040
beam/mixRelease: default stripDebug to false due frequent runtime errors (#232107)
This flag appears to cause issues in 3 out 4 users of mixRelease in
Nixpkgs, plus Mobilizon, which isn't merged yet. It might be safer to
set it to fals for now, as the runtime error messages produced by it are
quite cryptic.
2023-05-16 10:50:34 +02:00
Kirill Radzikhovskyy a14e2b4b16 plausible: unbreak with latest nodejs 2023-05-14 09:05:21 -04:00
happysalada 164edb8468 plausible: mark broken following node-16 deprecation 2023-05-08 17:45:55 -04:00
Kirill Radzikhovskyy d7ad5580d7 plausible: older npm fixup, darwin build, strip causes cachex to fail 2023-04-10 20:26:25 +10:00
Maximilian Bosch e62c913822
treewide: remove ma27 from a bunch of packages (again)
Some of the stuff used to be needed for a project, for others I found
alternatives that suited better my needs. Anyways, I don't intend to
spend time maintaining these, so no need to keep that.
2023-03-03 21:25:26 +01:00
James Walker 15d15d6a80
plausible: fix webpack with openssl 3 2022-09-27 21:12:22 -04:00
Maximilian Bosch 376934f4b7
plausible: 1.4.3 -> 1.4.4 (#157335)
ChangeLog: https://github.com/plausible/analytics/releases/tag/v1.4.4
2022-01-30 13:10:45 +09:00
Maximilian Bosch e211c94b94
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] f24eb2c1ef /
    https://github.com/elixir-lang/elixir/issues/11114
[3] https://hexdocs.pm/mix/Mix.Tasks.Release.html, see `:cookie`
2022-01-25 17:19:49 +01:00
happysalada 7857183c0b plausible: update update.sh script
plausible: fix yarn.nix call
2021-11-06 09:21:23 -04:00
happysalada 3886aa3535 plausible: 1.3.0 -> 1.4.0 2021-11-06 09:11:31 -04:00
Robert Hensing a201246bac treewide: runCommandNoCC -> runCommand in generated code
This has been synonymous for ~5y.

Note that many of these runCommand bindings are unused, but that's
ok for generated code.
2021-08-15 17:36:41 +02:00
Felix Buehler a56d117bdb servers: replace name with pname&version 2021-07-26 20:15:46 +02:00
Niklas Hambüchen 6de23b983d nixos/plausible: Fix nixpkgs-introduced ecto_sql incompatibility.
Fixes runtime error during `migrate.sh`:

    ** (UndefinedFunctionError) function ClickhouseEcto.lock_for_migrations/3 is undefined or private

The function `lock_for_migrations` indeed does not exist in the `ClickhouseEcto`
module packaged so far.

Reason:

So far we use the patch `ecto_sql-fix.patch` doing

    -      {:ecto_sql, "~> 3.0"},
    +      {:ecto_sql, "~> 3.6"},

@scvalex found that the commit that makes the `plausible/clickhouse_ecto` fork
compatible with 3.6 is _newer_ than the commit pinned in the `.lock` file,
namely  `1969f14ecef - Update for ecto 3.6.1`:

    https://github.com/plausible/clickhouse_ecto/commit/1969f14ecef

That commit introduces the function that my error shows (`def lock_for_migrations`).

This means that the version that's in the lockfile (and pulled) was
incompatible with the version the nixpkgs patch forces.

This commit fixes it by patching the `.lock` file to have the version of
`plausible/clickhouse_ecto` that makes it compatible with `ecto_sql` 3.6.
2021-07-14 16:58:56 +00:00
Maximilian Bosch c4afcbb77e plausible: remove create extension patch
Turns out this isn't needed if the module correctly adds the `citext`
extension to the `plausible` database.
2021-06-02 19:21:31 +09:00
Maximilian Bosch cc88797ce0 plausible: minor polishing 2021-06-02 19:21:31 +09:00
Maximilian Bosch 1ed65d4bf6 plausible: platforms.{linux -> unix}
Co-authored-by: Raphael Megzari <raphael@megzari.com>
2021-06-02 19:21:31 +09:00
Maximilian Bosch f3d5618ae1 plausible: correctly run digest task 2021-06-02 19:21:31 +09:00
Maximilian Bosch 6bc72cdd4a plausiblew: cleanup build & update script 2021-06-02 19:21:31 +09:00
Maximilian Bosch 02b15d0f5b plausible: first review fix iteration
* Most significant is probably the patching necessary to run plausible
  with postgres without superuser privilege. This change includes:
  * updating ecto_sql to 3.6 where `CREATE DATABASE` is only executed if
    it doesn't exist[1].
  * patching a migration to only modify the `users.email` column (to use
    `citext` rather than creating the extension. `plausible-postgres`
    takes care of that).
* Correctly declare dependencies in systemd.
* A few minor fixes.

[1] 051baf669e
2021-06-02 19:21:31 +09:00
Maximilian Bosch b06ea1146c plausible: init at 1.3.0 2021-06-02 19:21:31 +09:00