aboutsummaryrefslogtreecommitdiff
path: root/guix.scm
blob: 9b54b9dbb57e8fd5808a8a289cfced915ad004ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
; SPDX-FileCopyrightText: 2020 pukkamustard <pukkamustard@posteo.net>
;
; SPDX-License-Identifier: GPL-3.0-or-later

(use-modules
  (guix packages)
  ((guix licenses) #:prefix license:)
  (guix download)
  (guix git-download)
  (guix build-system gnu)
  (gnu packages)
  (gnu packages databases)
  (gnu packages license)
  (gnu packages crypto)
  (gnu packages autotools)
  (gnu packages guile)
  (gnu packages guile-xyz)
  (gnu packages pkg-config)
  (gnu packages ruby)
  (gnu packages texinfo))

(define-public guile-sodium
  (package
    (name "guile-sodium")
    (version "0.1.0")
    (source
      (origin
        (method git-fetch)
        (uri (git-reference
               (url "https://inqlab.net/git/guile-sodium.git")
               (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256 (base32 "189jsj87hycs57a54x0b9lifwvhr63nypb9vfxdrq7rwrpcvi5f8"))))
    (build-system gnu-build-system)
    (arguments `())
    (native-inputs
      `(("autoconf" ,autoconf)
        ("automake" ,automake)
        ("pkg-config" ,pkg-config)
        ("texinfo" ,texinfo)))
    (inputs `(("guile" ,guile-3.0)))
    (propagated-inputs `(("libsodium" ,libsodium)))
    (synopsis "Guile bindings to the libsodium cryptographic library.")
    (description
     "This package provides Guile bindings to the libsodium cryptographic library
which provides core cryptographic primitives needed to build higher-level
tools.")
    (home-page "https://inqlab.net/git/guile-sodium.git")
    (license license:gpl3+)))

(package
  (name "guile-eris")
  (version "0.1")
  (source "./guile-eris-0.1.tar.gz")
  (build-system gnu-build-system)
  (arguments '())
  (native-inputs
   `(("autoconf" ,autoconf)
     ("automake" ,automake)
     ("pkg-config" ,pkg-config)
     ("texinfo" ,texinfo)
     ("guile-hall" ,guile-hall)
     ("reuse" ,reuse)
     ("guile-srfi-180" ,guile-srfi-180) ;only for testing
     ("asciidoctor" ,ruby-asciidoctor)))
  (inputs `(("guile" ,guile-3.0)))
  (propagated-inputs
   `(("guile-sodium" ,guile-sodium)
     ("guile-json" ,guile-json)))
  (synopsis
   "Guile implementation of Encoding for Robust Immutable Storage (ERIS)")
  (description
   "guile-eris is the reference implementation of Encoding for Robust Immutable Storage (ERIS). ERIS allows arbirtary content to be encoded into uniformly sized, encrypted blocks that can be reassembled using a short read-capability.")
  (home-page
   "https://gitlab.com/openengiadina/eris")
  (license license:gpl3+))