Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / blockchains / ethabi / default.nix
blobeea4d546f14ba0632a85b1e5bd0d5dbaefba4209
1 { lib, rustPlatform, fetchFromGitHub }:
3 rustPlatform.buildRustPackage rec {
4   pname = "ethabi";
5   version = "13.0.0";
7   src = fetchFromGitHub {
8     owner = "rust-ethereum";
9     repo = "ethabi";
10     rev = "v${version}";
11     sha256 = "sha256-bl46CSVP1MMYI3tkVAHFrjMFwTt8QoleZCV9pMIMZyc=";
12   };
14   cargoLock = {
15     lockFile = ./Cargo.lock;
16   };
18   postPatch = ''
19     ln -s ${./Cargo.lock} Cargo.lock
20   '';
22   meta = with lib; {
23     description = "Ethereum function call encoding (ABI) utility";
24     homepage = "https://github.com/rust-ethereum/ethabi";
25     maintainers = [ maintainers.dbrock ];
26     license = licenses.asl20;
27   };