nixpkgs/pkgs/tools/misc/moreutils/default.nix

35 lines
1.1 KiB
Nix
Raw Normal View History

2017-06-20 19:42:10 +01:00
{ stdenv, fetchgit, libxml2, libxslt, docbook-xsl, docbook_xml_dtd_44, perl, IPCRun, TimeDate, TimeDuration, makeWrapper, darwin }:
2014-12-14 11:49:07 +00:00
with stdenv.lib;
stdenv.mkDerivation rec {
name = "moreutils-${version}";
2018-01-31 20:56:01 +00:00
version = "0.62";
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}";
sha256 = "0sk7rgqsqbdwr69mh7y4v9lv4v0nfmsrqgvbpy2gvy82snhfzar2";
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
propagatedBuildInputs = [ perl IPCRun TimeDate TimeDuration ];
buildFlags = "CC=cc";
2014-12-14 11:49:07 +00:00
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/;
2017-05-28 19:00:07 +01:00
maintainers = with maintainers; [ koral pSub ];
2016-05-09 19:32:32 +01:00
platforms = platforms.all;
2014-12-14 11:49:07 +00:00
};
}