python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / misc / epdfview / default.nix
blob9eea30e74f86f403c0b61e0598f5a87bb4efccf9
1 { lib, stdenv, fetchurl, fetchpatch, pkg-config, gtk2, poppler }:
3 stdenv.mkDerivation rec {
4   pname = "epdfview";
5   version = "0.1.8";
7   src = fetchurl {
8     url = "mirror://debian/pool/main/e/epdfview/epdfview_${version}.orig.tar.gz";
9     sha256 = "0ibyb60a0b4n34bsjgvhdw8yf24463ky0hpmf6a2jjqsbm5g4v64";
10   };
12   nativeBuildInputs = [ pkg-config ];
13   buildInputs = [ gtk2 poppler ];
15   hardeningDisable = [ "format" ];
17   patches = [ (fetchpatch {
18                 name = "epdfview-0.1.8-glib2-headers.patch";
19                 url = "https://projects.archlinux.org/svntogit/community.git/plain/trunk/epdfview-0.1.8-glib2-headers.patch?h=packages/epdfview&id=40ba115c860bdec31d03a30fa594a7ec2864d634";
20                 sha256 = "17df6s1zij5ficj67xszq6kd88cy620az3ic55065ccnmsd73f8h";
21               })
22               (fetchpatch {
23                 name = "epdfview-0.1.8-modern-cups.patch";
24                 url = "https://projects.archlinux.org/svntogit/community.git/plain/trunk/epdfview-0.1.8-modern-cups.patch?h=packages/epdfview&id=40ba115c860bdec31d03a30fa594a7ec2864d634";
25                 sha256 = "07yvgvai2bvbr5fa1mv6lg7nqr0qyryjn1xyjlh8nidg9k9vv001";
26               })
27             ];
29   meta = with lib; {
30     homepage = "https://packages.debian.org/wheezy/epdfview";
31     description = "A lightweight PDF document viewer using Poppler and GTK";
32     longDescription = ''
33       ePDFView is a free lightweight PDF document viewer using Poppler and
34       GTK libraries. The aim of ePDFView is to make a simple PDF document
35       viewer, in the lines of Evince but without using the Gnome libraries.
36     '';
37     license = licenses.gpl2;
38     maintainers = [ maintainers.astsmtl ];
39     platforms = platforms.linux;
40   };