about summary refs log tree commit diff
path: root/pkgs/applications/blockchains/ethabi.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/blockchains/ethabi.nix')
-rw-r--r--pkgs/applications/blockchains/ethabi.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/ethabi.nix b/pkgs/applications/blockchains/ethabi.nix
new file mode 100644
index 0000000000000..21d69f14d7f3f
--- /dev/null
+++ b/pkgs/applications/blockchains/ethabi.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchFromGitHub, rustPlatform }:
+
+with rustPlatform;
+
+buildRustPackage rec {
+  name = "ethabi-${version}";
+  version = "7.0.0";
+
+  src = fetchFromGitHub {
+    owner = "paritytech";
+    repo = "ethabi";
+    rev = "v${version}";
+    sha256 = "1gqd3vwsvv1wvi659qcdywgmh41swblpwmmxb033k8irw581dwq4";
+  };
+
+  cargoSha256 = "0zkdai31jf8f5syklaxq43ydjvp5xclr8pd6y1q6vkwjz6z49hzm";
+
+  cargoBuildFlags = ["--features cli"];
+
+  meta = with stdenv.lib; {
+    description = "Ethereum function call encoding (ABI) utility";
+    homepage = https://github.com/ethcore/ethabi/;
+    maintainers = [ maintainers.dbrock ];
+    license = licenses.gpl3;
+    inherit version;
+  };
+}