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

31 lines
1011 B
Nix
Raw Normal View History

2014-12-14 11:49:07 +00:00
{ stdenv, fetchurl, libxml2, libxslt, docbook-xsl, perl, IPCRun, TimeDate, TimeDuration, makeWrapper }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "moreutils-${version}";
2015-01-27 00:25:15 +00:00
version = "0.55";
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";
2015-01-27 00:25:15 +00:00
sha256 = "1dcah2jx8dbznn8966xl7sf1jrld2qfh6l6xcmx9dsnf8p8mr7fs";
2014-12-14 11:49:07 +00:00
};
preBuild = ''
substituteInPlace Makefile --replace /usr/share/xml/docbook/stylesheet/docbook-xsl ${docbook-xsl}/xml/xsl/docbook
'';
buildInputs = [ libxml2 libxslt docbook-xsl makeWrapper ];
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 ];
};
}