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: e12aa01bdde9
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 89cb711b807f
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jul 26, 2020

  1. Copy the full SHA
    de98a63 View commit details

Commits on Jul 27, 2020

  1. Merge pull request #93851 from dawidsowa/atril

    mate.atril: add support for more filetypes
    romildo authored Jul 27, 2020
    Copy the full SHA
    89cb711 View commit details
Showing with 35 additions and 2 deletions.
  1. +35 −2 pkgs/desktops/mate/atril/default.nix
37 changes: 35 additions & 2 deletions pkgs/desktops/mate/atril/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
{ stdenv, fetchurl, pkgconfig, gettext, gtk3, glib, libxml2, libsecret, poppler, itstool, hicolor-icon-theme, texlive, mate, wrapGAppsHook }:
{ stdenv
, fetchurl
, pkgconfig
, gettext
, gtk3
, glib
, libxml2
, libsecret
, poppler
, itstool
, hicolor-icon-theme
, texlive
, mate
, wrapGAppsHook
, enableEpub ? true, webkitgtk
, enableDjvu ? true, djvulibre
, enablePostScript ? true, libspectre
, enableXps ? true, libgxps
, enableImages ? false
}:

with stdenv.lib;

stdenv.mkDerivation rec {
pname = "atril";
@@ -26,7 +47,19 @@ stdenv.mkDerivation rec {
mate.mate-desktop
hicolor-icon-theme
texlive.bin.core # for synctex, used by the pdf back-end
];
]
++ optionals enableDjvu [ djvulibre ]
++ optionals enableEpub [ webkitgtk ]
++ optionals enablePostScript [ libspectre ]
++ optionals enableXps [ libgxps ]
;

configureFlags = [ ]
++ optionals (enableDjvu) [ "--enable-djvu" ]
++ optionals (enableEpub) [ "--enable-epub" ]
++ optionals (enablePostScript) [ "--enable-ps" ]
++ optionals (enableXps) [ "--enable-xps" ]
++ optionals (enableImages) [ "--enable-pixbuf" ];

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