2023-03-08 16:32:21 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, meson, ninja, xxd, gettext, intltool
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk3, lcms2, exiv2, libchamplain, clutter-gtk, ffmpegthumbnailer, fbida
|
2023-03-08 16:32:21 +00:00
|
|
|
, libarchive, djvulibre, libheif, openjpeg, libjxl, libraw, lua5_3, poppler
|
|
|
|
, gspell, libtiff, libwebp
|
2022-04-27 09:35:20 +00:00
|
|
|
, wrapGAppsHook, fetchpatch, doxygen
|
2022-02-20 05:27:41 +00:00
|
|
|
, nix-update-script
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "geeqie";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "2.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BestImageViewer";
|
|
|
|
repo = "geeqie";
|
|
|
|
rev = "v${version}";
|
2023-03-08 16:32:21 +00:00
|
|
|
sha256 = "sha256-0GOX77vZ4KZkvwnR1vlv52tlbR+ciwl3ycxbOIcDOqU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-22 01:22:15 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
2023-03-08 16:32:21 +00:00
|
|
|
# libtiff detection is broken and looks for liblibtiff...
|
|
|
|
# fixed upstream, to remove for 2.1
|
|
|
|
substituteInPlace meson.build --replace 'libtiff' 'tiff'
|
2022-01-22 01:22:15 +00:00
|
|
|
'';
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
nativeBuildInputs =
|
2023-03-08 16:32:21 +00:00
|
|
|
[ pkg-config gettext intltool
|
2022-04-27 09:35:20 +00:00
|
|
|
wrapGAppsHook doxygen
|
2023-03-08 16:32:21 +00:00
|
|
|
meson ninja xxd
|
2021-08-05 21:33:18 +00:00
|
|
|
];
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtk3 lcms2 exiv2 libchamplain clutter-gtk ffmpegthumbnailer fbida
|
2023-03-08 16:32:21 +00:00
|
|
|
libarchive djvulibre libheif openjpeg libjxl libraw lua5_3 poppler
|
|
|
|
gspell libtiff libwebp
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Allow geeqie to find exiv2 and exiftran, necessary to
|
|
|
|
# losslessly rotate JPEG images.
|
|
|
|
sed -i $out/lib/geeqie/geeqie-rotate \
|
2021-01-17 00:15:33 +00:00
|
|
|
-e '1 a export PATH=${lib.makeBinPath [ exiv2 fbida ]}:$PATH'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Lightweight GTK based image viewer";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
''
|
|
|
|
Geeqie is a lightweight GTK based image viewer for Unix like
|
|
|
|
operating systems. It features: EXIF, IPTC and XMP metadata
|
|
|
|
browsing and editing interoperability; easy integration with other
|
|
|
|
software; geeqie works on files and directories, there is no need to
|
|
|
|
import images; fast preview for many raw image formats; tools for
|
|
|
|
image comparison, sorting and managing photo collection. Geeqie was
|
|
|
|
initially based on GQview.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
|
2022-01-22 01:22:15 +00:00
|
|
|
homepage = "https://www.geeqie.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
maintainers = with maintainers; [ jfrankenau pSub markus1189 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.gnu ++ platforms.linux;
|
|
|
|
};
|
|
|
|
}
|