2010-10-02 06:24:33 +01:00
|
|
|
{ fetchurl, stdenv, cmake }:
|
2007-11-11 16:00:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-07 22:05:45 +01:00
|
|
|
name = "poppler-data-0.4.7";
|
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";
|
2014-10-07 22:05:45 +01:00
|
|
|
sha256 = "1pm7wg6xqj4sppb5az4pa7psfdk4yxxkw52j85bm9fksibcb0lp7";
|
2007-11-11 16:00:51 +00:00
|
|
|
};
|
|
|
|
|
2010-10-02 06:24:33 +01:00
|
|
|
buildInputs = [ cmake ];
|
|
|
|
|
2011-09-19 09:35:30 +01: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 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;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.free; # more free licenses combined
|
2010-10-02 06:24:33 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
2008-07-18 08:45:48 +01:00
|
|
|
};
|
2007-11-11 16:00:51 +00:00
|
|
|
}
|