2023-02-22 10:55:15 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ethabi";
|
|
|
|
version = "13.0.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rust-ethereum";
|
|
|
|
repo = "ethabi";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-bl46CSVP1MMYI3tkVAHFrjMFwTt8QoleZCV9pMIMZyc=";
|
|
|
|
};
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
};
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
postPatch = ''
|
|
|
|
ln -s ${./Cargo.lock} Cargo.lock
|
|
|
|
'';
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Ethereum function call encoding (ABI) utility";
|
|
|
|
homepage = "https://github.com/rust-ethereum/ethabi";
|
|
|
|
maintainers = [ maintainers.dbrock ];
|
|
|
|
license = licenses.asl20;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "ethabi";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|