Skip to content

Commit

Permalink
immich-public-proxy: init at 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaculabilis committed Dec 7, 2024
1 parent e8ad7bb commit 6e48eec
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9949,6 +9949,12 @@
githubId = 45084216;
keys = [ { fingerprint = "1BF9 8D10 E0D0 0B41 5723 5836 4C13 3A84 E646 9228"; } ];
};
jaculabilis = {
name = "Tim Van Baak";
email = "[email protected]";
github = "Jaculabilis";
githubId = 10787844;
};
jaduff = {
email = "[email protected]";
github = "jaduff";
Expand Down
41 changes: 41 additions & 0 deletions pkgs/by-name/im/immich-public-proxy/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nodejs,
}:
let
pname = "immich-public-proxy";
version = "1.5.3+unstable=2024-12-02";
repo = fetchFromGitHub {
owner = "alangrainger";
repo = pname;
# 1.5.3 plus upstreamed nixpkgs patches
rev = "e4d66a5cccf67bb9c3cf7939b39c4569ba064b35";
hash = "sha256-VClwkhuvp6gZNZaTp7gqjHy+4uiGJPJFF/1/Sb4KCRw=";
};
in
buildNpmPackage {
inherit pname version;
src = "${repo}/app";

npmDepsHash = "sha256-dEdEonVS+NFfov+w/wupTtc55ww9zx61n4qFM29mcUY=";

# patch in absolute nix store paths so the process doesn't need to cwd in $out
postInstall = ''
sed -i "/const app =/a // Set the views path to the nix output\napp.set('views', '$out/lib/node_modules/immich-public-proxy/views')" \
$out/lib/node_modules/immich-public-proxy/dist/index.js
substituteInPlace $out/lib/node_modules/immich-public-proxy/dist/index.js --replace-warn \
"static('public'" \
"static('$out/lib/node_modules/immich-public-proxy/public'"
'';

meta = {
description = "Share your Immich photos and albums in a safe way without exposing your Immich instance to the public.";
homepage = "https://github.com/alangrainger/immich-public-proxy";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ jaculabilis ];
inherit (nodejs.meta) platforms;
mainProgram = "immich-public-proxy";
};
}

0 comments on commit 6e48eec

Please sign in to comment.