Unverified Commit 43f8286e authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

immich: 2.4.1 -> 2.5.2 (#484507)

parents 94d083f0 e447f6c2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -10,8 +10,7 @@
}:
stdenv.mkDerivation rec {
  pname = "immich-cli";
  version = "2.2.105";
  inherit (immich) src pnpmDeps;
  inherit (immich) version src pnpmDeps;

  postPatch = ''
    local -r cli_version="$(jq -r .version cli/package.json)"
+6 −6
Original line number Diff line number Diff line
@@ -115,27 +115,27 @@ let
in
stdenv.mkDerivation (finalAttrs: {
  pname = "immich";
  version = "2.4.1";
  version = "2.5.2";

  src = fetchFromGitHub {
    owner = "immich-app";
    repo = "immich";
    tag = "v${finalAttrs.version}";
    hash = "sha256-AOtKRK2vRQKoQAzU4P3h4tQebpWPF3zIWLcToKaU0Lc=";
    hash = "sha256-e3gU2pSnbYQQU3SxGaJs8dwfTMpeGTz7dcFCmc7Pi/o=";
  };

  pnpmDeps = fetchPnpmDeps {
    inherit (finalAttrs) pname version src;
    inherit pnpm;
    fetcherVersion = 2;
    hash = "sha256-1UhyEHSGNWSNvzDJUSojIoIJA/Gz8KMAGMsL2XZfS5s=";
    fetcherVersion = 3;
    hash = "sha256-+2rm184Hb+S75VyDn3FU36M/3SH2hUDYbKotIGopmvU=";
  };

  postPatch = ''
    # pg_dumpall fails without database root access
    # see https://github.com/immich-app/immich/issues/13971
    substituteInPlace server/src/services/backup.service.ts \
      --replace-fail '`/usr/lib/postgresql/''${databaseMajorVersion}/bin/pg_dumpall`' '`pg_dump`'
    substituteInPlace server/src/utils/database-backups.ts \
      --replace-fail '`/usr/lib/postgresql/''${databaseMajorVersion}/bin/''${bin}`' '`''${bin}`'
  '';

  nativeBuildInputs = [