nixpkgs/pkgs/data/misc/poppler-data/default.nix
Ludovic Courtès 5e508b5753 Poppler data 0.2.1.
svn path=/nixpkgs/trunk/; revision=14154
2009-02-21 20:35:55 +00:00

25 lines
639 B
Nix

{ fetchurl, stdenv }:
stdenv.mkDerivation rec {
name = "poppler-data-0.2.1";
src = fetchurl {
url = "http://poppler.freedesktop.org/${name}.tar.gz";
sha256 = "0q56l5v89pnpkm1kqmwb1sx2zcx89q6bxz2hq2cpkq5f8kgvl3c9";
};
installFlags = "prefix=\${out}";
config_tool_name = "poppler-data-dir";
config_tool = ./poppler-data-dir;
postInstall = "
ensureDir \${out}/bin
substituteAll ${config_tool} \${out}/bin/${config_tool_name}
chmod +x \${out}/bin/${config_tool_name}
";
meta = {
homepage = http://poppler.freedesktop.org/;
description = "Encoding files for Poppler, a PDF rendering library";
};
}