mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: Add rust-adblock-0.4.
* gnu/packages/crates-io.scm (rust-adblock-0.4): New variable. * gnu/packages/patches/rust-adblock-ignore-live-tests.patch: New file. * gnu/local.mk: Add patch. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
parent
e5354455e5
commit
ce9b9e7cba
3 changed files with 124 additions and 0 deletions
|
@ -984,6 +984,60 @@ threads. This makes it robust in face of panics (it won't make your program
|
|||
deadlock, like the standard Barrier).")
|
||||
(license (list license:asl2.0 license:expat))))
|
||||
|
||||
(define-public rust-adblock-0.4
|
||||
(package
|
||||
(name "rust-adblock")
|
||||
(version "0.4.1")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/brave/adblock-rust")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(patches (search-patches "rust-adblock-ignore-live-tests.patch"))
|
||||
(sha256
|
||||
(base32
|
||||
"0l2iacwkm66z6wc71wy62x2k5xllx94adrqncicxqsx203c3ljpl"))))
|
||||
(build-system cargo-build-system)
|
||||
(arguments
|
||||
`(#:cargo-inputs
|
||||
(("rust-addr" ,rust-addr-0.14)
|
||||
("rust-base64" ,rust-base64-0.13)
|
||||
("rust-bitflags" ,rust-bitflags-1)
|
||||
("rust-cssparser" ,rust-cssparser-0.25)
|
||||
("rust-flate2" ,rust-flate2-1)
|
||||
("rust-idna" ,rust-idna-0.2)
|
||||
("rust-itertools" ,rust-itertools-0.10)
|
||||
("rust-lifeguard" ,rust-lifeguard-0.6)
|
||||
("rust-once-cell" ,rust-once-cell-1)
|
||||
("rust-percent-encoding"
|
||||
,rust-percent-encoding-2)
|
||||
("rust-regex" ,rust-regex-1)
|
||||
("rust-rmp-serde" ,rust-rmp-serde-0.13)
|
||||
("rust-rmp-serde" ,rust-rmp-serde-0.15)
|
||||
("rust-seahash" ,rust-seahash-3)
|
||||
("rust-selectors" ,rust-selectors-0.21)
|
||||
("rust-serde" ,rust-serde-1)
|
||||
("rust-serde-json" ,rust-serde-json-1)
|
||||
("rust-twoway" ,rust-twoway-0.2)
|
||||
("rust-url" ,rust-url-2))
|
||||
#:cargo-development-inputs
|
||||
(("rust-criterion" ,rust-criterion-0.3)
|
||||
("rust-csv" ,rust-csv-1)
|
||||
("rust-futures" ,rust-futures-0.3)
|
||||
("rust-reqwest" ,rust-reqwest-0.11)
|
||||
("rust-serde-json" ,rust-serde-json-1)
|
||||
("rust-sha2" ,rust-sha2-0.9)
|
||||
("rust-tokio" ,rust-tokio-1.8))))
|
||||
(native-inputs `(("pkg-config" ,pkg-config)
|
||||
("openssl" ,openssl)))
|
||||
(home-page "https://github.com/brave/adblock-rust/")
|
||||
(synopsis "Adblock Plus syntax filter parsing and matching")
|
||||
(description "This package provides native Rust module for Adblock Plus
|
||||
syntax (e.g. EasyList, EasyPrivacy) filter parsing and matching.")
|
||||
(license license:mpl2.0)))
|
||||
|
||||
(define-public rust-addr2line-0.14
|
||||
(package
|
||||
(name "rust-addr2line")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue