8000 add cargo-nextest 0.9.145 (#720) · gominimal/pkgs@f4de33d · GitHub
[go: up one dir, main page]

Skip to content

Commit f4de33d

Browse files
norrietaylorclaude
andauthored
add cargo-nextest 0.9.145 (#720)
Builds only the cargo-nextest workspace member with upstream's distributor feature set (--no-default-features --features default-no-update), dropping the self-update code that has no place under a package manager. Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
1 parent ab96e2a commit f4de33d

2 files changed

Lines changed: 81 additions & 0 deletions

File tree

‎packages/cargo-nextest/build.ncl‎

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
let { subsetOf, Attrs, BuildSpec, Local, OutputBin, Source, Test, .. } = import "minimal.ncl" in
2+
let base = import "../base/build.ncl" in
3+
let rust = import "../rust/build.ncl" in
4+
let toolchain = import "../toolchain/build.ncl" in
5+
6+
let gcc = import "../gcc/build.ncl" in
7+
let glibc = import "../glibc/build.ncl" in
8+
9+
let version = "0.9.145" in
10+
{
11+
name = "cargo-nextest",
12+
build_deps = [
13+
{ file = "build.sh" } | Local,
14+
{
15+
url = "https://github.com/nextest-rs/nextest/archive/refs/tags/cargo-nextest-%{version}.tar.gz",
16+
sha256 = "6ba31b7dace0cfa57a7f9f534a82732d037481e161e076bd713c3edf1fdf6a63",
17+
extract = true,
18+
strip_prefix = "nextest-cargo-nextest-%{version}",
19+
} | Source,
20+
base,
21+
rust,
22+
toolchain,
23+
],
24+
25+
runtime_deps = [
26+
glibc,
27+
subsetOf gcc ["libgcc"],
28+
],
29+
30+
needs = {
31+
dns = {},
32+
internet = {},
33+
},
34+
35+
cmd = "./build.sh",
36+
build_args = {
37+
include version 8000 ,
38+
},
39+
40+
outputs = {
41+
cargo-nextest = { glob = "usr/bin/cargo-nextest" } | OutputBin,
42+
},
43+
44+
attrs =
45+
{
46+
upstream_version = version,
47+
license_spdx = "MIT OR Apache-2.0",
48+
source_provenance = {
49+
category = 'GithubRepo,
50+
owner = "nextest-rs",
51+
repo = "nextest",
52+
},
53+
build_cost_multiple = 2,
54+
} | Attrs,
55+
56+
tests = {
57+
smoke =
58+
{
59+
class = 'Standalone,
60+
test_deps = [base],
61+
cmds = [
62+
["/bin/bash", "-c", "cargo-nextest nextest --version"],
63+
["/bin/bash", "-c", "cargo-nextest nextest --help"],
64+
],
65+
} | Test,
66+
},
67+
} | BuildSpec

‎packages/cargo-nextest/build.sh‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
set -ex
3+
export CARGO_INCREMENTAL=0
4+
export CC=gcc
5+
export LD=gcc
6+
export RUSTFLAGS="-C linker=gcc --remap-path-prefix=$(pwd)=/builddir --remap-path-prefix=$HOME/.cargo=/cargo"
7+
8+
# default-no-update is upstream's recommended feature set for distributors:
9+
# drops the self-update machinery (and its network/TLS deps) that makes no
10+
# sense for a package-managed binary.
11+
cargo build --release --locked -p cargo-nextest --no-default-features --features default-no-update
12+
13+
mkdir -p $OUTPUT_DIR/usr/bin
14+
cp target/release/cargo-nextest $OUTPUT_DIR/usr/bin

0 commit comments

Comments
 (0)
0