mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
72d7e4048c
(Implicitly fixes build, since 0.55 source has disappeared.) Also add needed "docbook_xml_dtd_44" dependency for the new version.
31 lines
1.0 KiB
Nix
31 lines
1.0 KiB
Nix
{ stdenv, fetchurl, libxml2, libxslt, docbook-xsl, docbook_xml_dtd_44, perl, IPCRun, TimeDate, TimeDuration, makeWrapper }:
|
|
|
|
with stdenv.lib;
|
|
stdenv.mkDerivation rec {
|
|
name = "moreutils-${version}";
|
|
version = "0.57";
|
|
|
|
src = fetchurl {
|
|
url = "http://ftp.de.debian.org/debian/pool/main/m/moreutils/moreutils_${version}.orig.tar.gz";
|
|
sha256 = "078dpkwwwrv8hxnylbc901kib2d1rr3hsja37j6dlpjfcfq58z9s";
|
|
};
|
|
|
|
preBuild = ''
|
|
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 ];
|
|
|
|
propagatedBuildInputs = [ perl IPCRun TimeDate TimeDuration ];
|
|
|
|
installFlags = "PREFIX=$(out)";
|
|
|
|
postInstall = "wrapProgram $out/bin/chronic --prefix PERL5LIB : $PERL5LIB";
|
|
|
|
meta = {
|
|
description = "Growing collection of the unix tools that nobody thought to write long ago when unix was young";
|
|
homepage = https://joeyh.name/code/moreutils/;
|
|
maintainers = with maintainers; [ koral ];
|
|
};
|
|
}
|