mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
poppler-data-0.4.3
svn path=/nixpkgs/trunk/; revision=24025
This commit is contained in:
parent
23bd704530
commit
325a0370a7
@ -1,24 +1,25 @@
|
|||||||
{ fetchurl, stdenv }:
|
{ fetchurl, stdenv, cmake }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "poppler-data-0.2.1";
|
name = "poppler-data-0.4.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://poppler.freedesktop.org/${name}.tar.gz";
|
url = "http://poppler.freedesktop.org/${name}.tar.gz";
|
||||||
sha256 = "0q56l5v89pnpkm1kqmwb1sx2zcx89q6bxz2hq2cpkq5f8kgvl3c9";
|
sha256 = "19jq5miinzzrzlv6696j82hr60ga2r4msk6a34s9537vid410q22";
|
||||||
};
|
};
|
||||||
|
|
||||||
installFlags = "prefix=\${out}";
|
buildInputs = [ cmake ];
|
||||||
config_tool_name = "poppler-data-dir";
|
|
||||||
config_tool = ./poppler-data-dir;
|
postInstall = ''
|
||||||
postInstall = "
|
ensureDir ''${out}/etc/profile.d
|
||||||
ensureDir \${out}/bin
|
echo "export POPPLER_DATADIR=''${out}/share/poppler" > \
|
||||||
substituteAll ${config_tool} \${out}/bin/${config_tool_name}
|
''${out}/etc/profile.d/60-poppler.sh
|
||||||
chmod +x \${out}/bin/${config_tool_name}
|
'';
|
||||||
";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://poppler.freedesktop.org/;
|
homepage = http://poppler.freedesktop.org/;
|
||||||
description = "Encoding files for Poppler, a PDF rendering library";
|
description = "Encoding files for Poppler, a PDF rendering library";
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
echo -n export POPPLER_DATADIR=@out@/share/poppler
|
|
Loading…
Reference in New Issue
Block a user