1{ lib, rustPlatform, fetchFromGitHub }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "ethabi";
5 version = "13.0.0";
6
7 src = fetchFromGitHub {
8 owner = "rust-ethereum";
9 repo = "ethabi";
10 rev = "v${version}";
11 sha256 = "sha256-bl46CSVP1MMYI3tkVAHFrjMFwTt8QoleZCV9pMIMZyc=";
12 };
13
14 cargoLock = {
15 lockFile = ./Cargo.lock;
16 };
17
18 postPatch = ''
19 ln -s ${./Cargo.lock} Cargo.lock
20 '';
21
22 meta = with lib; {
23 description = "Ethereum function call encoding (ABI) utility";
24 homepage = "https://github.com/rust-ethereum/ethabi";
25 maintainers = [ maintainers.dbrock ];
26 license = licenses.asl20;
27 };
28}