Revert "build: cargo-build-system: Disable tests by default."

This reverts commit 37667443074a6de29f7665868f102111d62f0af9.

This change needs more discussion.
This commit is contained in:
Efraim Flashner 2023-10-18 08:30:14 +03:00
parent d45992833b
commit 003dc790fd
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351
15 changed files with 46 additions and 106 deletions

View file

@ -5395,8 +5395,7 @@ (define-public greetd
(base32 "1b79lb0vikh5vwpdlyga6zwzm11gpsd7ghp8zb0q2m6mlqlj5by3")))) (base32 "1b79lb0vikh5vwpdlyga6zwzm11gpsd7ghp8zb0q2m6mlqlj5by3"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-nix" ,rust-nix-0.26) (("rust-nix" ,rust-nix-0.26)
("rust-pam-sys" ,rust-pam-sys-0.5) ("rust-pam-sys" ,rust-pam-sys-0.5)
("rust-rpassword" ,rust-rpassword-5) ("rust-rpassword" ,rust-rpassword-5)
@ -5501,8 +5500,7 @@ (define-public wlgreet
"1k0jmgh0rjbnb49gkvs0a4d7z9xb6pad8v5w5f7my4s0rfpk7wd9")))) "1k0jmgh0rjbnb49gkvs0a4d7z9xb6pad8v5w5f7my4s0rfpk7wd9"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
(list #:tests? #~(not (%current-target-system)) (list #:cargo-inputs
#:cargo-inputs
`(("rust-chrono" ,rust-chrono-0.4) `(("rust-chrono" ,rust-chrono-0.4)
("rust-getopts" ,rust-getopts-0.2) ("rust-getopts" ,rust-getopts-0.2)
("rust-greetd-ipc" ,rust-greetd-ipc-0.9) ("rust-greetd-ipc" ,rust-greetd-ipc-0.9)
@ -5921,7 +5919,6 @@ (define-public du-dust
`(#:cargo-test-flags `(#:cargo-test-flags
(list "--release" "--" (list "--release" "--"
"--skip=test_apparent_size") "--skip=test_apparent_size")
#:tests? ,(not (%current-target-system))
#:install-source? #f #:install-source? #f
#:cargo-inputs (("rust-ansi-term" ,rust-ansi-term-0.12) #:cargo-inputs (("rust-ansi-term" ,rust-ansi-term-0.12)
("rust-atty" ,rust-atty-0.2) ("rust-atty" ,rust-atty-0.2)

View file

@ -2654,7 +2654,6 @@ (define-public circtools
(("find_package\\(biosoup 0.10.0 QUIET\\)") (("find_package\\(biosoup 0.10.0 QUIET\\)")
"find_package(biosoup 0.10.0 CONFIG)") "find_package(biosoup 0.10.0 CONFIG)")
(("GTest_FOUND") "TRUE"))))) (("GTest_FOUND") "TRUE")))))
#:tests? ,(not (%current-target-system))
#:cargo-inputs #:cargo-inputs
(("rust-anyhow" ,rust-anyhow-1) (("rust-anyhow" ,rust-anyhow-1)
("rust-bio" ,rust-bio-0.33) ("rust-bio" ,rust-bio-0.33)
@ -21094,7 +21093,6 @@ (define-public python-gseapy
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
(list (list
#:tests? #~(not (%current-target-system))
#:install-source? #false #:install-source? #false
#:features '(list "extension-module") #:features '(list "extension-module")
#:cargo-test-flags '(list "--features=extension-module") #:cargo-test-flags '(list "--features=extension-module")

View file

@ -268,8 +268,7 @@ (define-public rust-minisign
(base32 "1lmp83bxdg53c4n35fbwr3rkh6178y75fwsn25hf1kn62f2gbdnj")))) (base32 "1lmp83bxdg53c4n35fbwr3rkh6178y75fwsn25hf1kn62f2gbdnj"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-getrandom" ,rust-getrandom-0.2) (("rust-getrandom" ,rust-getrandom-0.2)
("rust-rpassword" ,rust-rpassword-7) ("rust-rpassword" ,rust-rpassword-7)
("rust-scrypt" ,rust-scrypt-0.11)))) ("rust-scrypt" ,rust-scrypt-0.11))))
@ -1606,8 +1605,7 @@ (define-public b3sum
(base32 "05k0vn7gpbvjr925vjc5yzvhiyrmkw9pqmch5fr4ir7s8wiaq2fm")))) (base32 "05k0vn7gpbvjr925vjc5yzvhiyrmkw9pqmch5fr4ir7s8wiaq2fm"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(;; Install the source so that Cargo.toml is installed, because that is
;; Install the source so that Cargo.toml is installed, because that is
;; the only reference to the license information. ;; the only reference to the license information.
#:install-source? #t #:install-source? #t
#:phases #:phases

View file

@ -3513,7 +3513,6 @@ (define-public librsvg
(outputs '("out" "doc" "debug")) (outputs '("out" "doc" "debug"))
(arguments (arguments
(list (list
#:tests? #~(not (%current-target-system))
#:install-source? #f #:install-source? #f
#:modules #:modules
'((guix build cargo-build-system) '((guix build cargo-build-system)

View file

@ -362,7 +362,6 @@ (define-public python-blake3
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
(list (list
#:tests? #~(not (%current-target-system))
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'install 'build-python-module (add-after 'install 'build-python-module
@ -569,7 +568,6 @@ (define-public python-cryptography-rust
(guix build utils) (guix build utils)
(srfi srfi-1) (srfi srfi-1)
(ice-9 match)) (ice-9 match))
#:tests? #~(not (%current-target-system))
#:install-source? #f #:install-source? #f
;; As seen in noxfile.py ;; As seen in noxfile.py
#:cargo-test-flags ''("--release" "--no-default-features") #:cargo-test-flags ''("--release" "--no-default-features")

View file

@ -3053,7 +3053,6 @@ (define-public python-orjson
(assoc-ref py:%standard-phases 'build)) (assoc-ref py:%standard-phases 'build))
(add-after 'build-python-module 'install-python-module (add-after 'build-python-module 'install-python-module
(assoc-ref py:%standard-phases 'install))) (assoc-ref py:%standard-phases 'install)))
#:tests? #~(not (%current-target-system))
#:cargo-inputs #:cargo-inputs
`(("rust-ahash" ,rust-ahash-0.8) `(("rust-ahash" ,rust-ahash-0.8)
("rust-arrayvec" ,rust-arrayvec-0.7) ("rust-arrayvec" ,rust-arrayvec-0.7)

View file

@ -99,8 +99,7 @@ (define-public agate
(base32 "1mhrl4j5r6wzsnwpqsbgzny5vqschyjm3gnk4y88har7skk7j19v")))) (base32 "1mhrl4j5r6wzsnwpqsbgzny5vqschyjm3gnk4y88har7skk7j19v"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-configparser" ,rust-configparser-2) (("rust-configparser" ,rust-configparser-2)
("rust-env-logger" ,rust-env-logger-0.8) ("rust-env-logger" ,rust-env-logger-0.8)
("rust-getopts" ,rust-getopts-0.2) ("rust-getopts" ,rust-getopts-0.2)
@ -139,8 +138,7 @@ (define-public alfis
(base32 "1kgzz92mkyzn7mbsdpik1q21kl38i4almn01k99nww3p0vgx9514")))) (base32 "1kgzz92mkyzn7mbsdpik1q21kl38i4almn01k99nww3p0vgx9514"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-test-flags
#:cargo-test-flags
'("--release" "--" '("--release" "--"
"--skip=dns::client::tests::test_tcp_client" "--skip=dns::client::tests::test_tcp_client"
"--skip=dns::client::tests::test_udp_client") "--skip=dns::client::tests::test_udp_client")
@ -213,8 +211,7 @@ (define-public bat
(base32 "05sj0chxpai26fhk1k7p5m54v3j7n1x64ayx53mcimsj1skdr77m")))) (base32 "05sj0chxpai26fhk1k7p5m54v3j7n1x64ayx53mcimsj1skdr77m"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-ansi-colours" ,rust-ansi-colours-1) (("rust-ansi-colours" ,rust-ansi-colours-1)
("rust-ansi-term" ,rust-ansi-term-0.12) ("rust-ansi-term" ,rust-ansi-term-0.12)
("rust-atty" ,rust-atty-0.2) ("rust-atty" ,rust-atty-0.2)
@ -276,8 +273,7 @@ (define-public diffr
(base32 "1b0mz1ki2ksxni6g49x5l5j9ijpyhc11mywvxr9i9h3nr098nc5l")))) (base32 "1b0mz1ki2ksxni6g49x5l5j9ijpyhc11mywvxr9i9h3nr098nc5l"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:install-source? #f
#:install-source? #f
;; https://github.com/mookid/diffr/issues/79 ;; https://github.com/mookid/diffr/issues/79
#:cargo-test-flags #:cargo-test-flags
'("--release" "--" '("--release" "--"
@ -317,8 +313,7 @@ (define-public drill
(base32 "1m73d7rzi0p5c1hn0081d2235kcyapdza7h0vqf5jhnirpnjn793")))) (base32 "1m73d7rzi0p5c1hn0081d2235kcyapdza7h0vqf5jhnirpnjn793"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-async-trait" ,rust-async-trait-0.1) (("rust-async-trait" ,rust-async-trait-0.1)
("rust-clap" ,rust-clap-2) ("rust-clap" ,rust-clap-2)
("rust-colored" ,rust-colored-1) ("rust-colored" ,rust-colored-1)
@ -359,8 +354,7 @@ (define-public dutree
(base32 "1611h27i8fm3jndscd6w65z8z7w09nnrm61vdgs9kb8ln57gqm8x")))) (base32 "1611h27i8fm3jndscd6w65z8z7w09nnrm61vdgs9kb8ln57gqm8x"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:install-source? #f
#:install-source? #f
#:cargo-inputs #:cargo-inputs
(("rust-getopts" ,rust-getopts-0.2) (("rust-getopts" ,rust-getopts-0.2)
("rust-regex" ,rust-regex-1) ("rust-regex" ,rust-regex-1)
@ -398,8 +392,7 @@ (define-public exa
"1dd7waq2bnxc1xwygqphi8k1g2qzykr6fk0q4rgrhhxp2jd09f04")))) "1dd7waq2bnxc1xwygqphi8k1g2qzykr6fk0q4rgrhhxp2jd09f04"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:install-source? #f
#:install-source? #f
#:cargo-inputs #:cargo-inputs
(("rust-ansi-term" ,rust-ansi-term-0.12) (("rust-ansi-term" ,rust-ansi-term-0.12)
("rust-datetime" ,rust-datetime-0.5) ("rust-datetime" ,rust-datetime-0.5)
@ -485,8 +478,7 @@ (define-public fd
"186217yyb0znfn4jcc9l3i51fhfyb23lhbm3gg084sdrbj6bdnbg")))) "186217yyb0znfn4jcc9l3i51fhfyb23lhbm3gg084sdrbj6bdnbg"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-test-flags
#:cargo-test-flags
'("--release" '("--release"
"--" "--"
;; No user 'root' in the build environment. ;; No user 'root' in the build environment.
@ -577,8 +569,7 @@ (define-public hexyl
"0sipag77196467idbznbk5q5lwhqz85zw7y1pwg9b27jxqyk04rp")))) "0sipag77196467idbznbk5q5lwhqz85zw7y1pwg9b27jxqyk04rp"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-ansi-term" ,rust-ansi-term-0.12) (("rust-ansi-term" ,rust-ansi-term-0.12)
("rust-atty" ,rust-atty-0.2) ("rust-atty" ,rust-atty-0.2)
("rust-clap" ,rust-clap-2) ("rust-clap" ,rust-clap-2)
@ -609,7 +600,6 @@ (define-public hyperfine
`(#:modules ((guix build cargo-build-system) `(#:modules ((guix build cargo-build-system)
(guix build utils) (guix build utils)
(srfi srfi-26)) (srfi srfi-26))
#:tests? ,(not (%current-target-system))
#:cargo-inputs #:cargo-inputs
(("rust-atty" ,rust-atty-0.2) (("rust-atty" ,rust-atty-0.2)
("rust-cfg-if" ,rust-cfg-if-0.1) ("rust-cfg-if" ,rust-cfg-if-0.1)
@ -669,7 +659,6 @@ (define-public i3status-rust
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:features '("pulseaudio" "libpulse-binding") `(#:features '("pulseaudio" "libpulse-binding")
#:tests? ,(not (%current-target-system))
#:install-source? #f #:install-source? #f
#:cargo-inputs #:cargo-inputs
(("rust-chrono" ,rust-chrono-0.4) (("rust-chrono" ,rust-chrono-0.4)
@ -762,8 +751,7 @@ (define-public just
(base32 "0kafd87zmjf7wswyiqakqd2r5b8q3a761ipsihmrg9wr57k5zlis")))) (base32 "0kafd87zmjf7wswyiqakqd2r5b8q3a761ipsihmrg9wr57k5zlis"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-test-flags
#:cargo-test-flags
'("--release" "--" '("--release" "--"
"--skip=functions::env_var_functions" "--skip=functions::env_var_functions"
"--skip=string::shebang_backtick") "--skip=string::shebang_backtick")
@ -867,7 +855,6 @@ (define-public maturin
#:imported-modules ((guix build cargo-build-system) #:imported-modules ((guix build cargo-build-system)
(guix build cargo-utils) (guix build cargo-utils)
,@%pyproject-build-system-modules) ,@%pyproject-build-system-modules)
#:tests? ,(not (%current-target-system))
#:install-source? #f #:install-source? #f
#:cargo-test-flags #:cargo-test-flags
'("--release" "--" '("--release" "--"
@ -1025,8 +1012,7 @@ (define-public ripgrep
"1gv4imhjgxmyxaa996yshcjlakmrjw9pf4rycp90pq675cn9sz7k")))) "1gv4imhjgxmyxaa996yshcjlakmrjw9pf4rycp90pq675cn9sz7k"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-bstr" ,rust-bstr-0.2) (("rust-bstr" ,rust-bstr-0.2)
("rust-clap" ,rust-clap-2) ("rust-clap" ,rust-clap-2)
("rust-grep" ,rust-grep-0.2) ("rust-grep" ,rust-grep-0.2)
@ -1083,8 +1069,7 @@ (define-public rot8
"1m5kzpqq9pgc19lbnh20iaq654lzlmc1m5fc9f73w2vpwqdiw1qf")))) "1m5kzpqq9pgc19lbnh20iaq654lzlmc1m5fc9f73w2vpwqdiw1qf"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs (("rust-clap" ,rust-clap-2)
#:cargo-inputs (("rust-clap" ,rust-clap-2)
("rust-glob" ,rust-glob-0.3) ("rust-glob" ,rust-glob-0.3)
("rust-regex" ,rust-regex-1) ("rust-regex" ,rust-regex-1)
("rust-serde" ,rust-serde-1) ("rust-serde" ,rust-serde-1)
@ -1117,8 +1102,7 @@ (define-public rust-swc
(string-append "\"^" version))))))) (string-append "\"^" version)))))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:install-source? #f
#:install-source? #f
#:cargo-build-flags #:cargo-build-flags
'("--release" "-p" "swc_cli") '("--release" "-p" "swc_cli")
#:cargo-test-flags #:cargo-test-flags
@ -1253,8 +1237,7 @@ (define-public rust-cargo-edit
"19wfjz7z4kqjfjmnq1bl6dhsvskjy6r656fqmbha9dfdspbsnmd0")))) "19wfjz7z4kqjfjmnq1bl6dhsvskjy6r656fqmbha9dfdspbsnmd0"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:install-source? #f
#:install-source? #f
;; error[E0463]: can't find crate for `cargo_test_macro` ;; error[E0463]: can't find crate for `cargo_test_macro`
#:tests? #f #:tests? #f
#:cargo-inputs #:cargo-inputs
@ -1327,8 +1310,7 @@ (define-public git-interactive-rebase-tool
"173spqqpyc00kvfmldjmjfqizh9b4spq4xw4bskd4dny8qcpz28d")))) "173spqqpyc00kvfmldjmjfqizh9b4spq4xw4bskd4dny8qcpz28d"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-test-flags
#:cargo-test-flags
;; https://github.com/MitMaro/git-interactive-rebase-tool/issues/586 ;; https://github.com/MitMaro/git-interactive-rebase-tool/issues/586
'("--release" "--" "--skip=tests::success") '("--release" "--" "--skip=tests::success")
#:cargo-inputs #:cargo-inputs
@ -1372,8 +1354,7 @@ (define-public rust-cbindgen
"0673pq96hs7waavkv58v2pakpxpsfyjvbraa5kyl2b44phgdzcid")))) "0673pq96hs7waavkv58v2pakpxpsfyjvbraa5kyl2b44phgdzcid"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("clap" ,rust-clap-2) (("clap" ,rust-clap-2)
("log" ,rust-log-0.4) ("log" ,rust-log-0.4)
("proc-macro2" ,rust-proc-macro2-1) ("proc-macro2" ,rust-proc-macro2-1)
@ -1402,8 +1383,7 @@ (define-public rust-cbindgen-0.24
(base32 (base32
"1yqxqsz2d0cppd8zwihk2139g5gy38wqgl9snj6rnk8gyvnqsdd6")))) "1yqxqsz2d0cppd8zwihk2139g5gy38wqgl9snj6rnk8gyvnqsdd6"))))
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-clap" ,rust-clap-3) (("rust-clap" ,rust-clap-3)
("rust-heck" ,rust-heck-0.4) ("rust-heck" ,rust-heck-0.4)
("rust-indexmap" ,rust-indexmap-1) ("rust-indexmap" ,rust-indexmap-1)
@ -1448,8 +1428,7 @@ (define-public rust-cbindgen-0.19
(base32 (base32
"1yld9fni9g9mzg4r42zfk79aq9mzm2sfzzjrrx4vir4lp4qqqwiq")))) "1yld9fni9g9mzg4r42zfk79aq9mzm2sfzzjrrx4vir4lp4qqqwiq"))))
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-clap" ,rust-clap-2) (("rust-clap" ,rust-clap-2)
("rust-heck" ,rust-heck-0.3) ("rust-heck" ,rust-heck-0.3)
("rust-indexmap" ,rust-indexmap-1) ("rust-indexmap" ,rust-indexmap-1)
@ -1510,8 +1489,7 @@ (define-public sniffglue
"038wcjiiay825wc8inmn62flklc1adxskg5fmjhmxqnhwmj1k5gn")))) "038wcjiiay825wc8inmn62flklc1adxskg5fmjhmxqnhwmj1k5gn"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-ansi-term" ,rust-ansi-term-0.12) (("rust-ansi-term" ,rust-ansi-term-0.12)
("rust-anyhow" ,rust-anyhow-1) ("rust-anyhow" ,rust-anyhow-1)
("rust-atty" ,rust-atty-0.2) ("rust-atty" ,rust-atty-0.2)
@ -1565,8 +1543,7 @@ (define-public tectonic
(base32 "1q4mz2c32gfypx33zlzgd1q9h4322jrk13fzvsf8h676ylclqzpc")))) (base32 "1q4mz2c32gfypx33zlzgd1q9h4322jrk13fzvsf8h676ylclqzpc"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-build-flags '("--release" "--features" "external-harfbuzz")
#:cargo-build-flags '("--release" "--features" "external-harfbuzz")
#:cargo-inputs #:cargo-inputs
(("rust-atty" ,rust-atty-0.2) (("rust-atty" ,rust-atty-0.2)
("rust-byte-unit" ,rust-byte-unit-4) ("rust-byte-unit" ,rust-byte-unit-4)
@ -1648,8 +1625,7 @@ (define-public treefmt
(base32 "1rarg6rffzl1cf6r167h9p14wr696kwnzr85kwbdy7x7x5zpj5li")))) (base32 "1rarg6rffzl1cf6r167h9p14wr696kwnzr85kwbdy7x7x5zpj5li"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:install-source? #f
#:install-source? #f
#:cargo-inputs #:cargo-inputs
(("rust-anyhow" ,rust-anyhow-1) (("rust-anyhow" ,rust-anyhow-1)
("rust-console" ,rust-console-0.13) ("rust-console" ,rust-console-0.13)
@ -1707,8 +1683,7 @@ (define-public hex
(base32 "03x27nixdlnkkrh85gy4152arp02kpjwq0i9dn9p73lyr24s64lv")))) (base32 "03x27nixdlnkkrh85gy4152arp02kpjwq0i9dn9p73lyr24s64lv"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-ansi-term" ,rust-ansi-term-0.12) (("rust-ansi-term" ,rust-ansi-term-0.12)
("rust-atty" ,rust-atty-0.2) ("rust-atty" ,rust-atty-0.2)
("rust-clap" ,rust-clap-2) ("rust-clap" ,rust-clap-2)
@ -1735,8 +1710,7 @@ (define-public tokei
(base32 "000w549v1bpw7r57xw656p40ywf1gimvxxx5cjnri2js0xg927x4")))) (base32 "000w549v1bpw7r57xw656p40ywf1gimvxxx5cjnri2js0xg927x4"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-aho-corasick" ,rust-aho-corasick-0.7) (("rust-aho-corasick" ,rust-aho-corasick-0.7)
("rust-clap" ,rust-clap-2) ("rust-clap" ,rust-clap-2)
("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5) ("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5)
@ -1789,8 +1763,7 @@ (define-public vivid
(base32 "01fds6dm19bqgqydaa6n051v9l4wh9rb5d6sr9akwp2cc0fs43b7")))) (base32 "01fds6dm19bqgqydaa6n051v9l4wh9rb5d6sr9akwp2cc0fs43b7"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-ansi-colours" ,rust-ansi-colours-1) (("rust-ansi-colours" ,rust-ansi-colours-1)
("rust-clap" ,rust-clap-2) ("rust-clap" ,rust-clap-2)
("rust-dirs" ,rust-dirs-3) ("rust-dirs" ,rust-dirs-3)
@ -1838,7 +1811,6 @@ (define-public watchexec
;; ;;
;; (copy-file "completions/zsh" zsh) ;; (copy-file "completions/zsh" zsh)
(install-file "README.md" doc))))) (install-file "README.md" doc)))))
#:tests? ,(not (%current-target-system))
#:cargo-inputs #:cargo-inputs
(("rust-clap" ,rust-clap-2) (("rust-clap" ,rust-clap-2)
("rust-embed-resource" ,rust-embed-resource-1) ("rust-embed-resource" ,rust-embed-resource-1)
@ -1881,7 +1853,6 @@ (define-public rbw
(substitute* (substitute*
"Cargo.toml" "Cargo.toml"
(("version = \"1.4\"") "version = \"^1\""))))) (("version = \"1.4\"") "version = \"^1\"")))))
#:tests? ,(not (%current-target-system))
#:cargo-inputs #:cargo-inputs
(("rust-aes" ,rust-aes-0.7) (("rust-aes" ,rust-aes-0.7)
("rust-anyhow" ,rust-anyhow-1) ("rust-anyhow" ,rust-anyhow-1)
@ -1954,7 +1925,6 @@ (define-public rust-analyzer
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:rust ,rust-1.64 `(#:rust ,rust-1.64
#:tests? ,(not (%current-target-system))
#:install-source? #f ; virtual manifest #:install-source? #f ; virtual manifest
#:cargo-test-flags #:cargo-test-flags
'("--release" "--lib" "--tests" "--" '("--release" "--lib" "--tests" "--"
@ -2131,8 +2101,7 @@ (define-public rust-cargo-c
"191d0813g4m2g1c1h8ykgrfp00blkbds6pg3zl044iyxaclng29h")))) "191d0813g4m2g1c1h8ykgrfp00blkbds6pg3zl044iyxaclng29h"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-anyhow" ,rust-anyhow-1) (("rust-anyhow" ,rust-anyhow-1)
("rust-cargo" ,rust-cargo-0.69) ("rust-cargo" ,rust-cargo-0.69)
("rust-cargo-util" ,rust-cargo-util-0.2) ("rust-cargo-util" ,rust-cargo-util-0.2)
@ -2173,8 +2142,7 @@ (define-public rtss
(base32 "1r1b6fynkjnpj5p3k209sa13mjvh4k0ghzwnribm48dh9v7lfnnv")))) (base32 "1r1b6fynkjnpj5p3k209sa13mjvh4k0ghzwnribm48dh9v7lfnnv"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-libc" ,rust-libc-0.2) (("rust-libc" ,rust-libc-0.2)
("rust-memchr" ,rust-memchr-2)))) ("rust-memchr" ,rust-memchr-2))))
(home-page "https://github.com/Freaky/rtss") (home-page "https://github.com/Freaky/rtss")
@ -2198,8 +2166,7 @@ (define-public skim
"1d5v9vq8frkdjm7bnw3455h6xf3c277d51il2qasn7r20kwik7ab")))) "1d5v9vq8frkdjm7bnw3455h6xf3c277d51il2qasn7r20kwik7ab"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-atty-0.2" ,rust-atty-0.2) (("rust-atty-0.2" ,rust-atty-0.2)
("rust-beef" ,rust-beef-0.5) ("rust-beef" ,rust-beef-0.5)
("rust-bitflags" ,rust-bitflags-1) ("rust-bitflags" ,rust-bitflags-1)
@ -2284,8 +2251,7 @@ (define-public skim-0.7
(base32 (base32
"1yiyd6fml5hd2l811sckkzmiiq9bd7018ajk4qk3ai4wyvqnw8mv")))) "1yiyd6fml5hd2l811sckkzmiiq9bd7018ajk4qk3ai4wyvqnw8mv"))))
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-bitflags" ,rust-bitflags-1) (("rust-bitflags" ,rust-bitflags-1)
("rust-chrono" ,rust-chrono-0.4) ("rust-chrono" ,rust-chrono-0.4)
("rust-clap" ,rust-clap-2) ("rust-clap" ,rust-clap-2)
@ -2322,8 +2288,7 @@ (define-public svd2rust
"0q8slfgjfhpljzlk2myb0i538mfq99q1ljn398jm17r1q2pjjxhv")))) "0q8slfgjfhpljzlk2myb0i538mfq99q1ljn398jm17r1q2pjjxhv"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-anyhow" ,rust-anyhow-1) (("rust-anyhow" ,rust-anyhow-1)
("rust-cast" ,rust-cast-0.2) ("rust-cast" ,rust-cast-0.2)
("rust-clap" ,rust-clap-2) ("rust-clap" ,rust-clap-2)
@ -2357,8 +2322,7 @@ (define-public swayhide
(base32 "0x172ffj0lfmbv5nix708l1mfsizxzy74gpxp5amvx0bbaq0p78s")))) (base32 "0x172ffj0lfmbv5nix708l1mfsizxzy74gpxp5amvx0bbaq0p78s"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-exitcode" ,rust-exitcode-1) (("rust-exitcode" ,rust-exitcode-1)
("rust-swayipc" ,rust-swayipc-2)))) ("rust-swayipc" ,rust-swayipc-2))))
(home-page "https://github.com/NomisIV/swayhide/") (home-page "https://github.com/NomisIV/swayhide/")
@ -2441,7 +2405,6 @@ (define-public tealdeer
(string-append fish "tealdeer.fish")) (string-append fish "tealdeer.fish"))
(copy-file "completion/zsh_tealdeer" (copy-file "completion/zsh_tealdeer"
(string-append zsh "_tealdeer")))))) (string-append zsh "_tealdeer"))))))
#:tests? #~(not (%current-target-system))
#:install-source? #f #:install-source? #f
#:cargo-test-flags #:cargo-test-flags
'("--release" "--" '("--release" "--"
@ -2503,8 +2466,7 @@ (define-public git-absorb
(base32 "04v10bn24acify34vh5ayymsr1flcyb05f3az9k1s2m6nlxy5gb9")))) (base32 "04v10bn24acify34vh5ayymsr1flcyb05f3az9k1s2m6nlxy5gb9"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-anyhow" ,rust-anyhow-1) (("rust-anyhow" ,rust-anyhow-1)
("rust-clap" ,rust-clap-2) ("rust-clap" ,rust-clap-2)
("rust-git2" ,rust-git2-0.13) ("rust-git2" ,rust-git2-0.13)
@ -2588,8 +2550,7 @@ (define-public zoxide
(base32 "0y5v2vgl9f3n0n0w4b3iddbfyxv0hls0vw5406ry0hcvnnjyy2l3")))) (base32 "0y5v2vgl9f3n0n0w4b3iddbfyxv0hls0vw5406ry0hcvnnjyy2l3"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
(list #:tests? #~(not (%current-target-system)) (list #:cargo-inputs
#:cargo-inputs
`(("rust-anyhow" ,rust-anyhow-1) `(("rust-anyhow" ,rust-anyhow-1)
("rust-askama" ,rust-askama-0.11) ("rust-askama" ,rust-askama-0.11)
("rust-bincode" ,rust-bincode-1) ("rust-bincode" ,rust-bincode-1)
@ -2648,8 +2609,7 @@ (define-public htmlq
(base32 "0912cdkz5xji1hzfj1cf42zh1kd860b52xmwwhb7q2jhp6qk25jh")))) (base32 "0912cdkz5xji1hzfj1cf42zh1kd860b52xmwwhb7q2jhp6qk25jh"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-clap" ,rust-clap-2) (("rust-clap" ,rust-clap-2)
("rust-html5ever" ,rust-html5ever-0.25) ("rust-html5ever" ,rust-html5ever-0.25)
("rust-kuchiki" ,rust-kuchiki-0.8) ("rust-kuchiki" ,rust-kuchiki-0.8)

View file

@ -515,8 +515,7 @@ (define-public sequoia-sqv
(native-inputs (native-inputs
(list clang pkg-config)) (list clang pkg-config))
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:install-source? #f
#:install-source? #f
#:cargo-inputs #:cargo-inputs
(("rust-anyhow" ,rust-anyhow-1) (("rust-anyhow" ,rust-anyhow-1)
("rust-chrono" ,rust-chrono-0.4) ("rust-chrono" ,rust-chrono-0.4)

View file

@ -252,7 +252,6 @@ (define-public newsboat
`(#:modules ((guix build cargo-build-system) `(#:modules ((guix build cargo-build-system)
(guix build utils) (guix build utils)
((guix build gnu-build-system) #:prefix gnu:)) ((guix build gnu-build-system) #:prefix gnu:))
#:tests? ,(not (%current-target-system))
#:install-source? #f #:install-source? #f
#:cargo-inputs #:cargo-inputs
(("rust-backtrace" ,rust-backtrace-0.3) (("rust-backtrace" ,rust-backtrace-0.3)

View file

@ -1524,8 +1524,7 @@ (define-public alacritty
(base32 "1jbyxnza38c22k7ri8apzn03q91l06isj8la9xca7cz06kn0hha9")))) (base32 "1jbyxnza38c22k7ri8apzn03q91l06isj8la9xca7cz06kn0hha9"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:install-source? #f ; virtual manifest
#:install-source? #f ; virtual manifest
#:cargo-inputs #:cargo-inputs
(("rust-alacritty-config" ,rust-alacritty-config-0.1) (("rust-alacritty-config" ,rust-alacritty-config-0.1)
("rust-alacritty-config-derive" ,rust-alacritty-config-derive-0.2) ("rust-alacritty-config-derive" ,rust-alacritty-config-derive-0.2)

View file

@ -226,8 +226,7 @@ (define-public kak-lsp
(sha256 "1wfv2fy5ga6kc51zka3pak0hq97csm2l11bz74w3n1hrf5q9nnf8"))) (sha256 "1wfv2fy5ga6kc51zka3pak0hq97csm2l11bz74w3n1hrf5q9nnf8")))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-crossbeam-channel" ,rust-crossbeam-channel-0.4) (("rust-crossbeam-channel" ,rust-crossbeam-channel-0.4)
("rust-clap" ,rust-clap-2) ("rust-clap" ,rust-clap-2)
("rust-daemonize" ,rust-daemonize-0.4) ("rust-daemonize" ,rust-daemonize-0.4)
@ -272,8 +271,7 @@ (define-public parinfer-rust
(file-name (git-file-name name version)))) (file-name (git-file-name name version))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-getopts" ,rust-getopts-0.2) (("rust-getopts" ,rust-getopts-0.2)
("rust-libc" ,rust-libc-0.2) ("rust-libc" ,rust-libc-0.2)
("rust-emacs" ,rust-emacs-0.11) ("rust-emacs" ,rust-emacs-0.11)

View file

@ -164,7 +164,6 @@ (define-public tree-sitter-cli
(list tree-sitter graphviz node-lts)) (list tree-sitter graphviz node-lts))
(arguments (arguments
(list (list
#:tests? #~(not (%current-target-system))
#:cargo-test-flags #:cargo-test-flags
''("--release" "--" ''("--release" "--"
;; Skip tests which rely on downloading grammar fixtures. It is ;; Skip tests which rely on downloading grammar fixtures. It is

View file

@ -5356,8 +5356,7 @@ (define-public rav1e
(string-append "\"^" version))))))) (string-append "\"^" version)))))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-aom-sys" ,rust-aom-sys-0.3) (("rust-aom-sys" ,rust-aom-sys-0.3)
("rust-arbitrary" ,rust-arbitrary-0.4) ("rust-arbitrary" ,rust-arbitrary-0.4)
("rust-arg-enum-proc-macro" ,rust-arg-enum-proc-macro-0.3) ("rust-arg-enum-proc-macro" ,rust-arg-enum-proc-macro-0.3)

View file

@ -460,8 +460,7 @@ (define-public monolith
(base32 "1pj4wnsw5a4ys79sqw68ib6zimaqlkplb89x6yncg949a6hj8516")))) (base32 "1pj4wnsw5a4ys79sqw68ib6zimaqlkplb89x6yncg949a6hj8516"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-atty" ,rust-atty-0.2) (("rust-atty" ,rust-atty-0.2)
("rust-base64" ,rust-base64-0.13) ("rust-base64" ,rust-base64-0.13)
("rust-chrono" ,rust-chrono-0.4) ("rust-chrono" ,rust-chrono-0.4)
@ -6867,8 +6866,7 @@ (define-public castor
(base32 "1l72r6a917ymc9pn8dllbal1xdczfai376nvqkiys5fm4j4s3zmj")))) (base32 "1l72r6a917ymc9pn8dllbal1xdczfai376nvqkiys5fm4j4s3zmj"))))
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
`(#:tests? ,(not (%current-target-system)) `(#:cargo-inputs
#:cargo-inputs
(("rust-ansi-parser" ,rust-ansi-parser-0.6) (("rust-ansi-parser" ,rust-ansi-parser-0.6)
("rust-dirs" ,rust-dirs-2) ("rust-dirs" ,rust-dirs-2)
("rust-gdk" ,rust-gdk-0.13) ("rust-gdk" ,rust-gdk-0.13)

View file

@ -75,7 +75,7 @@ (define %cargo-build-system-modules
(define* (cargo-build name inputs (define* (cargo-build name inputs
#:key #:key
source source
(tests? #f) (tests? #t)
(test-target #f) (test-target #f)
(vendor-dir "guix-vendor") (vendor-dir "guix-vendor")
(cargo-build-flags ''("--release")) (cargo-build-flags ''("--release"))