summary refs log tree commit diff
path: root/pkgs/applications/altcoins
diff options
context:
space:
mode:
authorPascal Wittmann <PascalWittmann@gmx.net>2017-05-15 07:59:51 +0200
committerGitHub <noreply@github.com>2017-05-15 07:59:51 +0200
commit044063666e25be9d04a82842dfe9c74bfa1acce4 (patch)
tree44a6507dba92488cd63b7c80bb43148cca47b7ba /pkgs/applications/altcoins
parentf1cec165221595cee13a2a8ab3fc045729cdec93 (diff)
parentff3baddbd57b6b4664ddef2659a73edffd6f7e47 (diff)
downloadnixlib-044063666e25be9d04a82842dfe9c74bfa1acce4.tar
nixlib-044063666e25be9d04a82842dfe9c74bfa1acce4.tar.gz
nixlib-044063666e25be9d04a82842dfe9c74bfa1acce4.tar.bz2
nixlib-044063666e25be9d04a82842dfe9c74bfa1acce4.tar.lz
nixlib-044063666e25be9d04a82842dfe9c74bfa1acce4.tar.xz
nixlib-044063666e25be9d04a82842dfe9c74bfa1acce4.tar.zst
nixlib-044063666e25be9d04a82842dfe9c74bfa1acce4.zip
Merge pull request #25736 from dbrock/seth
seth: init at 0.5.0
Diffstat (limited to 'pkgs/applications/altcoins')
-rw-r--r--pkgs/applications/altcoins/default.nix1
-rw-r--r--pkgs/applications/altcoins/seth.nix31
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/altcoins/default.nix b/pkgs/applications/altcoins/default.nix
index 4386ebe4a91c..471d2a16ef75 100644
--- a/pkgs/applications/altcoins/default.nix
+++ b/pkgs/applications/altcoins/default.nix
@@ -36,6 +36,7 @@ rec {
 
   ethabi = callPackage ./ethabi.nix { };
   ethrun = callPackage ./ethrun.nix { };
+  seth = callPackage ./seth.nix { };
 
   primecoin  = callPackage ./primecoin.nix { withGui = true; };
   primecoind = callPackage ./primecoin.nix { withGui = false; };
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;
+  };
+}