nixpkgs/pkgs/development/tools/capnproto-rust/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
720 B
Nix
Raw Normal View History

2023-06-03 23:39:02 +00:00
{ lib
, fetchCrate
, rustPlatform
, capnproto
}:
rustPlatform.buildRustPackage rec {
pname = "capnproto-rust";
2023-07-09 02:17:11 +00:00
version = "0.17.2";
2023-06-03 23:39:02 +00:00
src = fetchCrate {
crateName = "capnpc";
inherit version;
2023-07-09 02:17:11 +00:00
hash = "sha256-WVjXVLVoTCAtA8a6+zaX4itAaPCWb2c0trtSsxBopO4=";
2023-06-03 23:39:02 +00:00
};
2023-07-09 02:17:11 +00:00
cargoHash = "sha256-h9YArxHnY14T8eQCS4JVItjaCjv+2dorcOVBir7r6SY=";
postInstall = ''
mkdir -p $out/include/capnp
cp rust.capnp $out/include/capnp
'';
2023-06-03 23:39:02 +00:00
nativeCheckInputs = [
capnproto
];
meta = with lib; {
description = "Cap'n Proto codegen plugin for Rust";
homepage = "https://github.com/capnproto/capnproto-rust";
license = licenses.mit;
2023-07-09 02:17:11 +00:00
maintainers = with maintainers; [ mikroskeem solson ];
2023-06-03 23:39:02 +00:00
};
}