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