2016-08-17 20:38:41 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
|
|
|
name = "ethabi-${version}";
|
2018-03-02 13:19:29 +00:00
|
|
|
version = "4.1.0";
|
2016-08-17 20:38:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-04-11 04:39:03 +01:00
|
|
|
owner = "paritytech";
|
2016-08-17 20:38:41 +01:00
|
|
|
repo = "ethabi";
|
2018-03-02 13:19:29 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0kxflixmgycdh7sv73zf2mrkbcfzzw7f5sjbsjks9crc9cvjqi6p";
|
2016-08-17 20:38:41 +01:00
|
|
|
};
|
|
|
|
|
2018-03-02 13:19:29 +00:00
|
|
|
cargoSha256 = "18rigpsmfiv6im2sspnxadgqrlfdp9dd75ji8s56ksc9g7hrc3wz";
|
2016-08-17 20:38:41 +01:00
|
|
|
|
2017-05-24 15:52:07 +01:00
|
|
|
cargoBuildFlags = ["--features cli"];
|
|
|
|
|
2018-09-01 13:04:59 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-08-17 20:38:41 +01:00
|
|
|
description = "Ethereum function call encoding (ABI) utility";
|
|
|
|
homepage = https://github.com/ethcore/ethabi/;
|
2018-09-01 13:04:59 +01:00
|
|
|
maintainers = [ maintainers.dbrock ];
|
|
|
|
license = licenses.gpl3;
|
2016-08-17 20:38:41 +01:00
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|