summaryrefslogtreecommitdiff
path: root/guix/vkraus/packages/email-key-rotation.scm
blob: fb3dfde5090b45d12c6075d5feba6f0cde43d279 (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
(define-module (vkraus packages email-key-rotation)
  #:use-module (guix packages)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix git-download)
  #:use-module (guix build-system guile)
  #:use-module (guix gexp)
  #:use-module (gnu packages guile)
  #:use-module (gnu packages tls)
  #:declarative? #t)

(define-public email-key-rotation
  (package
   (name "email-key-rotation")
   (version "0.0.6")
   (source
    (origin
     (method git-fetch)
     (uri (git-reference
	   (url "https://labo.planete-kraus.eu/email-key-rotation.git")
	   (commit version)))
     (sha256
      (base32
       "0g186gw4ymwh28ir5j1i58f4cb6ipnp5qfs2i5iwf6gjrxk1k4hx"))))
   (build-system guile-build-system)
   (arguments
    (list
     #:source-directory "guile"
     #:phases
     #~(modify-phases
	%standard-phases
	(add-after
	 'unpack 'set-openssl-binary
	 (lambda* (#:key inputs #:allow-other-keys)
	   (substitute*
	    "guile/email-key-rotation/openssl.scm"
	    (("/usr/bin/openssl")
	     (search-input-file inputs "bin/openssl"))))))))
   (native-inputs
    (list guile-3.0))
   (inputs
    (list guile-3.0 openssl))
   (propagated-inputs
    (list guile-json-4))
   (home-page "https://labo.planete-kraus.eu/email-key-rotation.git")
   (synopsis "A simple library to help rotate DKIM and SRS secrets")
   (description
    "This package can help rotate DKIM keys and SRS secrets, and
 publish DNS records to Gandi LiveDNS.")
   (license license:agpl3+)))