From: John J Foerch <jjfoerch@earthlink.net>
To: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add di.
Date: Mon, 04 Jul 2016 11:18:50 -0400 [thread overview]
Message-ID: <87k2h18m91.fsf@hecubus.retroj.net> (raw)
In-Reply-To: 87eg79kims.fsf@gmail.com
[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]
Alex Kost <alezost@gmail.com> writes:
> John J Foerch (2016-07-04 06:47 +0300) wrote:
>
>> John J Foerch <jjfoerch@earthlink.net> writes:
>>
>>> Leo Famulari <leo@famulari.name> writes:
>>>
>>>> On Sat, Jul 02, 2016 at 03:13:52PM -0400, John J Foerch wrote:
>>>>> * gnu/packages/admin.scm (di): New variable.
>>>>
>>>> Thanks!
>>>>
>>>>> + (arguments
>>>>> + `(#:phases
>>>>> + (modify-phases %standard-phases
>>>>> + (delete 'configure)
>>>>> + (delete 'check)
>>>>
>>>> Did you try setting `#:test-target "test"` in the arguments? The
>>>> Makefile has a test target.
>>>>
>>>
>>> I didn't know about that. I'll try it out.
>>>
>> A test relating to an included perl module Filesys::di fails. I hadn't
>> intended to include that module in the package, as all I'm interested in
>> is the 'di' binary. Given that, I would suggest that we bypass the
>> tests.
>
> As for me, I would also disable the tests. All these handmade Makefiles
> in all sub-directories are a nightmare. I think trying to figure out
> what is needed to run the tests doesn't worth it.
>
> Also don't forget to add a copyright line for yourself in the beginning
> of "admin.scm".
Here is an updated patch:
[-- Attachment #2: gnu: Add di. --]
[-- Type: text/x-diff, Size: 2160 bytes --]
From 05098e58a85149c96597bbacec5f0f9ef200d299 Mon Sep 17 00:00:00 2001
From: "John J. Foerch" <jjfoerch@earthlink.net>
Date: Sat, 2 Jul 2016 15:08:30 -0400
Subject: [PATCH] gnu: Add di.
* gnu/packages/admin.scm (di): New variable.
---
gnu/packages/admin.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 415a35a..0fd2c87 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -11,6 +11,7 @@
;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Peter Feigl <peter.feigl@nexoid.at>
+;;; Copyright © 2016 John J. Foerch <jjfoerch@earthlink.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1708,3 +1709,34 @@ throughput (in the same interval).")
"The Fuck tries to match a rule for a previous, mistyped command, creates
a new command using the matched rule, and runs it.")
(license license:x11)))
+
+(define-public di
+ (package
+ (name "di")
+ (version "4.42")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://gentoo.com/di/di-" version ".tar.gz"))
+ (sha256
+ (base32 "1i6m9zdnidn8268q1lz9fd8payk7s4pgwh5zlam9rr4dy6h6a67n"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (delete 'check)
+ (add-before 'build 'setup-environment
+ (lambda* (#:key outputs #:allow-other-keys)
+ (setenv "CC" "gcc")
+ (setenv "prefix" (assoc-ref outputs "out"))
+ #t)))
+ #:make-flags (list "-e")))
+ (home-page "https://www.gentoo.com/di/")
+ (synopsis "Advanced df like disk information utility")
+ (description
+ "'di' is a disk information utility, displaying everything
+(and more) that your @code{df} command does. It features the ability to
+display your disk usage in whatever format you prefer. It is designed to be
+highly portable. Great for heterogenous networks.")
+ (license license:zlib)))
--
2.9.0
next prev parent reply other threads:[~2016-07-04 15:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-02 19:13 [PATCH] gnu: Add di John J Foerch
2016-07-03 21:02 ` Leo Famulari
2016-07-03 22:03 ` John J Foerch
2016-07-04 3:47 ` John J Foerch
2016-07-04 6:43 ` Alex Kost
2016-07-04 15:18 ` John J Foerch [this message]
2016-07-04 19:07 ` Leo Famulari
2016-07-05 1:53 ` John J Foerch
2016-07-07 16:30 ` John J Foerch
2016-07-07 17:37 ` Leo Famulari
2016-07-08 7:27 ` Alex Kost
2016-07-08 0:40 ` Leo Famulari
2016-07-08 14:06 ` John J Foerch
2016-07-04 19:04 ` Leo Famulari
2016-07-05 1:56 ` John J Foerch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k2h18m91.fsf@hecubus.retroj.net \
--to=jjfoerch@earthlink.net \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).