mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 03:53:41 +00:00
32 lines
880 B
Nix
32 lines
880 B
Nix
{ stdenv, makeWrapper, lib, fetchFromGitHub
|
|
, bc, coreutils, curl, ethabi, git, gnused, jshon, perl, solc, which }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "seth-${version}";
|
|
version = "0.5.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dapphub";
|
|
repo = "seth";
|
|
rev = "v${version}";
|
|
sha256 = "1zl70xy7njjwy4k4g84v7lpf9a2nnnbxh4mkpw7jzqfs2mr636z6";
|
|
};
|
|
|
|
nativeBuildInputs = [makeWrapper];
|
|
buildPhase = "true";
|
|
makeFlags = ["prefix=$(out)"];
|
|
postInstall = let path = lib.makeBinPath [
|
|
bc coreutils curl ethabi git gnused jshon perl solc which
|
|
]; 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;
|
|
};
|
|
}
|