summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Kądziołka <kuba@kadziolka.net>2020-06-01 02:37:03 +0200
committerJakub Kądziołka <kuba@kadziolka.net>2020-06-20 20:05:55 +0200
commitef6d3b643689953b71fe103e8c6f520b54996f11 (patch)
tree686c1262f3b1a5abcc1ea53c58328ba1f13396e2
parentnews: Add 'fr' translation. (diff)
downloadguix-ef6d3b643689953b71fe103e8c6f520b54996f11.tar.gz
guix-ef6d3b643689953b71fe103e8c6f520b54996f11.tar.bz2
guix-ef6d3b643689953b71fe103e8c6f520b54996f11.tar.xz
gnu: Add hashcash.
* gnu/packages/networking.scm (hashcash): New variable.
-rw-r--r--gnu/packages/networking.scm47
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index e8f398e..1e6f70e 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -38,6 +38,7 @@
38;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de> 38;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
39;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com> 39;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
40;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re> 40;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
41;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
41;;; 42;;;
42;;; This file is part of GNU Guix. 43;;; This file is part of GNU Guix.
43;;; 44;;;
@@ -3287,3 +3288,49 @@ CDP. The goal of LLDP is to provide an inter-vendor compatible mechanism to
3287deliver Link-Layer notifications to adjacent network devices. @code{lldpd} is 3288deliver Link-Layer notifications to adjacent network devices. @code{lldpd} is
3288an implementation of LLDP. It also supports some proprietary protocols.") 3289an implementation of LLDP. It also supports some proprietary protocols.")
3289 (license license:isc))) 3290 (license license:isc)))
3291
3292(define-public hashcash
3293 (package
3294 (name "hashcash")
3295 (version "1.22")
3296 (source
3297 (origin
3298 (method url-fetch)
3299 (uri (string-append "http://www.hashcash.org/source/hashcash-"
3300 version ".tgz"))
3301 (sha256
3302 (base32
3303 "15kqaimwb2y8wvzpn73021bvay9mz1gqqfc40gk4hj6f84nz34h1"))))
3304 (build-system gnu-build-system)
3305 (arguments
3306 `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
3307 #:phases
3308 (modify-phases %standard-phases
3309 (delete 'configure)
3310 ;; No tests available.
3311 (delete 'check)
3312 (replace 'install
3313 (lambda* (#:key outputs #:allow-other-keys)
3314 (let* ((outdir (assoc-ref outputs "out"))
3315 (bindir (string-append outdir "/bin"))
3316 (mandir (string-append outdir "/share/man/man1"))
3317 (docdir (string-append outdir "/share/doc/hashcash-" ,version)))
3318 ;; Install manually, as we don't need the `sha1' binary
3319 (install-file "hashcash" bindir)
3320 (install-file "hashcash.1" mandir)
3321 (install-file "README" docdir)
3322 (install-file "LICENSE" docdir)
3323 (install-file "CHANGELOG" docdir)
3324 #t))))))
3325 (home-page "https://www.hashcash.org/")
3326 (synopsis "Denial-of-service countermeasure")
3327 (description "Hashcash is a proof-of-work algorithm, which has been used
3328as a denial-of-service countermeasure technique in a number of systems.
3329
3330A hashcash stamp constitutes a proof-of-work which takes a parametrizable
3331amount of work to compute for the sender. The recipient can verify received
3332hashcash stamps efficiently.
3333
3334This package contains a command-line tool for computing and verifying hashcash
3335stamps.")
3336 (license license:public-domain)))