2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl
|
2010-08-25 16:25:51 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-02-09 11:46:10 +01:00
|
|
|
name = "libxpdf-3.02pl5";
|
2010-08-25 16:25:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-09 11:46:10 +01:00
|
|
|
url = "https://dl.xpdfreader.com/old/xpdf-3.02.tar.gz";
|
2010-08-25 16:25:51 +02:00
|
|
|
sha256 = "000zq4ddbwyxiki4vdwpmxbnw5n9hsg9hvwra2p33hslyib7sfmk";
|
|
|
|
};
|
2020-06-27 00:00:04 +02:00
|
|
|
|
2010-08-25 16:25:51 +02:00
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
2021-02-09 11:46:10 +01:00
|
|
|
url = "https://dl.xpdfreader.com/old/xpdf-3.02pl1.patch";
|
2010-08-25 16:25:51 +02:00
|
|
|
sha256 = "1wxv9l0d2kkwi961ihpdwi75whdvk7cgqxkbfym8cjj11fq17xjq";
|
|
|
|
})
|
|
|
|
(fetchurl {
|
2021-02-09 11:46:10 +01:00
|
|
|
url = "https://dl.xpdfreader.com/old/xpdf-3.02pl2.patch";
|
2010-08-25 16:25:51 +02:00
|
|
|
sha256 = "1nfrgsh9xj0vryd8h65myzd94bjz117y89gq0hzji9dqn23xihfi";
|
|
|
|
})
|
|
|
|
(fetchurl {
|
2021-02-09 11:46:10 +01:00
|
|
|
url = "https://dl.xpdfreader.com/old/xpdf-3.02pl3.patch";
|
2010-08-25 16:25:51 +02:00
|
|
|
sha256 = "0jskkv8x6dqr9zj4azaglas8cziwqqrkbbnzrpm2kzrvsbxyhk2r";
|
|
|
|
})
|
|
|
|
(fetchurl {
|
2021-02-09 11:46:10 +01:00
|
|
|
url = "https://dl.xpdfreader.com/old/xpdf-3.02pl4.patch";
|
2010-08-25 16:25:51 +02:00
|
|
|
sha256 = "1c48h7aizx0ngmzlzw0mpja1w8vqyy3pg62hyxp7c60k86al715h";
|
|
|
|
})
|
2021-02-09 11:46:10 +01:00
|
|
|
(fetchurl {
|
|
|
|
url = "https://dl.xpdfreader.com/old/xpdf-3.02pl5.patch";
|
|
|
|
sha256 = "1fki66pw56yr6aw38f6amrx7wxwcxbx4704pjqq7pqqr784b7z4j";
|
|
|
|
})
|
2010-08-25 16:25:51 +02:00
|
|
|
./xpdf-3.02-protection.patch
|
|
|
|
./libxpdf.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/lib/goo
|
|
|
|
mkdir -p $out/lib/fofi
|
|
|
|
mkdir -p $out/lib/xpdf
|
|
|
|
mkdir -p $out/include
|
2010-08-25 16:25:51 +02:00
|
|
|
|
|
|
|
cp -v goo/libGoo.a $out/lib/goo
|
|
|
|
cp -v fofi/libfofi.a $out/lib/fofi
|
|
|
|
cp -v xpdf/libxpdf.a $out/lib/xpdf
|
2020-06-27 00:00:04 +02:00
|
|
|
|
2010-08-25 16:25:51 +02:00
|
|
|
cp -v *.h $out/include
|
|
|
|
cp -v goo/*.h $out/include
|
|
|
|
cp -v fofi/*.h $out/include
|
|
|
|
cp -v xpdf/*.h $out/include
|
|
|
|
'';
|
2020-06-27 00:00:04 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-06-27 00:00:04 +02:00
|
|
|
platforms = platforms.unix;
|
2021-02-09 11:46:10 +01:00
|
|
|
license = licenses.gpl2Only;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2010-08-25 16:25:51 +02:00
|
|
|
}
|