at 16.09-beta 31 lines 1.1 kB view raw
1{ stdenv, fetchurl, libxml2, libxslt, docbook-xsl, docbook_xml_dtd_44, perl, IPCRun, TimeDate, TimeDuration, makeWrapper }: 2 3with stdenv.lib; 4stdenv.mkDerivation rec { 5 name = "moreutils-${version}"; 6 version = "0.59"; 7 8 src = fetchurl { 9 url = "http://ftp.de.debian.org/debian/pool/main/m/moreutils/moreutils_${version}.orig.tar.gz"; 10 sha256 = "1d6ik3j4lwp90vb93p7yv60k6vk2chz448d1z9xrmxvv371i33m4"; 11 }; 12 13 preBuild = '' 14 substituteInPlace Makefile --replace /usr/share/xml/docbook/stylesheet/docbook-xsl ${docbook-xsl}/xml/xsl/docbook 15 ''; 16 17 buildInputs = [ libxml2 libxslt docbook-xsl docbook_xml_dtd_44 makeWrapper ]; 18 19 propagatedBuildInputs = [ perl IPCRun TimeDate TimeDuration ]; 20 21 installFlags = "PREFIX=$(out)"; 22 23 postInstall = "wrapProgram $out/bin/chronic --prefix PERL5LIB : $PERL5LIB"; 24 25 meta = { 26 description = "Growing collection of the unix tools that nobody thought to write long ago when unix was young"; 27 homepage = https://joeyh.name/code/moreutils/; 28 maintainers = with maintainers; [ koral ]; 29 platforms = platforms.all; 30 }; 31}