about summary refs log tree commit diff
path: root/pkgs/servers/photoprism/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/photoprism/default.nix')
-rw-r--r--pkgs/servers/photoprism/default.nix17
1 files changed, 9 insertions, 8 deletions
diff --git a/pkgs/servers/photoprism/default.nix b/pkgs/servers/photoprism/default.nix
index 0c39ad8b6b81..ab641548b42c 100644
--- a/pkgs/servers/photoprism/default.nix
+++ b/pkgs/servers/photoprism/default.nix
@@ -1,4 +1,5 @@
-{ pkgs, lib, stdenv, fetchFromGitHub, fetchzip, darktable, rawtherapee, ffmpeg_7, libheif, exiftool, imagemagick, makeWrapper, testers
+{ lib, stdenv, fetchFromGitHub, fetchzip, darktable, rawtherapee, ffmpeg_7, libheif, exiftool, imagemagick, makeWrapper, testers
+, callPackage
 , nixosTests
 , librsvg }:
 
@@ -13,9 +14,9 @@ let
     hash = "sha256-ihDv5c5RUjDbFcAHJjzp/8qCwKfA+rlFXPziaYarzs8=";
   };
 
-  libtensorflow = pkgs.callPackage ./libtensorflow.nix { };
-  backend = pkgs.callPackage ./backend.nix { inherit libtensorflow src version; };
-  frontend = pkgs.callPackage ./frontend.nix { inherit src version; };
+  libtensorflow = callPackage ./libtensorflow.nix { };
+  backend = callPackage ./backend.nix { inherit libtensorflow src version; };
+  frontend = callPackage ./frontend.nix { inherit src version; };
 
   fetchModel = { name, hash }:
     fetchzip {
@@ -41,7 +42,7 @@ let
 
   assets_path = "$out/share/${pname}";
 in
-stdenv.mkDerivation {
+stdenv.mkDerivation (finalAttrs: {
   inherit pname version;
 
   nativeBuildInputs = [
@@ -62,7 +63,7 @@ stdenv.mkDerivation {
       --set PHOTOPRISM_ASSETS_PATH ${assets_path} \
       --set PHOTOPRISM_DARKTABLE_BIN ${darktable}/bin/darktable-cli \
       --set PHOTOPRISM_RAWTHERAPEE_BIN ${rawtherapee}/bin/rawtherapee-cli \
-      --set PHOTOPRISM_HEIFCONVERT_BIN ${libheif}/bin/heif-convert \
+      --set PHOTOPRISM_HEIFCONVERT_BIN ${libheif}/bin/heif-dec \
       --set PHOTOPRISM_RSVGCONVERT_BIN ${librsvg}/bin/rsvg-convert \
       --set PHOTOPRISM_FFMPEG_BIN ${ffmpeg_7}/bin/ffmpeg \
       --set PHOTOPRISM_EXIFTOOL_BIN ${exiftool}/bin/exiftool \
@@ -78,7 +79,7 @@ stdenv.mkDerivation {
     runHook postInstall
   '';
 
-  passthru.tests.version = testers.testVersion { package = pkgs.photoprism; };
+  passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
   passthru.tests.photoprism = nixosTests.photoprism;
 
   meta = with lib; {
@@ -89,4 +90,4 @@ stdenv.mkDerivation {
     maintainers = with maintainers; [ benesim ];
     mainProgram = "photoprism";
   };
-}
+})