27 stdenv.mkDerivation rec {
32 url = "https://photoqt.org/pkgs/photoqt-${version}.tar.gz";
33 hash = "sha256-dCaNF5UoH6SkKBrZGtwg2qZcDtlptdBxEGZL2oKyjhI=";
60 ] ++ lib.optionals stdenv.isLinux [
65 (lib.cmakeBool "DEVIL" false)
66 (lib.cmakeBool "CHROMECAST" false)
67 (lib.cmakeBool "FREEIMAGE" false)
68 (lib.cmakeBool "IMAGEMAGICK" false)
71 env.MAGICK_LOCATION = "${graphicsmagick}/include/GraphicsMagick";
73 postInstall = lib.optionalString stdenv.isDarwin ''
74 mkdir -p $out/Applications
75 mv $out/bin/photoqt.app $out/Applications
76 makeWrapper $out/{Applications/photoqt.app/Contents/MacOS,bin}/photoqt
80 description = "Simple, yet powerful and good looking image viewer";
81 homepage = "https://photoqt.org/";
82 license = lib.licenses.gpl2Plus;
83 mainProgram = "photoqt";
84 maintainers = with lib.maintainers; [ wegank ];
85 platforms = lib.platforms.unix;