blob: e63cca6a5e90db74279f8bdb62583831d237741a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ lib
, fetchCrate
, rustPlatform
, capnproto
}:
rustPlatform.buildRustPackage rec {
pname = "capnproto-rust";
version = "0.17.2";
src = fetchCrate {
crateName = "capnpc";
inherit version;
hash = "sha256-WVjXVLVoTCAtA8a6+zaX4itAaPCWb2c0trtSsxBopO4=";
};
cargoHash = "sha256-h9YArxHnY14T8eQCS4JVItjaCjv+2dorcOVBir7r6SY=";
postInstall = ''
mkdir -p $out/include/capnp
cp rust.capnp $out/include/capnp
'';
nativeCheckInputs = [
capnproto
];
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 ];
};
}
|