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