Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
110 lines
1.9 KiB
Nix
110 lines
1.9 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
meson,
|
|
ninja,
|
|
brasero,
|
|
colord,
|
|
exiv2,
|
|
libheif,
|
|
libjpeg,
|
|
libjxl,
|
|
libtiff,
|
|
gst_all_1,
|
|
libraw,
|
|
libsecret,
|
|
glib,
|
|
gtk3,
|
|
gsettings-desktop-schemas,
|
|
librsvg,
|
|
libwebp,
|
|
libX11,
|
|
lcms2,
|
|
bison,
|
|
flex,
|
|
wrapGAppsHook3,
|
|
shared-mime-info,
|
|
python3,
|
|
desktop-file-utils,
|
|
itstool,
|
|
xapp,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pix";
|
|
version = "3.4.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxmint";
|
|
repo = "pix";
|
|
rev = version;
|
|
hash = "sha256-Z8JGss5DA4Lsj7fhjRztF6Y+zYjZuIbmYRo7wvwxB8k=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
bison
|
|
desktop-file-utils
|
|
flex
|
|
itstool
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
brasero
|
|
colord
|
|
exiv2
|
|
glib
|
|
gsettings-desktop-schemas
|
|
gst_all_1.gst-plugins-base
|
|
(gst_all_1.gst-plugins-good.override { gtkSupport = true; })
|
|
gst_all_1.gst-libav
|
|
gst_all_1.gst-plugins-bad
|
|
gst_all_1.gst-plugins-ugly
|
|
gtk3
|
|
lcms2
|
|
libheif
|
|
libjpeg
|
|
libjxl
|
|
libraw
|
|
librsvg
|
|
libsecret
|
|
libtiff
|
|
libwebp
|
|
libX11
|
|
xapp
|
|
];
|
|
|
|
postPatch = ''
|
|
chmod +x pix/make-pix-h.py
|
|
|
|
patchShebangs data/gschemas/make-enums.py \
|
|
pix/make-pix-h.py \
|
|
po/make-potfiles-in.py \
|
|
postinstall.py \
|
|
pix/make-authors-tab.py
|
|
'';
|
|
|
|
# Avoid direct dependency on webkit2gtk-4.0
|
|
# https://fedoraproject.org/wiki/Changes/Remove_webkit2gtk-4.0_API_Version
|
|
mesonFlags = [ "-Dwebservices=false" ];
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Generic image viewer from Linux Mint";
|
|
mainProgram = "pix";
|
|
homepage = "https://github.com/linuxmint/pix";
|
|
license = licenses.gpl2Only;
|
|
platforms = platforms.linux;
|
|
teams = [ teams.cinnamon ];
|
|
};
|
|
}
|