nixpkgs/pkgs/by-name/pi/pix/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

109 lines
1.8 KiB
Nix
Raw Normal View History

2021-11-23 02:03:53 +00:00
{ stdenv
, lib
, fetchFromGitHub
, pkg-config
, meson
, ninja
, brasero
, colord
, exiv2
, libheif
, libjpeg
, libjxl
, libtiff
, gst_all_1
, libraw
2021-11-23 02:03:53 +00:00
, libsecret
, glib
, gtk3
, gsettings-desktop-schemas
2021-11-23 02:03:53 +00:00
, librsvg
, libwebp
, libX11
, lcms2
, bison
, flex
, wrapGAppsHook3
, shared-mime-info
, python3
, desktop-file-utils
, itstool
, xapp
2021-11-23 02:03:53 +00:00
}:
stdenv.mkDerivation rec {
pname = "pix";
version = "3.4.3";
2021-11-23 02:03:53 +00:00
src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-WL9EW7oKeQwufw1VYDigbqAt52GQTpc5RgDEmnKO6vc=";
2021-11-23 02:03:53 +00:00
};
nativeBuildInputs = [
bison
desktop-file-utils
flex
2021-11-23 02:03:53 +00:00
itstool
meson
ninja
2021-11-23 02:03:53 +00:00
pkg-config
python3
wrapGAppsHook3
2021-11-23 02:03:53 +00:00
];
buildInputs = [
brasero
colord
exiv2
2021-11-23 02:03:53 +00:00
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
2021-11-23 02:03:53 +00:00
gtk3
lcms2
libheif
libjpeg
libjxl
libraw
librsvg
2021-11-23 02:03:53 +00:00
libsecret
libtiff
2021-11-23 02:03:53 +00:00
libwebp
libX11
xapp
2021-11-23 02:03:53 +00:00
];
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")
'';
2021-11-23 02:03:53 +00:00
meta = with lib; {
description = "Generic image viewer from Linux Mint";
mainProgram = "pix";
2021-11-23 02:03:53 +00:00
homepage = "https://github.com/linuxmint/pix";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = teams.cinnamon.members;
};
}