mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
34 lines
913 B
Nix
34 lines
913 B
Nix
{ stdenv, makeWrapper, lib, fetchFromGitHub
|
|
, bc, coreutils, curl, ethabi, git, gnused, jshon, perl, solc, which
|
|
, nodejs, ethsign
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "seth-${version}";
|
|
version = "0.6.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dapphub";
|
|
repo = "seth";
|
|
rev = "v${version}";
|
|
sha256 = "1lbr7i3rznfp3h03y7pc094r0m992lbzr926rnr0xxbyp755wvm4";
|
|
};
|
|
|
|
nativeBuildInputs = [makeWrapper];
|
|
buildPhase = "true";
|
|
makeFlags = ["prefix=$(out)"];
|
|
postInstall = let path = lib.makeBinPath [
|
|
bc coreutils curl ethabi git gnused jshon perl solc which nodejs ethsign
|
|
]; in ''
|
|
wrapProgram "$out/bin/seth" --prefix PATH : "${path}"
|
|
'';
|
|
|
|
meta = {
|
|
description = "Command-line client for talking to Ethereum nodes";
|
|
homepage = https://github.com/dapphub/seth/;
|
|
maintainers = [stdenv.lib.maintainers.dbrock];
|
|
license = lib.licenses.gpl3;
|
|
inherit version;
|
|
};
|
|
}
|