-
Notifications
You must be signed in to change notification settings - Fork 1
/
proton-bridge.scm
executable file
·62 lines (59 loc) · 2.33 KB
/
proton-bridge.scm
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
(use-modules (gnu)
(gnu packages base)
(gnu packages gcc)
(gnu packages gl)
(gnu packages glib)
(gnu packages gnome)
(gnu packages gtk)
(gnu packages qt)
(nonguix build-system binary)
(guix download)
(guix packages)
((guix licenses) #:prefix license:))
(define-public proton-bridge
(let ((version "1.8.3"))
(package
(name "protonmail-bridge")
(version version)
;;; Replace with this if downloaded locally:
;; (source (local-file "/path/to/protonmail-bridge_1.8.9-1_amd64.deb" #:recursive? #t))
(source
(origin
(method url-fetch)
(uri "https://protonmail.com/download/bridge/protonmail-bridge_1.8.9-1_amd64.deb")
(sha256
(base32 "06riilfn6429ips4akjnbmxzb30l0x8254bxbi3sldnmsb0y2fbl"))))
(supported-systems '("x86_64-linux"))
(build-system binary-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(replace 'unpack
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((data (string-append (assoc-ref outputs "out") "/data")))
(mkdir-p data)
(invoke "ar" "x" (assoc-ref inputs "source"))
(invoke "tar" "-xz" "-f" "data.tar.gz"))
#t)))
#:strip-binaries? #f
#:patchelf-plan
`(("usr/lib/protonmail/bridge/proton-bridge"
("libc" "gcc:lib" "qtbase" "qtdeclarative" "qtsvg" "libsecret" "gtk" "glib" "libglvnd")))
#:install-plan
`(("usr/lib/protonmail/bridge/proton-bridge" () "bin/proton-bridge"))))
(inputs `(("gcc:lib" ,gcc "lib")
("glu" ,glu)
("libglvnd" ,libglvnd)
("glib" ,glib)
("libsecret" ,libsecret)
("gtk" ,gtk+)
("qtbase" ,qtbase-5)
("qtdeclarative" ,qtdeclarative)
("qtsvg" ,qtsvg)))
(synopsis "ProtonMail Bridge application.")
(description "An application that runs on your computer in the
background and seamlessly encrypts and decrypts your mail as it enters
and leaves your computer.")
(home-page "https://www.protonmail.com/bridge")
(license license:gpl3+))))
proton-bridge