mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
ec3965d8d0
See #490 discussion. This reverts commit1278859d31
, reversing changes made to0c020c98f9
. Conflicts: pkgs/desktops/xfce/core/xfce4-session.nix (take master) pkgs/lib/misc.nix (auto)
29 lines
790 B
Nix
29 lines
790 B
Nix
{ fetchurl, stdenv, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "poppler-data-0.4.5";
|
|
|
|
src = fetchurl {
|
|
url = "http://poppler.freedesktop.org/${name}.tar.gz";
|
|
sha256 = "1zbh1zd083wfwrcw7vxc2bn32h42y6iyh24syxcb3r5ggd2vr41i";
|
|
};
|
|
|
|
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;
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
|
};
|
|
}
|