From 881595ac0325a5622aa02e1d078e98b450fa4496 Mon Sep 17 00:00:00 2001 From: Daniel Brockman Date: Tue, 11 Apr 2017 06:33:16 +0200 Subject: [PATCH] ethrun: init at 0.1.0 --- pkgs/applications/altcoins/default.nix | 1 + pkgs/applications/altcoins/ethrun.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 3 files changed, 26 insertions(+) create mode 100644 pkgs/applications/altcoins/ethrun.nix diff --git a/pkgs/applications/altcoins/default.nix b/pkgs/applications/altcoins/default.nix index fbc3d1c36f91..14723fd06a4c 100644 --- a/pkgs/applications/altcoins/default.nix +++ b/pkgs/applications/altcoins/default.nix @@ -32,6 +32,7 @@ rec { namecoind = callPackage ./namecoind.nix { }; ethabi = callPackage ./ethabi.nix { }; + ethrun = callPackage ./ethrun.nix { }; primecoin = callPackage ./primecoin.nix { withGui = true; }; primecoind = callPackage ./primecoin.nix { withGui = false; }; diff --git a/pkgs/applications/altcoins/ethrun.nix b/pkgs/applications/altcoins/ethrun.nix new file mode 100644 index 000000000000..f61a5884fd4a --- /dev/null +++ b/pkgs/applications/altcoins/ethrun.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchFromGitHub, rustPlatform }: + +with rustPlatform; + +buildRustPackage rec { + name = "ethrun-${version}"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "dapphub"; + repo = "ethrun"; + rev = "v${version}"; + sha256 = "1w651g4p2mc4ljp20l8lwvfx3l3fzyp6gf2izr85vyb1wjbaccqn"; + }; + + depsSha256 = "14x8pbjgkz0g724lnvd9mi2alqd6fipjljw6xsraf9gqwijn1knq"; + + meta = { + description = "Directly run Ethereum bytecode"; + homepage = https://github.com/dapphub/ethrun/; + maintainers = [stdenv.lib.maintainers.dbrock]; + inherit version; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 29caabbda57f..18ccdd346c9d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12874,6 +12874,7 @@ with pkgs; go-ethereum = self.altcoins.go-ethereum; ethabi = self.altcoins.ethabi; + ethrun = self.altcoins.ethrun; stellar-core = self.altcoins.stellar-core;