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