guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: Add ruby-systemu.


From: Ben Woodcroft
Subject: 01/03: gnu: Add ruby-systemu.
Date: Wed, 13 Jan 2016 22:03:13 +0000

benwoodcroft pushed a commit to branch master
in repository guix.

commit 7c033c4627dbcd1ad5996e332976b2b57a0bbb7d
Author: Ben Woodcroft <address@hidden>
Date:   Sat Nov 21 10:02:11 2015 +1000

    gnu: Add ruby-systemu.
    
    * gnu/packages/ruby.scm (ruby-systemu): New variable.
---
 gnu/packages/ruby.scm |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 577be18..dcf2eef 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -2930,3 +2930,31 @@ methods, a @code{Mixin} module for including color 
methods, a @code{Logger}, a
 device.")
     (home-page "http://rubyworks.github.io/ansi";)
     (license license:bsd-2)))
+
+(define-public ruby-systemu
+  (package
+    (name "ruby-systemu")
+    (version "2.6.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "systemu" version))
+       (sha256
+        (base32
+         "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
+    (build-system ruby-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'set-version
+           (lambda _
+             (setenv "VERSION" ,version)
+             #t)))))
+    (synopsis "Capture of stdout/stderr and handling of child processes")
+    (description
+     "Systemu can be used on any platform to return status, stdout, and stderr
+of any command.  Unlike other methods like @code{open3} and @code{popen4}
+there is no danger of full pipes or threading issues hanging your process or
+subprocess.")
+    (home-page "https://github.com/ahoward/systemu";)
+    (license license:ruby)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]