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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2023 Evgenii Lepikhin <johnlepikhin@gmail.com>
;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (johnlepikhin packages shadowplay)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system cargo)
#:use-module (guix git-download)
#:use-module (guix download)
#:use-module (guix git)
#:use-module (guix packages)
#:use-module (gnu packages compression)
#:use-module (gnu packages crates-io)
#:use-module (gnu packages jemalloc)
#:use-module (gnu packages pcre)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages ssh)
#:use-module (gnu packages tls)
#:use-module (gnu packages version-control))
(define-public rust-nom-locate-4
(package
(name "rust-nom-locate")
(version "4.0.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "nom_locate" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0186n5qbpiyhpas3nk8y4ynnbdghl4nx958bkq4a6a9hr8v48y9p"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-bytecount" ,rust-bytecount-0.6)
("rust-nom" ,rust-nom-7))))
(home-page "https://github.com/fflorent/nom_locate")
(synopsis "A special input type for nom to locate tokens")
(description
"The crate provide the LocatedSpan struct that encapsulates the data.")
(license (list license:expat))))
(define-public rust-located-yaml-0
(package
(name "rust-located-yaml")
(version "0.2.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "located_yaml" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0xnx5al5v7d9syspj0irm22alwc3a9adikqxpbyyf6vsz3k8xilv"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-yaml-rust" ,rust-yaml-rust-0.4)
("rust-linked-hash-map" ,rust-linked-hash-map-0.5)
("rust-serde" ,rust-serde-1))))
(home-page "https://github.com/johnlepikhin/located_yaml")
(synopsis "YAML parser with saved positions")
(description
"YAML parser which provides AST with saved tokens positions.")
(license (list license:expat))))
(define-public rust-serde-regex-1
(package
(name "rust-serde-regex")
(version "1.1.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "serde_regex" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1pxsnxb8c198szghk1hvzvhva36w2q5zs70hqkmdf5d89qd6y4x8"))))
(build-system cargo-build-system)
(home-page "https://github.com/tailhook/serde-regex")
(synopsis "A serde wrapper, that can be used to serialize regular expressions as strings.")
(description "A serde wrapper, that can be used to serialize regular expressions as strings.
It's often useful to read regexes from configuration file.")
(license (list license:expat license:asl2.0))))
(define (make-shadowplay version)
(package
(name "shadowplay")
(version version)
(source (git-checkout
(url "https://github.com/mailru/shadowplay")
(commit (string-append "v" version))))
(build-system cargo-build-system)
(arguments
`(
#:phases
(modify-phases
%standard-phases
(add-after 'unpack 'permissions
(lambda _
(delete-file ".cargo/config.toml")
#t)))
#:cargo-inputs
(("rust-anyhow-1" ,rust-anyhow-1)
("rust-env-logger" ,rust-env-logger-0.9)
("rust-lazy-static" ,rust-lazy-static-1)
("rust-log" ,rust-log-0.4)
("rust-nom" ,rust-nom-7)
("rust-serde" ,rust-serde-1)
("rust-serde-json" ,rust-serde-json-1)
("rust-serde-yaml" ,rust-serde-yaml-0.8)
("rust-regex" ,rust-regex-1)
("rust-yaml-rust" ,rust-yaml-rust-0.4)
("rust-linked-hash-map" ,rust-linked-hash-map-0.5)
("rust-structopt" ,rust-structopt-0.3)
("rust-nom-locate" ,rust-nom-locate-4)
("rust-pretty" ,rust-pretty-0.11)
("rust-located-yaml" ,rust-located-yaml-0)
("rust-serde-regex" ,rust-serde-regex-1))))
(native-inputs
`(("pkg-config" ,pkg-config)))
(home-page "https://gitlab.corp.mail.ru/MailBackendTest/devtools/shadowplay")
(synopsis "@command{shadowplay} is Puppet linter, pretty printer and explorer")
(description
"Shadowplay is a utility that has the functionality of checking puppet syntax, a puppet manifest linter, a pretty printer, and a
utility for exploring the Hiera.")
(license (list license:expat license:asl2.0))))
(define-public shadowplay-0.17.1 (make-shadowplay "0.17.1"))
(define-public shadowplay shadowplay-0.17.1)
|