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