fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 fetchYarnDeps,
6 nodejs,
7 yarnConfigHook,
8 yarnBuildHook,
9 nix-update-script,
10 extraBuildEnv ? { },
11}:
12
13stdenv.mkDerivation (finalAttrs: {
14 pname = "ente-web";
15 version = "1.1.57";
16
17 src = fetchFromGitHub {
18 owner = "ente-io";
19 repo = "ente";
20 sparseCheckout = [ "web" ];
21 tag = "photos-v${finalAttrs.version}";
22 fetchSubmodules = true;
23 hash = "sha256-SCkxGm/w0kES7wDuLBsUTgwrFYNLvLD51NyioAVTLrg=";
24 };
25 sourceRoot = "${finalAttrs.src.name}/web";
26
27 offlineCache = fetchYarnDeps {
28 yarnLock = "${finalAttrs.src}/web/yarn.lock";
29 hash = "sha256-FnLMXOpIVNOhaM7VjNEDlwpew9T/5Ch5eFed9tLpDsI=";
30 };
31
32 nativeBuildInputs = [
33 yarnConfigHook
34 yarnBuildHook
35 nodejs
36 ];
37
38 # See: https://github.com/ente-io/ente/blob/main/web/apps/photos/.env
39 env = extraBuildEnv;
40
41 installPhase = ''
42 runHook preInstall
43
44 cp -r apps/photos/out $out
45
46 runHook postInstall
47 '';
48
49 passthru.updateScript = nix-update-script {
50 extraArgs = [
51 "--version-regex"
52 "photos-v(.*)"
53 ];
54 };
55
56 meta = {
57 description = "Web client for Ente Photos";
58 homepage = "https://ente.io/";
59 changelog = "https://github.com/ente-io/ente/releases";
60 license = lib.licenses.agpl3Only;
61 maintainers = with lib.maintainers; [
62 pinpox
63 ];
64 platforms = lib.platforms.all;
65 };
66})