2010-10-02 07:24:33 +02:00
|
|
|
{ fetchurl, stdenv, cmake }:
|
2007-11-11 17:00:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-05-09 13:58:08 +02:00
|
|
|
name = "poppler-data-0.4.5";
|
2007-11-11 17:00:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-07-18 09:45:48 +02:00
|
|
|
url = "http://poppler.freedesktop.org/${name}.tar.gz";
|
2013-05-09 13:58:08 +02:00
|
|
|
sha256 = "1zbh1zd083wfwrcw7vxc2bn32h42y6iyh24syxcb3r5ggd2vr41i";
|
2007-11-11 17:00:51 +01:00
|
|
|
};
|
|
|
|
|
2010-10-02 07:24:33 +02:00
|
|
|
buildInputs = [ cmake ];
|
|
|
|
|
2011-09-19 10:35:30 +02:00
|
|
|
# TODO: actually use $prefix/etc/profile.d in NixOS
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
mkdir -pv ''${out}/etc/profile.d
|
|
|
|
echo "export POPPLER_DATADIR=''${out}/share/poppler" |
|
|
|
|
tee ''${out}/etc/profile.d/60-poppler.sh
|
|
|
|
chmod -c +x ''${out}/etc/profile.d/60-poppler.sh
|
|
|
|
'';
|
2008-07-18 09:45:48 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://poppler.freedesktop.org/;
|
|
|
|
description = "Encoding files for Poppler, a PDF rendering library";
|
2010-10-02 07:24:33 +02:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
2008-07-18 09:45:48 +02:00
|
|
|
};
|
2007-11-11 17:00:51 +01:00
|
|
|
}
|