1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs/applications/altcoins/seth.nix

34 lines
913 B
Nix
Raw Normal View History

2017-05-12 14:04:21 +01:00
{ stdenv, makeWrapper, lib, fetchFromGitHub
2018-01-15 18:52:41 +00:00
, bc, coreutils, curl, ethabi, git, gnused, jshon, perl, solc, which
, nodejs, ethsign
}:
2017-05-12 14:04:21 +01:00
stdenv.mkDerivation rec {
name = "seth-${version}";
2018-03-02 13:23:31 +00:00
version = "0.6.3";
2017-05-12 14:04:21 +01:00
src = fetchFromGitHub {
owner = "dapphub";
repo = "seth";
rev = "v${version}";
2018-03-02 13:23:31 +00:00
sha256 = "0la2nfqsscpbq6zwa6hsd73nimdnrhilrmgyy77yr3jca2wjhsjk";
2017-05-12 14:04:21 +01:00
};
nativeBuildInputs = [makeWrapper];
buildPhase = "true";
makeFlags = ["prefix=$(out)"];
postInstall = let path = lib.makeBinPath [
2018-01-15 18:52:41 +00:00
bc coreutils curl ethabi git gnused jshon perl solc which nodejs ethsign
2017-05-12 14:04:21 +01: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;
};
}