* [bug#29718] [PATCH] gnu: Add hungrycat.
@ 2017-12-15 7:29 Tobias Geerinckx-Rice
2017-12-15 19:05 ` Tobias Geerinckx-Rice
2017-12-22 1:31 ` bug#29718: " Tobias Geerinckx-Rice
0 siblings, 2 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2017-12-15 7:29 UTC (permalink / raw)
To: 29718
* gnu/packages/admin.scm (hungrycat): New public variable.
---
Good morning Guix!
‘Patch’ submitted upstream, hopefully making the snippet unnecessary by
the time this is merged.
Kind regards,
T G-R
gnu/packages/admin.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index e97fa79ac..ee95743dc 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2333,3 +2333,44 @@ application, collecting the information received.")
;; 'src/siphash24.c' is the SipHash reference implementation, which
;; bears a CC0 Public Domain Dedication.
(license license:agpl3+)))
+
+(define-public hungrycat
+ (package
+ (name "hungrycat")
+ (version "0.4")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/jwilk/hungrycat/"
+ "releases/download/" version "/"
+ name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0yvmz5apfkw0kwx6bzj8svfln7wic1ivv4brifgg95r8m9aglq5r"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Makefile.in installs a copy of the hungrycat binary as man
+ ;; page. Assume this isn't some kind of statement and fix it.
+ ;; Reported as <https://github.com/jwilk/hungrycat/pull/1>
+ '(begin
+ (substitute* "Makefile.in"
+ (("install -m644 \\$\\(<\\)")
+ "install -m644 doc/$(<).1"))
+ #t))))
+ (build-system gnu-build-system)
+ (native-inputs
+ ;; For tests.
+ `(("python" ,python-wrapper)
+ ("python-nose" ,python-nose)))
+ (arguments
+ `(#:test-target "test"))
+ (synopsis "A single tool that combines @command{cat} & @command{rm}")
+ (description
+ "hungrycat prints the contents of a file to standard output, while
+simultaneously freeing the disk space it occupied. It is useful if you need
+to process a large file, don't have enough space to store both the input and
+output files, and don't need the input file afterwards.
+While similar in principle to running @command{cat} immediately followed by
+@command{rm}, @command{hungrycat} actually frees blocks as soon as they are
+printed and before the entire file has even been read.")
+ (home-page "https://jwilk.net/software/hungrycat")
+ (license license:expat)))
--
2.15.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#29718] [PATCH] gnu: Add hungrycat.
2017-12-15 7:29 [bug#29718] [PATCH] gnu: Add hungrycat Tobias Geerinckx-Rice
@ 2017-12-15 19:05 ` Tobias Geerinckx-Rice
2017-12-22 1:31 ` bug#29718: " Tobias Geerinckx-Rice
1 sibling, 0 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2017-12-15 19:05 UTC (permalink / raw)
To: 29718
* gnu/packages/admin.scm (hungrycat): New public variable.
---
10/10 would upstream again. Here's an updated patch.
gnu/packages/admin.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index e97fa79ac..4227fa794 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2333,3 +2333,34 @@ application, collecting the information received.")
;; 'src/siphash24.c' is the SipHash reference implementation, which
;; bears a CC0 Public Domain Dedication.
(license license:agpl3+)))
+
+(define-public hungrycat
+ (package
+ (name "hungrycat")
+ (version "0.4.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/jwilk/hungrycat/"
+ "releases/download/" version "/"
+ name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "03fc1zsrf99lvxa7b4ps6pbi43304wbxh1f6ci4q0vkal370yfwh"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ ;; For tests.
+ `(("python" ,python-wrapper)
+ ("python-nose" ,python-nose)))
+ (arguments
+ `(#:test-target "test"))
+ (synopsis "A single tool that combines @command{cat} & @command{rm}")
+ (description
+ "hungrycat prints the contents of a file to standard output, while
+simultaneously freeing the disk space it occupied. It is useful if you need
+to process a large file, don't have enough space to store both the input and
+output files, and don't need the input file afterwards.
+While similar in principle to running @command{cat} immediately followed by
+@command{rm}, @command{hungrycat} actually frees blocks as soon as they are
+printed and before the entire file has even been read.")
+ (home-page "https://jwilk.net/software/hungrycat")
+ (license license:expat)))
--
2.15.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#29718: [PATCH] gnu: Add hungrycat.
2017-12-15 7:29 [bug#29718] [PATCH] gnu: Add hungrycat Tobias Geerinckx-Rice
2017-12-15 19:05 ` Tobias Geerinckx-Rice
@ 2017-12-22 1:31 ` Tobias Geerinckx-Rice
1 sibling, 0 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2017-12-22 1:31 UTC (permalink / raw)
To: 29718-done
Pushed as 82d57f126c87f11acf08e7834b9f135cce849b45.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-22 1:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-15 7:29 [bug#29718] [PATCH] gnu: Add hungrycat Tobias Geerinckx-Rice
2017-12-15 19:05 ` Tobias Geerinckx-Rice
2017-12-22 1:31 ` bug#29718: " Tobias Geerinckx-Rice
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.