mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
5f92b1a96c
https://github.com/NixOS/nixpkgs/pull/217084 plans to migrate Rust packages to use `importCargoLock`, but the migration script cannot handle `cargoPatches`: https://github.com/NixOS/nixpkgs/pull/217084#discussion_r1111253151
29 lines
632 B
Nix
29 lines
632 B
Nix
{ 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;
|
|
};
|
|
}
|