blob: d53bb7aa73210c7cb69242908dd174ec3f370ef5 (
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
78
79
80
81
82
|
;;; Mastodon Packages Module for PantherX
;;; Author: Fakhri Sajadi (f.sajadi@pantherx.org)
;;;
(define-module (px packages mastodon)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix download)
#:use-module (guix packages)
#:use-module (guix build-system cmake)
#:use-module (guix build-system trivial)
#:use-module (guix utils)
#:use-module (gnu packages compression)
#:use-module (guix git-download)
#:use-module (px packages common)
#:use-module (gnu packages networking)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages curl)
#:use-module (gnu packages web)
#:use-module (gnu packages documentation)
#:use-module (gnu packages tls)
#:use-module (gnu packages serialization)
#:use-module (px packages common)
#:use-module (px packages networking))
(define-public mastodonpp
(package
(name "mastodonpp")
(version "0.5.7")
(source
(origin
(method url-fetch)
(uri (string-append
"https://schlomp.space/tastytea/mastodonpp/archive/" version ".tar.gz"))
(sha256
(base32
"1vga22c85r86hidvfqysfj01d2y6w69m9rkmc1nsr8ffglcw83qy"))))
(build-system cmake-build-system)
(arguments
`(
#:tests? #f))
(inputs `(
("curl" ,curl)))
(native-inputs `(
("pkg-config" ,pkg-config)))
(home-page "https://schlomp.space/tastytea/mastodonpp")
(synopsis "C++ library for working with Mastodon REST API")
(description "Mastodonpp is a C++ wrapper for the Mastodon API.
You submit an API call and get the raw JSON that you can then transform into easy to use abstractions.")
(license license:expat)))
(define-public px-mastodon-service
(package
(name "px-mastodon-service")
(version "0.3.6")
(source
(origin
(method url-fetch)
(uri (string-append
"https://source.pantherx.org/px-mastodon-service_v" version ".tgz"))
(sha256
(base32
"0v7qmimrxqk4d3c4x3f7lmxf976bb099xyrqn1wg6ypsm6myf04d"))))
(build-system cmake-build-system)
(arguments
`(
#:tests? #f))
(inputs `(
("mastodonpp" ,mastodonpp)
("rapidjson" ,rapidjson)
("yaml-cpp", yaml-cpp)
("openssl" ,openssl)
("curl" ,curl)
("nng" ,nng-1.5)
("zlib", zlib)
("capnproto", capnproto-0.9)))
(native-inputs `(
("pkg-config" ,pkg-config)
))
(home-page "https://www.pantherx.org/")
(synopsis "PantherX Mastodon Management Service")
(description "A Mastodon API.")
(license license:expat)))
|