build: pin nostr-bench submodule in nix and cloud bench pipeline
This commit is contained in:
Submodule nix/nostr-bench updated: d3ab701512...8561b84864
9
nix/nostr-bench-static.Cargo.lock
generated
9
nix/nostr-bench-static.Cargo.lock
generated
@@ -321,6 +321,12 @@ version = "0.21.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a"
|
||||
|
||||
[[package]]
|
||||
name = "bech32"
|
||||
version = "0.9.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d86b93f97252c47b41663388e6d155714a9d0c398b99f1005cbc5f978b29f445"
|
||||
|
||||
[[package]]
|
||||
name = "bitcoin_hashes"
|
||||
version = "0.11.0"
|
||||
@@ -1249,6 +1255,7 @@ version = "0.19.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "377785e61e0da6a13226a4244e8c28b9a858aa0a5ed10830109f61ade1c2a3f2"
|
||||
dependencies = [
|
||||
"bech32",
|
||||
"bitcoin_hashes",
|
||||
"getrandom",
|
||||
"instant",
|
||||
@@ -1262,7 +1269,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "nostr-bench"
|
||||
version = "0.4.0"
|
||||
version = "0.5.0-parrhesia"
|
||||
dependencies = [
|
||||
"actix",
|
||||
"actix-web",
|
||||
|
||||
@@ -1,22 +1,19 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
pkgsCross,
|
||||
runCommand,
|
||||
staticX86_64Musl ? false,
|
||||
nostrBenchSrc ? ./nostr-bench,
|
||||
}: let
|
||||
selectedRustPlatform =
|
||||
if staticX86_64Musl
|
||||
then pkgsCross.musl64.rustPlatform
|
||||
else rustPlatform;
|
||||
|
||||
srcBase = fetchFromGitHub {
|
||||
owner = "rnostr";
|
||||
repo = "nostr-bench";
|
||||
rev = "d3ab701512b7c871707b209ef3f934936e407963";
|
||||
hash = "sha256-F2qg1veO1iNlVUKf1b/MV+vexiy4Tt+w2aikDDbp7tU=";
|
||||
};
|
||||
# Keep the submodule path as-is so devenv can evaluate it correctly.
|
||||
# `lib.cleanSource` treats submodule contents as untracked in this context.
|
||||
srcBase = nostrBenchSrc;
|
||||
|
||||
src =
|
||||
if staticX86_64Musl
|
||||
@@ -31,7 +28,7 @@ in
|
||||
selectedRustPlatform.buildRustPackage (
|
||||
{
|
||||
pname = "nostr-bench";
|
||||
version = "0.4.0";
|
||||
version = "0.5.0-parrhesia";
|
||||
|
||||
inherit src;
|
||||
|
||||
@@ -46,11 +43,11 @@ in
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs staticX86_64Musl {
|
||||
cargoHash = "sha256-aL8XSBJ8sHl7CGh9SkOoI+WlAHKrdij2DfvZAWIKgKY=";
|
||||
cargoHash = "sha256-098BUjDLiezoFXs7fF+w7NQM+DPPfHMo1HGx3nV2UZM=";
|
||||
CARGO_BUILD_TARGET = "x86_64-unknown-linux-musl";
|
||||
RUSTFLAGS = "-C target-feature=+crt-static";
|
||||
}
|
||||
// lib.optionalAttrs (!staticX86_64Musl) {
|
||||
cargoHash = "sha256-mh9UdYhZl6JVJEeDFnY5BjfcK+PrWBBEn1Qh7/ZX17k=";
|
||||
cargoHash = "sha256-x2pnxJL2nwni4cpSaUerDOfhdcTKJTyABYjPm96dAC0=";
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user