Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
813 B
Nix
42 lines
813 B
Nix
{
|
|
lib,
|
|
fetchCrate,
|
|
rustPlatform,
|
|
capnproto,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "capnproto-rust";
|
|
version = "0.21.4";
|
|
|
|
src = fetchCrate {
|
|
crateName = "capnpc";
|
|
inherit version;
|
|
hash = "sha256-pJF0S6mRxPjpwa367eOUgc7GBeKgUwux1GgUIJE8JuI=";
|
|
};
|
|
|
|
cargoHash = "sha256-nPDfBpY7WtNr1St6HAymWBLho5n0UXibqDjVA1vXeNg=";
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/include/capnp
|
|
cp rust.capnp $out/include/capnp
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
capnproto
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Cap'n Proto codegen plugin for Rust";
|
|
homepage = "https://github.com/capnproto/capnproto-rust";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [
|
|
mikroskeem
|
|
solson
|
|
];
|
|
};
|
|
}
|