diff --git a/pkgs/applications/altcoins/default.nix b/pkgs/applications/altcoins/default.nix index b51acea061f1..4386ebe4a91c 100644 --- a/pkgs/applications/altcoins/default.nix +++ b/pkgs/applications/altcoins/default.nix @@ -35,6 +35,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 807df4e57e75..12cc18723c0a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12931,6 +12931,7 @@ with pkgs; go-ethereum = self.altcoins.go-ethereum; ethabi = self.altcoins.ethabi; + ethrun = self.altcoins.ethrun; stellar-core = self.altcoins.stellar-core;