emacs.pkgs.pdf-tools: Fix darwin build
As reported in https://github.com/NixOS/nixpkgs/pull/114484#discussion_r587722662
This commit is contained in:
parent
6b746880b9
commit
e92d63eece
1 changed files with 12 additions and 8 deletions
|
@ -141,14 +141,18 @@ let
|
||||||
buildInputs = old.buildInputs ++ [ pkgs.libpng pkgs.zlib pkgs.poppler ];
|
buildInputs = old.buildInputs ++ [ pkgs.libpng pkgs.zlib pkgs.poppler ];
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
make server/epdfinfo
|
make server/epdfinfo
|
||||||
remove-references-to \
|
remove-references-to ${lib.concatStringsSep " " (
|
||||||
-t ${pkgs.stdenv.cc.libc.dev} \
|
map (output: "-t " + output) (
|
||||||
-t ${pkgs.glib.dev} \
|
[
|
||||||
-t ${pkgs.libpng.dev} \
|
pkgs.glib.dev
|
||||||
-t ${pkgs.poppler.dev} \
|
pkgs.libpng.dev
|
||||||
-t ${pkgs.zlib.dev} \
|
pkgs.poppler.dev
|
||||||
-t ${pkgs.cairo.dev} \
|
pkgs.zlib.dev
|
||||||
server/epdfinfo
|
pkgs.cairo.dev
|
||||||
|
]
|
||||||
|
++ lib.optional pkgs.stdenv.isLinux pkgs.stdenv.cc.libc.dev
|
||||||
|
)
|
||||||
|
)} server/epdfinfo
|
||||||
'';
|
'';
|
||||||
recipe = pkgs.writeText "recipe" ''
|
recipe = pkgs.writeText "recipe" ''
|
||||||
(pdf-tools
|
(pdf-tools
|
||||||
|
|
Loading…
Reference in a new issue