-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8ad7bb
commit 6e48eec
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
} |