summary refs log tree commit diff
path: root/pkgs/applications/altcoins/seth.nix
diff options
context:
space:
mode:
authorDaniel Brockman <daniel@brockman.se>2017-05-12 15:04:21 +0200
committerDaniel Brockman <daniel@brockman.se>2017-05-15 00:27:02 +0200
commitff3baddbd57b6b4664ddef2659a73edffd6f7e47 (patch)
tree39497d3dc5ecb2a27ce2a37f58d4536c00686d87 /pkgs/applications/altcoins/seth.nix
parent8f86f9a4eb3b3a472789bfb54f70c428118b0eaf (diff)
downloadnixlib-ff3baddbd57b6b4664ddef2659a73edffd6f7e47.tar
nixlib-ff3baddbd57b6b4664ddef2659a73edffd6f7e47.tar.gz
nixlib-ff3baddbd57b6b4664ddef2659a73edffd6f7e47.tar.bz2
nixlib-ff3baddbd57b6b4664ddef2659a73edffd6f7e47.tar.lz
nixlib-ff3baddbd57b6b4664ddef2659a73edffd6f7e47.tar.xz
nixlib-ff3baddbd57b6b4664ddef2659a73edffd6f7e47.tar.zst
nixlib-ff3baddbd57b6b4664ddef2659a73edffd6f7e47.zip
seth: init at 0.5.0
Diffstat (limited to 'pkgs/applications/altcoins/seth.nix')
-rw-r--r--pkgs/applications/altcoins/seth.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/altcoins/seth.nix b/pkgs/applications/altcoins/seth.nix
new file mode 100644
index 000000000000..387f5594c628
--- /dev/null
+++ b/pkgs/applications/altcoins/seth.nix
@@ -0,0 +1,31 @@
+{ stdenv, makeWrapper, lib, fetchFromGitHub
+, bc, coreutils, curl, ethabi, git, gnused, jshon, solc, which }:
+
+stdenv.mkDerivation rec {
+  name = "seth-${version}";
+  version = "0.5.0";
+
+  src = fetchFromGitHub {
+    owner = "dapphub";
+    repo = "seth";
+    rev = "v${version}";
+    sha256 = "0bgygvilhbabb0y9pv9cn8cx7cj513w9is4vh6v69h2czknrjmgz";
+  };
+
+  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;
+  };
+}