lol
1{ lib, stdenv, fetchFromGitHub, rustPlatform, libiconv }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "ethabi";
5 version = "13.0.0";
6
7 src = fetchFromGitHub {
8 owner = "rust-ethereum";
9 repo = "ethabi";
10 rev = "v${version}";
11 sha256 = "sha256-bl46CSVP1MMYI3tkVAHFrjMFwTt8QoleZCV9pMIMZyc=";
12 };
13
14 cargoSha256 = "sha256-Jz0uEP2/ZjLS+GbCp7lNyJQdFDjTSFthjBdC/Z4tkTs=";
15
16 cargoPatches = [ ./add-Cargo-lock.patch ];
17
18 buildInputs = lib.optional stdenv.isDarwin libiconv;
19
20 meta = with lib; {
21 description = "Ethereum function call encoding (ABI) utility";
22 homepage = "https://github.com/rust-ethereum/ethabi";
23 maintainers = [ maintainers.dbrock ];
24 license = licenses.asl20;
25 };
26}