gtk-doc: fix on darwin

We can't use shell scripts as shebangs so we drop using .withPackages
and just add pygments to the build env to satiate meson's checks.

https://github.com/NixOS/nixpkgs/pull/71221#issuecomment-543372945
This commit is contained in:
worldofpeace 2019-10-17 17:46:31 -04:00
parent d2c1c51ebc
commit 62e029cc2b

View file

@ -13,15 +13,6 @@
, withDblatex ? false, dblatex
}:
let
# Needed for https://gitlab.gnome.org/GNOME/gtk-doc/blob/GTK_DOC_1_32/meson.build#L42
python = python3.withPackages (p: with p; [
pygments
]);
in
stdenv.mkDerivation rec {
pname = "gtk-doc";
version = "1.32";
@ -51,7 +42,8 @@ stdenv.mkDerivation rec {
docbook_xsl
libxslt
pkgconfig
python
python3
python3.pkgs.pygments # Needed for https://gitlab.gnome.org/GNOME/gtk-doc/blob/GTK_DOC_1_32/meson.build#L42
libxml2Python
]
++ stdenv.lib.optional withDblatex dblatex