File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1818 cacert ,
1919 unzip ,
2020 # runtime deps
21+ exiftool ,
2122 jellyfin-ffmpeg , # Immich depends on the jellyfin customizations, see https://github.com/NixOS/nixpkgs/issues/351943
2223 imagemagick ,
2324 libraw ,
2425 libheif ,
2526 vips ,
26- perl ,
2727} :
2828let
2929 buildNpmPackage' = buildNpmPackage . override { inherit nodejs ; } ;
@@ -174,7 +174,7 @@ buildNpmPackage' {
174174 makeCacheWritable = true ;
175175
176176 preBuild = ''
177- cd node_modules/sharp
177+ pushd node_modules/sharp
178178
179179 mkdir node_modules
180180 ln -s ${ node-addon-api } node_modules/node-addon-api
@@ -183,8 +183,13 @@ buildNpmPackage' {
183183
184184 rm -r node_modules
185185
186- cd ../..
186+ popd
187187 rm -r node_modules/@img/sharp*
188+
189+ # If exiftool-vendored.pl isn't found, exiftool is searched for on the PATH
190+ rm -r node_modules/exiftool-vendored.*
191+ substituteInPlace node_modules/exiftool-vendored/dist/DefaultExifToolOptions.js \
192+ --replace-fail "checkPerl: !(0, IsWin32_1.isWin32)()," "checkPerl: false,"
188193 '' ;
189194
190195 installPhase = ''
@@ -205,7 +210,7 @@ buildNpmPackage' {
205210 --set IMMICH_BUILD_DATA $out/build --set NODE_ENV production \
206211 --suffix PATH : "${
207212 lib . makeBinPath [
208- perl
213+ exiftool
209214 jellyfin-ffmpeg
210215 ]
211216 } "
You can’t perform that action at this time.
0 commit comments