git.iko.soy/typeable/nixpkgs
on master help sign in
New package: moreutils-0.54
commit421b3ebe25b366b91dd8b0be94468a908c9e9858 authorkoral <koral@mailoo.org> dateSun 14 Dec 2014, 12:49 (12 years ago) parent3750da1
2 files changed+35
pkgs/tools/misc/moreutils/default.nix+30 pkgs/top-level/all-packages.nix+5
pkgs/tools/misc/moreutils/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ stdenv, fetchurl, libxml2, libxslt, docbook-xsl, perl, IPCRun, TimeDate, TimeDuration, makeWrapper }:
2+
3+with stdenv.lib;
4+stdenv.mkDerivation rec {
5+ name = "moreutils-${version}";
6+ version = "0.54";
7+
8+ src = fetchurl {
9+ url = "http://ftp.de.debian.org/debian/pool/main/m/moreutils/moreutils_${version}.orig.tar.gz";
10+ sha256 = "17sj7d4l69gc7l17awwvq44rl137qc0lmi41z04apj5vdd6iqa2h";
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 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+ };
30+}
pkgs/top-level/all-packages.nix+5
@@ -1768,6 +1768,11 @@ let
17681768
17691769 monit = callPackage ../tools/system/monit { };
17701770
1771+ moreutils = callPackage ../tools/misc/moreutils {
1772+ inherit (perlPackages) IPCRun TimeDate TimeDuration;
1773+ docbook-xsl = docbook_xsl;
1774+ };
1775+
17711776 mosh = callPackage ../tools/networking/mosh {
17721777 inherit (perlPackages) IOTty;
17731778 };