git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #5327 from k0ral/moreutils

New package: moreutils-0.54

commit8ad61fcb109efaf545fec8e046e7b790c327c8eb authorlethalman <lucabru@src.gnome.org> dateSun 14 Dec 2014, 13:33 (12 years ago) parenta7bcba4421b3eb
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
@@ -1774,6 +1774,11 @@ let
17741774
17751775 monit = callPackage ../tools/system/monit { };
17761776
1777+ moreutils = callPackage ../tools/misc/moreutils {
1778+ inherit (perlPackages) IPCRun TimeDate TimeDuration;
1779+ docbook-xsl = docbook_xsl;
1780+ };
1781+
17771782 mosh = callPackage ../tools/networking/mosh {
17781783 inherit (perlPackages) IOTty;
17791784 };