Unverified Commit a6db2b8e authored by Gutyina Gergő's avatar Gutyina Gergő
Browse files

pocket-id: 1.16.0 -> 2.1.0

The version 2 release contains breaking changes.
See https://pocket-id.org/docs/setup/major-releases/migrate-v2.
parent c3c16e4b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -81,6 +81,8 @@
  - If you previously used `configFile`, migrate your configuration to the `settings` option and extract the private key to a separate file referenced by `PrivateKeyPath`.
  - If you previously used `persistentKeys`, convert your keys to PEM format and store them in a secure location accessible only to root, then reference them via `PrivateKeyPath`.

- `pocket-id` has been updated to version 2 that contains [breaking changes](https://pocket-id.org/docs/setup/major-releases/migrate-v2).

- `asio` (standalone version of `boost::asio`) has been updated from 1.24.0 to 1.36.0. Some breaking changes were introduced between these
  two versions, and the one affected most was the removal of `asio::io_service` in favor of `asio::io_context` in 1.33.0. `asio_1_32_0` is
  retained for packages that have not completed migration. `asio_1_10` has been removed as no packages depend on it anymore.
+16 −0
Original line number Diff line number Diff line
@@ -177,6 +177,22 @@ in
          "SQLITE_DB_PATH"
          "INTERNAL_BACKEND_URL"
        ]
      )
      ++ (concatMap
        (
          # Added 2026-01-08
          setting:
          optional (cfg.settings ? "${setting}") ''
            `services.pocket-id.settings.${setting}` is deprecated.
            See [v2 migration guide](https://pocket-id.org/docs/setup/major-releases/migrate-v2).
          ''
        )
        [
          "DB_PROVIDER"
          "KEYS_PATH"
          "KEYS_STORAGE"
          "LDAP_ATTRIBUTE_ADMIN_GROUP"
        ]
      );

    systemd.tmpfiles.rules = [
+0 −1
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@ in
          enable = true;
          settings = {
            PORT = 10001;
            DB_PROVIDER = "postgres";
            DB_CONNECTION_STRING = "host=/run/postgresql user=${username} database=${username}";
          };
          credentials = {
+5 −5
Original line number Diff line number Diff line
@@ -12,18 +12,18 @@
}:
buildGo125Module (finalAttrs: {
  pname = "pocket-id";
  version = "1.16.0";
  version = "2.1.0";

  src = fetchFromGitHub {
    owner = "pocket-id";
    repo = "pocket-id";
    tag = "v${finalAttrs.version}";
    hash = "sha256-2tGd/gl0Pm5b5GfkTsChvZoWov4dwljwqDcitX5NKCY=";
    hash = "sha256-tBjo5evQVRG0oembk1VfAfM3M/FJ4zPWV/9vgAWH9Kc=";
  };

  sourceRoot = "${finalAttrs.src.name}/backend";

  vendorHash = "sha256-ttbiuYRWbn8KRZtg499R4NF/E9+B+fOylxZcMwNg69M=";
  vendorHash = "sha256-hMhOG/2xnI/adjg8CnA0tRBD8/OFDsTloFXC8iwxlV0=";

  env.CGO_ENABLED = 0;
  ldflags = [
@@ -56,8 +56,8 @@ buildGo125Module (finalAttrs: {
    pnpmDeps = fetchPnpmDeps {
      inherit (finalAttrs) pname version src;
      pnpm = pnpm_10;
      fetcherVersion = 1;
      hash = "sha256-drXGcUHP7J7keGra7/x1tr9Pfh/wjzmtUE1yAybYXLQ=";
      fetcherVersion = 3;
      hash = "sha256-jhlHrekVk0sNLwo8LFQY6bgX9Ic0xbczM6UTzmZTnPI=";
    };

    env.BUILD_OUTPUT_PATH = "dist";