moreutils: fix darwin build

This commit is contained in:
Pascal Wittmann 2017-06-20 20:42:10 +02:00
parent 8fe525b6c7
commit 065bb61330
No known key found for this signature in database
GPG key ID: C899ACE7E2322852

View file

@ -1,4 +1,4 @@
{ stdenv, fetchgit, libxml2, libxslt, docbook-xsl, docbook_xml_dtd_44, perl, IPCRun, TimeDate, TimeDuration, makeWrapper }:
{ stdenv, fetchgit, libxml2, libxslt, docbook-xsl, docbook_xml_dtd_44, perl, IPCRun, TimeDate, TimeDuration, makeWrapper, darwin }:
with stdenv.lib;
stdenv.mkDerivation rec {
@ -15,7 +15,8 @@ stdenv.mkDerivation rec {
substituteInPlace Makefile --replace /usr/share/xml/docbook/stylesheet/docbook-xsl ${docbook-xsl}/xml/xsl/docbook
'';
buildInputs = [ libxml2 libxslt docbook-xsl docbook_xml_dtd_44 makeWrapper ];
buildInputs = [ libxml2 libxslt docbook-xsl docbook_xml_dtd_44 makeWrapper ]
++ optional stdenv.isDarwin darwin.cctools;
propagatedBuildInputs = [ perl IPCRun TimeDate TimeDuration ];