2018-12-15 03:50:31 +00:00
|
|
|
{ stdenv, fetchgit, libxml2, libxslt, docbook-xsl, docbook_xml_dtd_44, perlPackages, makeWrapper, darwin }:
|
2014-12-14 11:49:07 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "moreutils";
|
2019-01-27 20:16:01 +00:00
|
|
|
version = "0.63";
|
2014-12-14 11:49:07 +00:00
|
|
|
|
2017-05-28 19:00:07 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.joeyh.name/moreutils";
|
|
|
|
rev = "refs/tags/${version}";
|
2019-01-27 20:16:01 +00:00
|
|
|
sha256 = "17sszmcdck4w01hgcq7vd25p2iw3yzvjwx1yf20jg85gzs1dplrd";
|
2014-12-14 11:49:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace Makefile --replace /usr/share/xml/docbook/stylesheet/docbook-xsl ${docbook-xsl}/xml/xsl/docbook
|
|
|
|
'';
|
|
|
|
|
2017-06-20 19:42:10 +01:00
|
|
|
buildInputs = [ libxml2 libxslt docbook-xsl docbook_xml_dtd_44 makeWrapper ]
|
|
|
|
++ optional stdenv.isDarwin darwin.cctools;
|
2014-12-14 11:49:07 +00:00
|
|
|
|
2018-12-15 03:50:31 +00:00
|
|
|
propagatedBuildInputs = with perlPackages; [ perl IPCRun TimeDate TimeDuration ];
|
2014-12-14 11:49:07 +00:00
|
|
|
|
2017-06-21 12:44:17 +01:00
|
|
|
buildFlags = "CC=cc";
|
2014-12-14 11:49:07 +00:00
|
|
|
installFlags = "PREFIX=$(out)";
|
|
|
|
|
2019-02-01 10:28:09 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/chronic --prefix PERL5LIB : $PERL5LIB
|
|
|
|
wrapProgram $out/bin/ts --prefix PERL5LIB : $PERL5LIB
|
|
|
|
'';
|
2014-12-14 11:49:07 +00:00
|
|
|
|
|
|
|
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/;
|
2017-05-28 19:00:07 +01:00
|
|
|
maintainers = with maintainers; [ koral pSub ];
|
2016-05-09 19:32:32 +01:00
|
|
|
platforms = platforms.all;
|
2018-08-06 11:42:49 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2014-12-14 11:49:07 +00:00
|
|
|
};
|
|
|
|
}
|