summary refs log blame commit diff
path: root/pkgs/applications/blockchains/ethabi/default.nix
blob: eea4d546f14ba0632a85b1e5bd0d5dbaefba4209 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                       
 
                                   
                   
                     

                         
                            
                    
                        
                                                                   

    


                            
 


                                    
 
                    
                                                                  
                                                         
                                         
                             

    
{ lib, rustPlatform, fetchFromGitHub }:

rustPlatform.buildRustPackage rec {
  pname = "ethabi";
  version = "13.0.0";

  src = fetchFromGitHub {
    owner = "rust-ethereum";
    repo = "ethabi";
    rev = "v${version}";
    sha256 = "sha256-bl46CSVP1MMYI3tkVAHFrjMFwTt8QoleZCV9pMIMZyc=";
  };

  cargoLock = {
    lockFile = ./Cargo.lock;
  };

  postPatch = ''
    ln -s ${./Cargo.lock} Cargo.lock
  '';

  meta = with lib; {
    description = "Ethereum function call encoding (ABI) utility";
    homepage = "https://github.com/rust-ethereum/ethabi";
    maintainers = [ maintainers.dbrock ];
    license = licenses.asl20;
  };
}