18 stdenv.mkDerivation rec {
23 url = "https://photoqt.org/pkgs/photoqt-${version}.tar.gz";
24 hash = "sha256-uZCeJJsQoIDZ6nf+JbFhbXE4ZHL8pCY0pJOG5w6v4vs=";
52 ++ lib.optionals stdenv.hostPlatform.isLinux [
58 (lib.cmakeBool "DEVIL" false)
59 (lib.cmakeBool "CHROMECAST" false)
60 (lib.cmakeBool "FREEIMAGE" false)
61 (lib.cmakeBool "IMAGEMAGICK" false)
62 (lib.cmakeBool "VIDEO_MPV" (!stdenv.hostPlatform.isDarwin))
65 env.MAGICK_LOCATION = "${graphicsmagick}/include/GraphicsMagick";
67 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
68 mkdir -p $out/Applications
69 mv $out/bin/photoqt.app $out/Applications
70 makeWrapper $out/{Applications/photoqt.app/Contents/MacOS,bin}/photoqt
74 description = "Simple, yet powerful and good looking image viewer";
75 homepage = "https://photoqt.org/";
76 license = lib.licenses.gpl2Plus;
77 mainProgram = "photoqt";
78 maintainers = with lib.maintainers; [ wegank ];
79 platforms = lib.platforms.unix;