previewqt: adopt and modernize
- finalAttrs - strictDeps
This commit is contained in:
parent
d77ffb1e58
commit
62030f7bdd
@ -1,64 +1,98 @@
|
||||
{
|
||||
lib,
|
||||
vips,
|
||||
resvg,
|
||||
mpv,
|
||||
libraw,
|
||||
imagemagick,
|
||||
libdevil,
|
||||
stdenv,
|
||||
fetchFromGitLab,
|
||||
cmake,
|
||||
libarchive,
|
||||
qt6Packages,
|
||||
extra-cmake-modules,
|
||||
exiv2,
|
||||
extra-cmake-modules,
|
||||
fetchFromGitLab,
|
||||
imagemagick,
|
||||
libarchive,
|
||||
libdevil,
|
||||
libraw,
|
||||
mpv,
|
||||
pkg-config,
|
||||
qt6Packages,
|
||||
resvg,
|
||||
stdenv,
|
||||
vips,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "previewqt";
|
||||
version = "3.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
name = "previewqt-sources-${finalAttrs.version}";
|
||||
owner = "lspies";
|
||||
repo = "previewqt";
|
||||
rev = "refs/tags/v${version}";
|
||||
rev = "refs/tags/v${finalAttrs.version}";
|
||||
hash = "sha256-cDtqgezKGgSdhw8x1mM4cZ0H3SfUPEyWP6rRD+kRwXc=";
|
||||
};
|
||||
|
||||
# can't find qtquick3d
|
||||
strictDeps = false;
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
extra-cmake-modules
|
||||
pkg-config
|
||||
qt6Packages.wrapQtAppsHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
exiv2
|
||||
imagemagick
|
||||
qt6Packages.poppler
|
||||
qt6Packages.qtmultimedia
|
||||
qt6Packages.qtquick3d
|
||||
qt6Packages.qtsvg
|
||||
qt6Packages.qttools
|
||||
qt6Packages.qtwebengine
|
||||
libarchive
|
||||
libdevil
|
||||
libraw
|
||||
mpv
|
||||
resvg
|
||||
vips
|
||||
];
|
||||
buildInputs =
|
||||
[
|
||||
exiv2
|
||||
extra-cmake-modules
|
||||
imagemagick
|
||||
libarchive
|
||||
libdevil
|
||||
libraw
|
||||
mpv
|
||||
resvg
|
||||
vips
|
||||
]
|
||||
++ [
|
||||
qt6Packages.poppler
|
||||
qt6Packages.qtmultimedia
|
||||
qt6Packages.qtquick3d
|
||||
qt6Packages.qtsvg
|
||||
qt6Packages.qttools
|
||||
qt6Packages.qtwebengine
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
meta = {
|
||||
homepage = "https://previewqt.org/";
|
||||
description = "Qt-based file previewer";
|
||||
homepage = "https://photoqt.org/previewqt";
|
||||
changelog = "https://gitlab.com/lspies/previewqt/-/blob/v${version}/CHANGELOG";
|
||||
longDescription = ''
|
||||
PhotoQt is an image viewer that provides a simple and uncluttered
|
||||
interface. Yet, hidden beneath the surface awaits a large array of
|
||||
features. Here are some of its main features (not an exhaustive
|
||||
list). Suggestions for new features are always welcome.
|
||||
|
||||
- Support of ImageMagick/GraphicsMagick, Libraw, FreeImage, DevIL,
|
||||
libvips, Poppler, libarchive, and video files.
|
||||
- Touchscreen support
|
||||
- Support for Motion Photos and Apple Live Photos
|
||||
- Support for (partial) photo spheres and 360 degree panoramas using
|
||||
equirectangular projection
|
||||
- Explore images on an interactive map according to their embedded GPS
|
||||
location
|
||||
- Chromecast support
|
||||
- Basic image manipulations
|
||||
- Convert images between formats
|
||||
- Keyboard and mouse shortcuts
|
||||
- Upload images directly to imgur.com
|
||||
- Set image as wallpaper directly from inside PhotoQt
|
||||
- Slideshow feature
|
||||
- Display Exif information (including tagging of faces)
|
||||
- Detect and display bar codes and QR codes in images
|
||||
- Thumbnail Cache
|
||||
- System Tray Usage
|
||||
- Command Line Options
|
||||
- Several translations available (help wanted)
|
||||
- and much more...
|
||||
'';
|
||||
changelog = "https://gitlab.com/lspies/previewqt/-/blob/v${finalAttrs.version}/CHANGELOG";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
mainProgram = "previewqt";
|
||||
maintainers = with lib.maintainers; [ AndersonTorres ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user