2015-07-29 14:39:51 +01:00
|
|
|
{ stdenv, fetchurl, libxml2, libxslt, docbook-xsl, docbook_xml_dtd_44, perl, IPCRun, TimeDate, TimeDuration, makeWrapper }:
|
2014-12-14 11:49:07 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "moreutils-${version}";
|
2016-06-05 14:31:15 +01:00
|
|
|
version = "0.59";
|
2014-12-14 11:49:07 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.de.debian.org/debian/pool/main/m/moreutils/moreutils_${version}.orig.tar.gz";
|
2016-06-05 14:31:15 +01:00
|
|
|
sha256 = "1d6ik3j4lwp90vb93p7yv60k6vk2chz448d1z9xrmxvv371i33m4";
|
2014-12-14 11:49:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace Makefile --replace /usr/share/xml/docbook/stylesheet/docbook-xsl ${docbook-xsl}/xml/xsl/docbook
|
|
|
|
'';
|
|
|
|
|
2015-07-29 14:39:51 +01:00
|
|
|
buildInputs = [ libxml2 libxslt docbook-xsl docbook_xml_dtd_44 makeWrapper ];
|
2014-12-14 11:49:07 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ perl IPCRun TimeDate TimeDuration ];
|
|
|
|
|
|
|
|
installFlags = "PREFIX=$(out)";
|
|
|
|
|
|
|
|
postInstall = "wrapProgram $out/bin/chronic --prefix PERL5LIB : $PERL5LIB";
|
|
|
|
|
|
|
|
meta = {
|
2015-04-28 09:54:58 +01:00
|
|
|
description = "Growing collection of the unix tools that nobody thought to write long ago when unix was young";
|
2014-12-14 11:49:07 +00:00
|
|
|
homepage = https://joeyh.name/code/moreutils/;
|
|
|
|
maintainers = with maintainers; [ koral ];
|
2016-05-09 19:32:32 +01:00
|
|
|
platforms = platforms.all;
|
2014-12-14 11:49:07 +00:00
|
|
|
};
|
|
|
|
}
|