duplicity: 3.0.3.1 -> 3.0.3.2 (#364143)
[NixPkgs.git] / pkgs / applications / misc / xpdf / libxpdf.nix
blob6f7ccfb897408299648e5a4fc91bd359abfe2d81
2   lib,
3   stdenv,
4   fetchurl,
5 }:
7 stdenv.mkDerivation {
8   pname = "libxpdf";
9   version = "3.02pl5";
11   src = fetchurl {
12     url = "https://dl.xpdfreader.com/old/xpdf-3.02.tar.gz";
13     sha256 = "000zq4ddbwyxiki4vdwpmxbnw5n9hsg9hvwra2p33hslyib7sfmk";
14   };
16   patches = [
17     (fetchurl {
18       url = "https://dl.xpdfreader.com/old/xpdf-3.02pl1.patch";
19       sha256 = "1wxv9l0d2kkwi961ihpdwi75whdvk7cgqxkbfym8cjj11fq17xjq";
20     })
21     (fetchurl {
22       url = "https://dl.xpdfreader.com/old/xpdf-3.02pl2.patch";
23       sha256 = "1nfrgsh9xj0vryd8h65myzd94bjz117y89gq0hzji9dqn23xihfi";
24     })
25     (fetchurl {
26       url = "https://dl.xpdfreader.com/old/xpdf-3.02pl3.patch";
27       sha256 = "0jskkv8x6dqr9zj4azaglas8cziwqqrkbbnzrpm2kzrvsbxyhk2r";
28     })
29     (fetchurl {
30       url = "https://dl.xpdfreader.com/old/xpdf-3.02pl4.patch";
31       sha256 = "1c48h7aizx0ngmzlzw0mpja1w8vqyy3pg62hyxp7c60k86al715h";
32     })
33     (fetchurl {
34       url = "https://dl.xpdfreader.com/old/xpdf-3.02pl5.patch";
35       sha256 = "1fki66pw56yr6aw38f6amrx7wxwcxbx4704pjqq7pqqr784b7z4j";
36     })
37     ./xpdf-3.02-protection.patch
38     ./libxpdf.patch
39   ];
41   installPhase = ''
42     mkdir -p $out/lib/goo
43     mkdir -p $out/lib/fofi
44     mkdir -p $out/lib/xpdf
45     mkdir -p $out/include
47     cp -v goo/libGoo.a $out/lib/goo
48     cp -v fofi/libfofi.a $out/lib/fofi
49     cp -v xpdf/libxpdf.a $out/lib/xpdf
51     cp -v *.h $out/include
52     cp -v goo/*.h $out/include
53     cp -v fofi/*.h $out/include
54     cp -v xpdf/*.h $out/include
55   '';
57   meta = with lib; {
58     platforms = platforms.unix;
59     license = licenses.gpl2Only;
60   };