From 62e029cc2b8242774cd6bed498a2aa8572968f02 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Thu, 17 Oct 2019 17:46:31 -0400 Subject: [PATCH] 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 --- .../tools/documentation/gtk-doc/default.nix | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pkgs/development/tools/documentation/gtk-doc/default.nix b/pkgs/development/tools/documentation/gtk-doc/default.nix index 8898eaa272ab..35d718ecd67b 100644 --- a/pkgs/development/tools/documentation/gtk-doc/default.nix +++ b/pkgs/development/tools/documentation/gtk-doc/default.nix @@ -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