2021-11-07 20:29:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libX11
|
|
|
|
, cups
|
|
|
|
, zlib
|
|
|
|
, libxml2
|
|
|
|
, pango
|
|
|
|
, atk
|
|
|
|
, gtk2
|
|
|
|
, glib
|
|
|
|
, gdk-pixbuf
|
|
|
|
, gdk-pixbuf-xlib
|
|
|
|
}:
|
2009-05-12 15:49:01 +01:00
|
|
|
|
2021-11-07 20:29:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "adobe-reader";
|
2021-11-08 08:56:39 +00:00
|
|
|
version = "9.5.5";
|
2012-11-08 13:28:20 +00:00
|
|
|
|
2021-11-08 08:56:39 +00:00
|
|
|
# TODO: convert to phases
|
2009-05-12 15:49:01 +01:00
|
|
|
builder = ./builder.sh;
|
2012-11-08 13:28:20 +00:00
|
|
|
|
2009-05-12 15:49:01 +01:00
|
|
|
src = fetchurl {
|
2021-11-08 08:56:39 +00:00
|
|
|
url = "http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${version}/enu/AdbeRdr${version}-1_i486linux_enu.tar.bz2";
|
2013-11-04 17:42:28 +00:00
|
|
|
sha256 = "0h35misxrqkl5zlmmvray1bqf4ywczkm89n9qw7d9arqbg3aj3pf";
|
2009-05-12 15:49:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# !!! Adobe Reader contains copies of OpenSSL, libcurl, and libicu.
|
2021-11-08 08:56:39 +00:00
|
|
|
# We should probably remove those and use the regular Nixpkgs versions.
|
|
|
|
libPath = lib.makeLibraryPath [ stdenv.cc.cc libX11 zlib libxml2 cups pango atk gtk2 glib gdk-pixbuf gdk-pixbuf-xlib ];
|
2012-11-08 13:28:20 +00:00
|
|
|
|
2016-02-09 17:19:56 +00:00
|
|
|
passthru.mozillaPlugin = "/libexec/adobe-reader/Browser/intellinux";
|
|
|
|
|
2009-05-12 15:49:01 +01:00
|
|
|
meta = {
|
|
|
|
description = "Adobe Reader, a viewer for PDF documents";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.adobe.com/products/reader";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.unfree;
|
2020-09-01 07:39:36 +01:00
|
|
|
knownVulnerabilities = [
|
|
|
|
"Numerous unresolved vulnerabilities"
|
|
|
|
"See: https://www.cvedetails.com/product/497/Adobe-Acrobat-Reader.html?vendor_id=53"
|
|
|
|
];
|
2021-11-08 08:56:39 +00:00
|
|
|
platforms = [ "i686-linux" ];
|
2009-05-12 15:49:01 +01:00
|
|
|
};
|
|
|
|
}
|