2021-05-15 10:20:20 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv }:
|
2016-08-17 19:38:41 +00:00
|
|
|
|
2020-02-15 21:12:41 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "ethabi";
|
2021-05-08 15:48:50 +00:00
|
|
|
version = "13.0.0";
|
2016-08-17 19:38:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-05-08 15:48:50 +00:00
|
|
|
owner = "rust-ethereum";
|
2016-08-17 19:38:41 +00:00
|
|
|
repo = "ethabi";
|
2018-03-02 13:19:29 +00:00
|
|
|
rev = "v${version}";
|
2021-05-08 15:48:50 +00:00
|
|
|
sha256 = "sha256-bl46CSVP1MMYI3tkVAHFrjMFwTt8QoleZCV9pMIMZyc=";
|
2016-08-17 19:38:41 +00:00
|
|
|
};
|
|
|
|
|
2021-05-08 15:48:50 +00:00
|
|
|
cargoSha256 = "sha256-Jz0uEP2/ZjLS+GbCp7lNyJQdFDjTSFthjBdC/Z4tkTs=";
|
|
|
|
|
|
|
|
cargoPatches = [ ./add-Cargo-lock.patch ];
|
2017-05-24 14:52:07 +00:00
|
|
|
|
2021-05-15 10:20:20 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-08-17 19:38:41 +00:00
|
|
|
description = "Ethereum function call encoding (ABI) utility";
|
2021-05-08 15:48:50 +00:00
|
|
|
homepage = "https://github.com/rust-ethereum/ethabi";
|
2018-09-01 12:04:59 +00:00
|
|
|
maintainers = [ maintainers.dbrock ];
|
2021-05-08 15:48:50 +00:00
|
|
|
license = licenses.asl20;
|
2016-08-17 19:38:41 +00:00
|
|
|
};
|
|
|
|
}
|