Unverified Commit 9fd8fb44 authored by Tristan Ross's avatar Tristan Ross Committed by GitHub
Browse files

luwen: init at 0.7.13 (#422620)

parents ce185573 2b5f1071
Loading
Loading
Loading
Loading
+2210 −0

File added.

Preview size limit exceeded, changes collapsed.

+35 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  protobuf,
}:
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "luwen";
  version = "0.7.13";

  src = fetchFromGitHub {
    owner = "tenstorrent";
    repo = "luwen";
    tag = "v${finalAttrs.version}";
    hash = "sha256-2l+rcWP9Ms0bvvSvZIA4DjH6bIloQGxzRTE1ShP6hEE=";
  };

  postUnpack = ''
    cp ${./Cargo.lock} $sourceRoot/Cargo.lock
  '';

  nativeBuildInputs = [
    protobuf
  ];

  # Vendor a lockfile until upstream manages to consistently have checksums in their's.
  cargoLock.lockFile = ./Cargo.lock;

  meta = {
    description = "Tenstorrent system interface tools";
    homepage = "https://github.com/tenstorrent/luwen";
    maintainers = with lib.maintainers; [ RossComputerGuy ];
    license = with lib.licenses; [ asl20 ];
  };
})