guix-commits
[Top][All Lists]
Advanced

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

04/10: gnu: Add ruby-sys-filesystem.


From: guix-commits
Subject: 04/10: gnu: Add ruby-sys-filesystem.
Date: Wed, 27 May 2020 15:52:56 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 9c566d1b23f574298d1ff0fc1d2a904a441ec7b3
Author: Marius Bakke <marius@devup.no>
AuthorDate: Wed May 27 15:07:52 2020 +0200

    gnu: Add ruby-sys-filesystem.
    
    * gnu/packages/ruby.scm (ruby-sys-filesystem): New public variable.
---
 gnu/packages/ruby.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 2ab6dc2..e32f93b 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -9320,6 +9320,35 @@ the Thin library.")
     (home-page "https://github.com/sj26/skinny";)
     (license license:expat)))
 
+(define-public ruby-sys-filesystem
+  (package
+    (name "ruby-sys-filesystem")
+    (version "1.3.4")
+    (source (origin
+              (method url-fetch)
+              (uri (rubygems-uri "sys-filesystem" version))
+              (sha256
+               (base32
+                "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01"))))
+    (build-system ruby-build-system)
+    (arguments
+     '(#:phases (modify-phases %standard-phases
+                  (add-before 'check 'set-HOME
+                    (lambda _
+                      ;; Some tests attempt to stat $HOME.  Let them.
+                      (setenv "HOME" "/tmp")
+                      #t)))))
+    (propagated-inputs
+     `(("ruby-ffi" ,ruby-ffi)))
+    (native-inputs
+     `(("ruby-mkmf-lite" ,ruby-mkmf-lite)))
+    (synopsis "Gather file system information")
+    (description
+     "The @code{sys-filesystem} library provides a cross-platform interface
+for gathering file system information, such as disk space and mount points.")
+    (home-page "https://github.com/djberg96/sys-filesystem";)
+    (license license:asl2.0)))
+
 (define-public mailcatcher
   (package
     (name "mailcatcher")



reply via email to

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