forked from mirrors/nixpkgs
poppler_data: install pkgconfig files
This commit is contained in:
parent
d5e1f5bbaa
commit
7ce717a56c
|
@ -1,4 +1,4 @@
|
||||||
{ fetchurl, stdenv, cmake }:
|
{ fetchurl, stdenv }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "poppler-data-0.4.7";
|
name = "poppler-data-0.4.7";
|
||||||
|
@ -8,22 +8,17 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1pm7wg6xqj4sppb5az4pa7psfdk4yxxkw52j85bm9fksibcb0lp7";
|
sha256 = "1pm7wg6xqj4sppb5az4pa7psfdk4yxxkw52j85bm9fksibcb0lp7";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake ];
|
postPatch = ''
|
||||||
|
sed -i 's,$(datadir)/pkgconfig,$(prefix)/lib/pkgconfig,g' Makefile
|
||||||
|
'';
|
||||||
|
|
||||||
# TODO: actually use $prefix/etc/profile.d in NixOS
|
installFlags = [ "prefix=$(out)" ];
|
||||||
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 = {
|
meta = with stdenv.lib; {
|
||||||
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;
|
platforms = platforms.all;
|
||||||
license = stdenv.lib.licenses.free; # more free licenses combined
|
license = licenses.free; # more free licenses combined
|
||||||
maintainers = [ stdenv.lib.maintainers.urkud ];
|
maintainers = with maintainers; [ urkud ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue