Commit Graph

30 Commits

Author SHA1 Message Date
Alexander Sieg
8edee82bc2
plausible: take take-plausible-maintainership 2024-05-07 15:35:22 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Salar Rahmanian
c207b31e56 plausible: remove softinio as maintainer 2024-03-17 23:53:28 -07:00
Alexandru Scvortov
cbbe57bc52 elixir: make 1.15 default and pin existing pkgs to 1.14 2023-11-02 20:16:00 +00:00
Robert Schütz
c4574a95c5 plausible: also install tracker 2023-09-20 09:07:28 -07:00
Robert Schütz
f7f848d8cb plausible: add softinio as maintainer 2023-09-09 14:24:43 -07:00
Robert Schütz
c4244c7aa3 plausible: 1.5.1 -> 2.0.0
Changelog: https://github.com/plausible/analytics/blob/v2.0.0/CHANGELOG.md

Co-authored-by: Kirill Radzikhovskyy <kirillrdy@gmail.com>
2023-09-08 15:29:21 -07:00
Salar Rahmanian
e8210b2aac plausible: 1.4.4 -> 1.5.1 2023-09-08 20:54:05 +00:00
Theodore Ni
551db1309c
plausible: adapt update script to new nix-prefetch-github
Take the opportunity to switch to SRI hashes.
2023-07-18 18:16:17 -07:00
happysalada
6a050b80fa fetchMixDeps: transition to hash 2023-06-05 09:29:32 -04:00
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