2010-10-02 06:24:33 +01:00
|
|
|
{ fetchurl, stdenv, cmake }:
|
2007-11-11 16:00:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-10-02 06:24:33 +01:00
|
|
|
name = "poppler-data-0.4.3";
|
2007-11-11 16:00:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-07-18 08:45:48 +01:00
|
|
|
url = "http://poppler.freedesktop.org/${name}.tar.gz";
|
2010-10-02 06:24:33 +01:00
|
|
|
sha256 = "19jq5miinzzrzlv6696j82hr60ga2r4msk6a34s9537vid410q22";
|
2007-11-11 16:00:51 +00:00
|
|
|
};
|
|
|
|
|
2010-10-02 06:24:33 +01:00
|
|
|
buildInputs = [ cmake ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ensureDir ''${out}/etc/profile.d
|
|
|
|
echo "export POPPLER_DATADIR=''${out}/share/poppler" > \
|
|
|
|
''${out}/etc/profile.d/60-poppler.sh
|
|
|
|
'';
|
2008-07-18 08:45:48 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://poppler.freedesktop.org/;
|
|
|
|
description = "Encoding files for Poppler, a PDF rendering library";
|
2010-10-02 06:24:33 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
2008-07-18 08:45:48 +01:00
|
|
|
};
|
2007-11-11 16:00:51 +00:00
|
|
|
}
|