1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 protobuf,
6}:
7rustPlatform.buildRustPackage (finalAttrs: {
8 pname = "luwen";
9 version = "0.7.13";
10
11 src = fetchFromGitHub {
12 owner = "tenstorrent";
13 repo = "luwen";
14 tag = "v${finalAttrs.version}";
15 hash = "sha256-2l+rcWP9Ms0bvvSvZIA4DjH6bIloQGxzRTE1ShP6hEE=";
16 };
17
18 postUnpack = ''
19 cp ${./Cargo.lock} $sourceRoot/Cargo.lock
20 '';
21
22 nativeBuildInputs = [
23 protobuf
24 ];
25
26 # Vendor a lockfile until upstream manages to consistently have checksums in their's.
27 cargoLock.lockFile = ./Cargo.lock;
28
29 meta = {
30 description = "Tenstorrent system interface tools";
31 homepage = "https://github.com/tenstorrent/luwen";
32 maintainers = with lib.maintainers; [ RossComputerGuy ];
33 license = with lib.licenses; [ asl20 ];
34 };
35})