moreutils: fix depends for strictDeps = true

Without the change `config.strictDepsByDefault = true` fails build as:

    bash: line 1: pod2man: command not found
This commit is contained in:
Sergei Trofimovich 2022-06-21 19:19:35 +01:00
parent 0105d57371
commit 58a59bc5fa

View file

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