nixpkgs/pkgs/data/misc/poppler-data/default.nix

30 lines
842 B
Nix
Raw Normal View History

{ fetchurl, stdenv, cmake }:
stdenv.mkDerivation rec {
2013-01-29 13:27:49 +01:00
name = "poppler-data-0.4.6";
src = fetchurl {
url = "http://poppler.freedesktop.org/${name}.tar.gz";
2013-01-29 13:27:49 +01:00
sha256 = "1yhaz74b50hjkz3ii077kmq3qg3p3kdyxm33cv6r1njvz8fr01pk";
};
buildInputs = [ cmake ];
# 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
'';
meta = {
homepage = http://poppler.freedesktop.org/;
description = "Encoding files for Poppler, a PDF rendering library";
platforms = stdenv.lib.platforms.all;
2013-01-29 13:27:49 +01:00
license = "free"; # more free licenses combined
maintainers = [ stdenv.lib.maintainers.urkud ];
};
}