|
|
@@ -11,11 +11,28 @@ rec {
|
|
|
# ...
|
|
|
# });
|
|
|
|
|
|
- immich = prev.immich.overrideAttrs (oldAttrs: {
|
|
|
- patches = (oldAttrs.patches or [ ]) ++ [
|
|
|
- ./video-geolocation.patch
|
|
|
- ];
|
|
|
- });
|
|
|
+ immich = prev.immich.overrideAttrs (oldAttrs:
|
|
|
+ let
|
|
|
+ patchedWeb = oldAttrs.passthru.web.overrideAttrs (webOld: {
|
|
|
+ patches = (webOld.patches or [ ]) ++ [
|
|
|
+ ./disable-picture-in-picture.patch
|
|
|
+ ];
|
|
|
+ });
|
|
|
+ in
|
|
|
+ {
|
|
|
+ patches = (oldAttrs.patches or [ ]) ++ [
|
|
|
+ ./video-geolocation.patch
|
|
|
+ ];
|
|
|
+
|
|
|
+ passthru = oldAttrs.passthru // {
|
|
|
+ web = patchedWeb;
|
|
|
+ };
|
|
|
+
|
|
|
+ postInstall = ''
|
|
|
+ rm -f $out/lib/node_modules/immich/build/www
|
|
|
+ ln -s '${patchedWeb}' $out/lib/node_modules/immich/build/www
|
|
|
+ '';
|
|
|
+ });
|
|
|
|
|
|
makeModulesClosure = x: prev.makeModulesClosure (x // { allowMissing = true; });
|
|
|
|