emacs.pkgs.pdf-tools: Fix darwin build

As reported in https://github.com/NixOS/nixpkgs/pull/114484#discussion_r587722662
This commit is contained in:
adisbladis 2021-03-04 21:47:37 +02:00
parent 6b746880b9
commit e92d63eece
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -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