summary refs log tree commit diff
diff options
context:
space:
mode:
authorlethalman <lucabru@src.gnome.org>2014-12-14 13:33:11 +0100
committerlethalman <lucabru@src.gnome.org>2014-12-14 13:33:11 +0100
commit8ad61fcb109efaf545fec8e046e7b790c327c8eb (patch)
tree788e135a0f730b4619114fac5961532bd744b69a
parenta7bcba42c57e5f9c92c750382a9288f52ff55287 (diff)
parent421b3ebe25b366b91dd8b0be94468a908c9e9858 (diff)
downloadnixlib-8ad61fcb109efaf545fec8e046e7b790c327c8eb.tar
nixlib-8ad61fcb109efaf545fec8e046e7b790c327c8eb.tar.gz
nixlib-8ad61fcb109efaf545fec8e046e7b790c327c8eb.tar.bz2
nixlib-8ad61fcb109efaf545fec8e046e7b790c327c8eb.tar.lz
nixlib-8ad61fcb109efaf545fec8e046e7b790c327c8eb.tar.xz
nixlib-8ad61fcb109efaf545fec8e046e7b790c327c8eb.tar.zst
nixlib-8ad61fcb109efaf545fec8e046e7b790c327c8eb.zip
Merge pull request #5327 from k0ral/moreutils
New package: moreutils-0.54
-rw-r--r--pkgs/tools/misc/moreutils/default.nix30
-rw-r--r--pkgs/top-level/all-packages.nix5
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/misc/moreutils/default.nix b/pkgs/tools/misc/moreutils/default.nix
new file mode 100644
index 000000000000..4c7bb9ad77e1
--- /dev/null
+++ b/pkgs/tools/misc/moreutils/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchurl, libxml2, libxslt, docbook-xsl, perl, IPCRun, TimeDate, TimeDuration, makeWrapper }:
+
+with stdenv.lib;
+stdenv.mkDerivation rec {
+  name = "moreutils-${version}";
+  version = "0.54";
+
+  src = fetchurl {
+    url = "http://ftp.de.debian.org/debian/pool/main/m/moreutils/moreutils_${version}.orig.tar.gz";
+    sha256 = "17sj7d4l69gc7l17awwvq44rl137qc0lmi41z04apj5vdd6iqa2h";
+  };
+
+  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 = {
+    description = "Growing collection of the unix tools that nobody thought to write long ago when unix was young.";
+    homepage = https://joeyh.name/code/moreutils/;
+    maintainers = with maintainers; [ koral ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 1592f3ddf6ff..4d1050d727a9 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1774,6 +1774,11 @@ let
 
   monit = callPackage ../tools/system/monit { };
 
+  moreutils = callPackage ../tools/misc/moreutils {
+    inherit (perlPackages) IPCRun TimeDate TimeDuration;
+    docbook-xsl = docbook_xsl;
+  };
+
   mosh = callPackage ../tools/networking/mosh {
     inherit (perlPackages) IOTty;
   };