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: 1279016787f7
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 92866a374ddf
Choose a head ref
  • 3 commits
  • 4 files changed
  • 2 contributors

Commits on Apr 5, 2019

  1. Copy the full SHA
    e0a90a5 View commit details
  2. nixos/evince: init

    gebner committed Apr 5, 2019
    Copy the full SHA
    ad5cabf View commit details
  3. Merge pull request #58277 from gebner/evince-full-3.32

    evince: enable all backends
    worldofpeace authored Apr 5, 2019
    Copy the full SHA
    92866a3 View commit details
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -265,6 +265,7 @@
./services/desktops/pipewire.nix
./services/desktops/gnome3/at-spi2-core.nix
./services/desktops/gnome3/chrome-gnome-shell.nix
./services/desktops/gnome3/evince.nix
./services/desktops/gnome3/evolution-data-server.nix
./services/desktops/gnome3/file-roller.nix
./services/desktops/gnome3/gnome-disks.nix
35 changes: 35 additions & 0 deletions nixos/modules/services/desktops/gnome3/evince.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Evince.

{ config, pkgs, lib, ... }:

with lib;

{

###### interface

options = {

services.gnome3.evince = {

enable = mkEnableOption
"systemd and dbus services for Evince, the GNOME document viewer";

};

};


###### implementation

config = mkIf config.services.gnome3.evince.enable {

environment.systemPackages = [ pkgs.evince ];

services.dbus.packages = [ pkgs.evince ];

systemd.packages = [ pkgs.evince ];

};

}
1 change: 1 addition & 0 deletions nixos/modules/services/x11/desktop-managers/gnome3.nix
Original file line number Diff line number Diff line change
@@ -126,6 +126,7 @@ in {
services.dleyna-renderer.enable = mkDefault true;
services.dleyna-server.enable = mkDefault true;
services.gnome3.at-spi2-core.enable = true;
services.gnome3.evince.enable = mkDefault true;
services.gnome3.evolution-data-server.enable = true;
services.gnome3.file-roller.enable = mkDefault true;
services.gnome3.gnome-disks.enable = mkDefault true;
50 changes: 37 additions & 13 deletions pkgs/desktops/gnome-3/core/evince/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ fetchurl
{ fetchFromGitLab
, stdenv
, autoreconfHook
, meson
, ninja
, pkgconfig
, gettext
, libxml2
@@ -26,28 +27,45 @@
, gspell
, adwaita-icon-theme
, gsettings-desktop-schemas
, gnome-desktop
, dbus
, python3
, texlive
, t1lib
, gst_all_1
, supportMultimedia ? true # PDF multimedia
, libgxps
, supportXPS ? false # Open XML Paper Specification via libgxps
, supportXPS ? true # Open XML Paper Specification via libgxps
}:

stdenv.mkDerivation rec {
pname = "evince";
version = "3.32.0";

src = fetchurl {
url = "mirror://gnome/sources/evince/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0h2c6b2h6g3zy0gnycrjk1y7rp0kf7ppci76dmd2zvb6chhpgngh";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "GNOME";
repo = pname;
rev = version;
sha256 = "1klq8j70q8r8hyqv1wi6jcx8g76yh46bh8614y82zzggn4cx6y3r";
};

postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
'';

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

buildInputs = [
@@ -67,13 +85,19 @@ stdenv.mkDerivation rec {
librsvg
adwaita-icon-theme
gspell
] ++ stdenv.lib.optional supportXPS libgxps;
gnome-desktop
dbus # only needed to find the service directory
texlive.bin.core # kpathsea for DVI support
t1lib
] ++ stdenv.lib.optional supportXPS libgxps
++ stdenv.lib.optionals supportMultimedia (with gst_all_1; [
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav ]);

configureFlags = [
"--disable-nautilus" # Do not build nautilus plugin
"--enable-ps"
"--enable-introspection"
(if supportXPS then "--enable-xps" else "--disable-xps")
mesonFlags = [
"-Dauto_features=enabled"
"-Dnautilus=false"
"-Dps=enabled"
"-Dgtk_doc=false"
];

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