Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a2f289d93f5b
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b6eb382545c4
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 17, 2019

  1. squash! evince: 3.30.2 -> 3.31.91

    clean up
    
    recentListSize no longer applicable
    jtojnar committed Mar 17, 2019
    Copy the full SHA
    b6eb382 View commit details
Showing with 58 additions and 24 deletions.
  1. +58 −24 pkgs/desktops/gnome-3/core/evince/default.nix
82 changes: 58 additions & 24 deletions pkgs/desktops/gnome-3/core/evince/default.nix
Original file line number Diff line number Diff line change
@@ -1,37 +1,72 @@
{ fetchurl, stdenv, pkgconfig, gettext, libxml2
, glib, gtk3, pango, atk, gdk_pixbuf, shared-mime-info, itstool, gnome3
, poppler, ghostscriptX, djvulibre, libspectre, libarchive, libsecret, wrapGAppsHook
, librsvg, gobject-introspection, yelp-tools, gspell, adwaita-icon-theme, gsettings-desktop-schemas
, libgxps
, recentListSize ? null # 5 is not enough, allow passing a different number
, supportXPS ? false # Open XML Paper Specification via libgxps
{ fetchurl
, stdenv
, autoreconfHook
, pkgconfig
, gettext
, libxml2
, appstream
, glib
, gtk3
, pango
, atk
, gdk_pixbuf
, shared-mime-info
, itstool
, gnome3
, poppler
, ghostscriptX
, djvulibre
, libspectre
, libarchive
, libsecret
, wrapGAppsHook
, librsvg
, gobject-introspection
, yelp-tools
, gspell
, adwaita-icon-theme
, gsettings-desktop-schemas
, libgxps
, supportXPS ? false # Open XML Paper Specification via libgxps
}:

stdenv.mkDerivation rec {
name = "evince-${version}";
pname = "evince";
version = "3.32.0";

src = fetchurl {
url = "mirror://gnome/sources/evince/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
url = "mirror://gnome/sources/evince/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0h2c6b2h6g3zy0gnycrjk1y7rp0kf7ppci76dmd2zvb6chhpgngh";
};

passthru = {
updateScript = gnome3.updateScript { packageName = "evince"; };
};

nativeBuildInputs = [
pkgconfig gobject-introspection gettext itstool wrapGAppsHook yelp-tools
autoreconfHook appstream
autoreconfHook
pkgconfig
gobject-introspection
gettext
itstool
yelp-tools
appstream
wrapGAppsHook
];

buildInputs = [
glib gtk3 pango atk gdk_pixbuf libxml2
glib
gtk3
pango
atk
gdk_pixbuf
libxml2
gsettings-desktop-schemas
poppler ghostscriptX djvulibre libspectre libarchive
libsecret librsvg adwaita-icon-theme gspell
poppler
ghostscriptX
djvulibre
libspectre
libarchive
libsecret
librsvg
adwaita-icon-theme
gspell
] ++ stdenv.lib.optional supportXPS libgxps;

configureFlags = [
@@ -42,16 +77,15 @@ stdenv.mkDerivation rec {

NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";

preConfigure = stdenv.lib.optionalString (recentListSize != null) ''
sed -i 's/\(gtk_recent_chooser_set_limit .*\)5)/\1${builtins.toString recentListSize})/' shell/ev-open-recent-action.c
sed -i 's/\(if (++n_items == \)5\(.*\)/\1${builtins.toString recentListSize}\2/' shell/ev-window.c
'';

preFixup = ''
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
'';

enableParallelBuilding = true;
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};

meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Apps/Evince;