2017-05-12 13:04:21 +00:00
|
|
|
{ stdenv, makeWrapper, lib, fetchFromGitHub
|
2017-07-05 14:33:52 +00:00
|
|
|
, bc, coreutils, curl, ethabi, git, gnused, jshon, perl, solc, which }:
|
2017-05-12 13:04:21 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "seth-${version}";
|
2017-07-05 14:33:52 +00:00
|
|
|
version = "0.5.6";
|
2017-05-12 13:04:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dapphub";
|
|
|
|
repo = "seth";
|
|
|
|
rev = "v${version}";
|
2017-07-05 14:33:52 +00:00
|
|
|
sha256 = "1zl70xy7njjwy4k4g84v7lpf9a2nnnbxh4mkpw7jzqfs2mr636z6";
|
2017-05-12 13:04:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [makeWrapper];
|
|
|
|
buildPhase = "true";
|
|
|
|
makeFlags = ["prefix=$(out)"];
|
|
|
|
postInstall = let path = lib.makeBinPath [
|
2017-07-05 14:33:52 +00:00
|
|
|
bc coreutils curl ethabi git gnused jshon perl solc which
|
2017-05-12 13:04:21 +00:00
|
|
|
]; 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;
|
|
|
|
};
|
|
|
|
}
|