nixpkgs/pkgs/desktops/mate/atril/default.nix
Jan Tojnar eb04659fc2 treewide: wrapGAppsHook → wrapGAppsHook3
This was achieved using the following command:

    sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b')

And then manually reverted the following changes:

- alias in top-level.nix
- function name in wrap-gapps-hook.sh
- comment in postFixup of at-spi2-core
- comment in gtk4
- comment in preFixup of 1password-gui/linux.nix
- comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix
- comment in postFixup of telegram-desktop
- comment in postFixup of fwupd
- buildCommand of mongodb-compass
- postFixup of xflux-gui
- comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config
- description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
2024-04-27 02:23:22 +02:00

87 lines
1.9 KiB
Nix

{ lib
, stdenv
, fetchurl
, pkg-config
, gettext
, caja
, gtk3
, glib
, libxml2
, libarchive
, libsecret
, poppler
, mate-desktop
, itstool
, hicolor-icon-theme
, texlive
, wrapGAppsHook3
, enableEpub ? true
, webkitgtk_4_1
, enableDjvu ? true
, djvulibre
, enablePostScript ? true
, libspectre
, enableXps ? true
, libgxps
, enableImages ? false
, mateUpdateScript
}:
stdenv.mkDerivation rec {
pname = "atril";
version = "1.28.0";
src = fetchurl {
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "ztRyX26bccTqY2dr/DzDvgnSnboIqnp6uXlk4LQ1UWI=";
};
nativeBuildInputs = [
pkg-config
gettext
wrapGAppsHook3
];
buildInputs = [
caja
gtk3
glib
itstool
libarchive
libsecret
libxml2
poppler
mate-desktop
hicolor-icon-theme
texlive.bin.core # for synctex, used by the pdf back-end
]
++ lib.optionals enableDjvu [ djvulibre ]
++ lib.optionals enableEpub [ webkitgtk_4_1 ]
++ lib.optionals enablePostScript [ libspectre ]
++ lib.optionals enableXps [ libgxps ]
;
configureFlags = [ ]
++ lib.optionals (enableDjvu) [ "--enable-djvu" ]
++ lib.optionals (enableEpub) [ "--enable-epub" ]
++ lib.optionals (enablePostScript) [ "--enable-ps" ]
++ lib.optionals (enableXps) [ "--enable-xps" ]
++ lib.optionals (enableImages) [ "--enable-pixbuf" ];
env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
makeFlags = [ "cajaextensiondir=$$out/lib/caja/extensions-2.0" ];
enableParallelBuilding = true;
passthru.updateScript = mateUpdateScript { inherit pname; };
meta = with lib; {
description = "A simple multi-page document viewer for the MATE desktop";
homepage = "https://mate-desktop.org";
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = teams.mate.members;
};
}