diff options
author | Weijia Wang | 2024-08-09 09:33:38 +0200 |
---|---|---|
committer | GitHub | 2024-08-09 09:33:38 +0200 |
commit | 73c0b5f73040ab1511080293b2c8ea2d2d790865 (patch) | |
tree | 940ef3d50c335aaced711bd5487a7601a74a05bc /pkgs/by-name/ph | |
parent | e9c63d27ca2d4ec12b96d21393a00aa3cdda40aa (diff) | |
parent | 3f272cbdea43dbc0639bfa41484a10967046536e (diff) |
Merge pull request #332100 from wegank/photoqt-bump
photoqt: 4.5 -> 4.6
Diffstat (limited to 'pkgs/by-name/ph')
-rw-r--r-- | pkgs/by-name/ph/photoqt/package.nix | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/pkgs/by-name/ph/photoqt/package.nix b/pkgs/by-name/ph/photoqt/package.nix new file mode 100644 index 000000000000..ff80e9bc1542 --- /dev/null +++ b/pkgs/by-name/ph/photoqt/package.nix @@ -0,0 +1,81 @@ +{ + lib, + stdenv, + fetchurl, + cmake, + extra-cmake-modules, + exiv2, + graphicsmagick, + libarchive, + libraw, + mpv, + pugixml, + qt6, + qt6Packages, + zxing-cpp, +}: + +stdenv.mkDerivation rec { + pname = "photoqt"; + version = "4.6"; + + src = fetchurl { + url = "https://photoqt.org/pkgs/photoqt-${version}.tar.gz"; + hash = "sha256-5VbGMJ1B9yDbTiri7SZ+r+c9LdfG/C1c0/01QBUvbCY="; + }; + + nativeBuildInputs = [ + cmake + extra-cmake-modules + qt6.qttools + qt6.wrapQtAppsHook + ]; + + buildInputs = + [ + exiv2 + graphicsmagick + libarchive + libraw + pugixml + qt6.qtbase + qt6.qtcharts + qt6.qtdeclarative + qt6.qtimageformats + qt6.qtlocation + qt6.qtmultimedia + qt6.qtpositioning + qt6.qtsvg + qt6Packages.poppler + zxing-cpp + ] + ++ lib.optionals stdenv.isLinux [ + mpv + qt6.qtwayland + ]; + + cmakeFlags = [ + (lib.cmakeBool "DEVIL" false) + (lib.cmakeBool "CHROMECAST" false) + (lib.cmakeBool "FREEIMAGE" false) + (lib.cmakeBool "IMAGEMAGICK" false) + (lib.cmakeBool "VIDEO_MPV" (!stdenv.isDarwin)) + ]; + + env.MAGICK_LOCATION = "${graphicsmagick}/include/GraphicsMagick"; + + postInstall = lib.optionalString stdenv.isDarwin '' + mkdir -p $out/Applications + mv $out/bin/photoqt.app $out/Applications + makeWrapper $out/{Applications/photoqt.app/Contents/MacOS,bin}/photoqt + ''; + + meta = { + description = "Simple, yet powerful and good looking image viewer"; + homepage = "https://photoqt.org/"; + license = lib.licenses.gpl2Plus; + mainProgram = "photoqt"; + maintainers = with lib.maintainers; [ wegank ]; + platforms = lib.platforms.unix; + }; +} |