nixpkgs/pkgs/applications/altcoins/seth.nix

32 lines
869 B
Nix
Raw Normal View History

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