1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00

gtk-doc: don't use pythonEnv for binaries

This commit is contained in:
Daiderd Jordan 2018-05-28 19:11:29 +02:00
parent d9e00f8acf
commit 9424d15561
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -1,9 +1,6 @@
{ stdenv, fetchurl, autoreconfHook, pkgconfig, perl, python, libxml2Python, libxslt, which
, docbook_xml_dtd_43, docbook_xsl, gnome-doc-utils, dblatex, gettext, itstool }:
let
pythonEnv = python.withPackages (ps: with ps; [ six ]);
in
, docbook_xml_dtd_43, docbook_xsl, gnome-doc-utils, dblatex, gettext, itstool
}:
stdenv.mkDerivation rec {
name = "gtk-doc-${version}";
@ -22,11 +19,17 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ];
buildInputs =
[ pkgconfig perl pythonEnv libxml2Python libxslt docbook_xml_dtd_43 docbook_xsl
[ pkgconfig perl python libxml2Python libxslt docbook_xml_dtd_43 docbook_xsl
gnome-doc-utils dblatex gettext which itstool
];
configureFlags = "--disable-scrollkeeper";
configureFlags = [ "--disable-scrollkeeper" ];
# Make six available for binaries, python.withPackages creates a wrapper
# but scripts are not allowed in shebangs so we link it into sys.path.
postInstall = ''
ln -s ${python.pkgs.six}/lib/python2.7/site-packages/* $out/share/gtk-doc/python/
'';
doCheck = false; # requires a lot of stuff
doInstallCheck = false; # fails