* Add guile-config
@ 2016-02-15 11:43 Alex Sassmannshausen
2016-02-15 17:28 ` Christopher Allan Webber
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Alex Sassmannshausen @ 2016-02-15 11:43 UTC (permalink / raw)
To: guix-devel@gnu.org
[-- Attachment #1: Type: text/plain, Size: 377 bytes --]
Hello,
Attached you should find a working patch for guile-config, a library for
Guile that should make maintaining command-line options and
configuration files for your scripts/programs easier.
I'm preparing a 0.1 Release announcement for this project too.
I ran it through `guix lint` and it seemed to be fine, but let me know
if you have any comments!
Best wishes,
Alex
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Guile Config patch --]
[-- Type: text/x-patch, Size: 1853 bytes --]
From 3666fb9444092710d11a939eba487b5152f51ffe Mon Sep 17 00:00:00 2001
From: Alex Sassmannshausen <alex.sassmannshausen@gmail.com>
Date: Sun, 14 Feb 2016 19:23:24 +0100
Subject: [PATCH] gnu: Add guile-config.
* gnu/packages/guile.scm (guile-config): New variable.
---
gnu/packages/guile.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index e6e7228..ab38af5 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -731,6 +731,33 @@ interface for reading articles in any format.")
(home-page "http://haunt.dthompson.us")
(license gpl3+)))
+(define-public guile-config
+ (package
+ (name "guile-config")
+ (version "0.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://alex.pompo.co/software/" name "-" version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "1yk4xmwp4rl9ral02igppfh9dh4l97k2kmgpkqhy3znjir004v8z"))))
+ (build-system gnu-build-system)
+ (inputs
+ `(("guile" ,guile-2.0)))
+ (synopsis "Guile application configuration parsing library")
+ (description
+ "Guile Config is a library providing a declarative approach to
+application configuration specification. The library provides clean
+configuration declaration forms, and processors that take care of:
+configuration file creation; configuration file parsing; command-line
+parameter parsing using getopt-long; basic GNU command-line parameter
+generation (--help, --usage, --version); automatic output generation for the
+above command-line parameters.")
+ (home-page "https://github.com/a-sassmannshausen/guile-config")
+ (license agpl3+)))
+
(define-public guile-redis
(package
(name "guile-redis")
--
2.6.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: Add guile-config
2016-02-15 11:43 Add guile-config Alex Sassmannshausen
@ 2016-02-15 17:28 ` Christopher Allan Webber
2016-02-15 19:47 ` Christopher Allan Webber
2016-02-15 20:38 ` Efraim Flashner
2 siblings, 0 replies; 6+ messages in thread
From: Christopher Allan Webber @ 2016-02-15 17:28 UTC (permalink / raw)
To: alex.sassmannshausen; +Cc: guix-devel@gnu.org
Alex Sassmannshausen writes:
> Hello,
>
> Attached you should find a working patch for guile-config, a library for
> Guile that should make maintaining command-line options and
> configuration files for your scripts/programs easier.
>
> I'm preparing a 0.1 Release announcement for this project too.
>
> I ran it through `guix lint` and it seemed to be fine, but let me know
> if you have any comments!
>
> Best wishes,
> Alex
Horray! After your FOSDEM talk I'm excited about it :)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Add guile-config
2016-02-15 11:43 Add guile-config Alex Sassmannshausen
2016-02-15 17:28 ` Christopher Allan Webber
@ 2016-02-15 19:47 ` Christopher Allan Webber
2016-02-16 8:47 ` Alex Sassmannshausen
2016-02-15 20:38 ` Efraim Flashner
2 siblings, 1 reply; 6+ messages in thread
From: Christopher Allan Webber @ 2016-02-15 19:47 UTC (permalink / raw)
To: alex.sassmannshausen; +Cc: guix-devel@gnu.org
Alex Sassmannshausen writes:
> Hello,
>
> Attached you should find a working patch for guile-config, a library for
> Guile that should make maintaining command-line options and
> configuration files for your scripts/programs easier.
>
> I'm preparing a 0.1 Release announcement for this project too.
>
> I ran it through `guix lint` and it seemed to be fine, but let me know
> if you have any comments!
>
> Best wishes,
> Alex
I tried building and testing it:
Starting download of /gnu/store/gq2zz95zmmsjkpn7lbwfbna8m4hr56r7-guile-config-0.1.tar.gz
From http://alex.pompo.co/software/guile-config-0.1.tar.gz...
guile-config-0.1.tar.gz 332KiB 100KiB/s 00:03 [####################] 100.0%
output path `/gnu/store/gq2zz95zmmsjkpn7lbwfbna8m4hr56r7-guile-config-0.1.tar.gz' should have sha256 hash `1yk4xmwp4rl9ral02igppfh9dh4l97k2kmgpkqhy3znjir004v8z', instead has `0fcj2d91z7nhm9k79zkc826l8i06khqvp3d641wik9s3hv6qjya2'
So I guess unless I'm being MITM'ed or some other error (I verified
that's the hash I'm seeing with "guix hash" after a wget), it looks like
that hash is wrong?
- Chris
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Add guile-config
2016-02-15 19:47 ` Christopher Allan Webber
@ 2016-02-16 8:47 ` Alex Sassmannshausen
2016-02-16 19:27 ` Christopher Allan Webber
0 siblings, 1 reply; 6+ messages in thread
From: Alex Sassmannshausen @ 2016-02-16 8:47 UTC (permalink / raw)
To: Christopher Allan Webber; +Cc: guix-devel@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]
Hello,
Christopher Allan Webber writes:
> Alex Sassmannshausen writes:
[...]
>
> I tried building and testing it:
>
> Starting download of /gnu/store/gq2zz95zmmsjkpn7lbwfbna8m4hr56r7-guile-config-0.1.tar.gz
> From http://alex.pompo.co/software/guile-config-0.1.tar.gz...
> guile-config-0.1.tar.gz 332KiB 100KiB/s 00:03 [####################] 100.0%
> output path `/gnu/store/gq2zz95zmmsjkpn7lbwfbna8m4hr56r7-guile-config-0.1.tar.gz' should have sha256 hash `1yk4xmwp4rl9ral02igppfh9dh4l97k2kmgpkqhy3znjir004v8z', instead has `0fcj2d91z7nhm9k79zkc826l8i06khqvp3d641wik9s3hv6qjya2'
>
> So I guess unless I'm being MITM'ed or some other error (I verified
> that's the hash I'm seeing with "guix hash" after a wget), it looks like
> that hash is wrong?
>
> - Chris
Thanks for testing. The hash was indeed wrong — which might be
reassuring to you ;-)
I made some last minute changes yesterday and rolled a new release,
without bumping the version number, which of course changed the hash of
the tarball. I forgot to update the Guix patch. Sorry about that!
I have updated the hash and added a copyright line (thanks for the
reminder Efraim!), please find an updated patch attached.
Cheers for the reviews and tests,
Alex
[-- Attachment #2: Revised guile-config patch --]
[-- Type: text/plain, Size: 2188 bytes --]
From f8e7467494c981a5318e6be93e0c0409843d916f Mon Sep 17 00:00:00 2001
From: Alex Sassmannshausen <alex.sassmannshausen@gmail.com>
Date: Sun, 14 Feb 2016 19:23:24 +0100
Subject: [PATCH] gnu: Add guile-config.
* gnu/packages/guile.scm (guile-config): New variable.
---
gnu/packages/guile.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index e6e7228..0643dc6 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2015 Christopher Allan Webber <cwebber@dustycloud.org>
+;;; Copyright © 2016 Alex Sassmannshausen <alex@pompo.co>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -731,6 +732,33 @@ interface for reading articles in any format.")
(home-page "http://haunt.dthompson.us")
(license gpl3+)))
+(define-public guile-config
+ (package
+ (name "guile-config")
+ (version "0.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://alex.pompo.co/software/" name "-" version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0fcj2d91z7nhm9k79zkc826l8i06khqvp3d641wik9s3hv6qjya2"))))
+ (build-system gnu-build-system)
+ (inputs
+ `(("guile" ,guile-2.0)))
+ (synopsis "Guile application configuration parsing library")
+ (description
+ "Guile Config is a library providing a declarative approach to
+application configuration specification. The library provides clean
+configuration declaration forms, and processors that take care of:
+configuration file creation; configuration file parsing; command-line
+parameter parsing using getopt-long; basic GNU command-line parameter
+generation (--help, --usage, --version); automatic output generation for the
+above command-line parameters.")
+ (home-page "https://github.com/a-sassmannshausen/guile-config")
+ (license agpl3+)))
+
(define-public guile-redis
(package
(name "guile-redis")
--
2.6.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: Add guile-config
2016-02-16 8:47 ` Alex Sassmannshausen
@ 2016-02-16 19:27 ` Christopher Allan Webber
0 siblings, 0 replies; 6+ messages in thread
From: Christopher Allan Webber @ 2016-02-16 19:27 UTC (permalink / raw)
To: alex.sassmannshausen; +Cc: guix-devel@gnu.org
Alex Sassmannshausen writes:
> Hello,
>
> Christopher Allan Webber writes:
>
>> Alex Sassmannshausen writes:
>
> [...]
>
>>
>> I tried building and testing it:
>>
>> Starting download of /gnu/store/gq2zz95zmmsjkpn7lbwfbna8m4hr56r7-guile-config-0.1.tar.gz
>> From http://alex.pompo.co/software/guile-config-0.1.tar.gz...
>> guile-config-0.1.tar.gz 332KiB 100KiB/s 00:03 [####################] 100.0%
>> output path `/gnu/store/gq2zz95zmmsjkpn7lbwfbna8m4hr56r7-guile-config-0.1.tar.gz' should have sha256 hash `1yk4xmwp4rl9ral02igppfh9dh4l97k2kmgpkqhy3znjir004v8z', instead has `0fcj2d91z7nhm9k79zkc826l8i06khqvp3d641wik9s3hv6qjya2'
>>
>> So I guess unless I'm being MITM'ed or some other error (I verified
>> that's the hash I'm seeing with "guix hash" after a wget), it looks like
>> that hash is wrong?
>>
>> - Chris
>
> Thanks for testing. The hash was indeed wrong — which might be
> reassuring to you ;-)
>
> I made some last minute changes yesterday and rolled a new release,
> without bumping the version number, which of course changed the hash of
> the tarball. I forgot to update the Guix patch. Sorry about that!
>
> I have updated the hash and added a copyright line (thanks for the
> reminder Efraim!), please find an updated patch attached.
>
> Cheers for the reviews and tests,
>
> Alex
It looks good! I've merged and pushed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Add guile-config
2016-02-15 11:43 Add guile-config Alex Sassmannshausen
2016-02-15 17:28 ` Christopher Allan Webber
2016-02-15 19:47 ` Christopher Allan Webber
@ 2016-02-15 20:38 ` Efraim Flashner
2 siblings, 0 replies; 6+ messages in thread
From: Efraim Flashner @ 2016-02-15 20:38 UTC (permalink / raw)
To: Alex Sassmannshausen; +Cc: guix-devel@gnu.org
[-- Attachment #1: Type: text/plain, Size: 762 bytes --]
On Mon, 15 Feb 2016 12:43:35 +0100
Alex Sassmannshausen <alex.sassmannshausen@gmail.com> wrote:
> Hello,
>
> Attached you should find a working patch for guile-config, a library for
> Guile that should make maintaining command-line options and
> configuration files for your scripts/programs easier.
>
> I'm preparing a 0.1 Release announcement for this project too.
>
> I ran it through `guix lint` and it seemed to be fine, but let me know
> if you have any comments!
>
> Best wishes,
> Alex
>
don't forget the (c) line!
--
Efraim Flashner <efraim@flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-02-16 19:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-15 11:43 Add guile-config Alex Sassmannshausen
2016-02-15 17:28 ` Christopher Allan Webber
2016-02-15 19:47 ` Christopher Allan Webber
2016-02-16 8:47 ` Alex Sassmannshausen
2016-02-16 19:27 ` Christopher Allan Webber
2016-02-15 20:38 ` Efraim Flashner
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).