diff --git a/pkgs/applications/altcoins/dapp.nix b/pkgs/applications/altcoins/dapp.nix index 51de4d202e84..6ad66a24397f 100644 --- a/pkgs/applications/altcoins/dapp.nix +++ b/pkgs/applications/altcoins/dapp.nix @@ -1,15 +1,15 @@ { lib, stdenv, fetchFromGitHub, makeWrapper -, seth, git, solc, shellcheck, nodejs, hsevm }: +, seth, git, solc, shellcheck, nodejs, hevm }: stdenv.mkDerivation rec { name = "dapp"; - version = "0.5.3"; + version = "0.5.7"; src = fetchFromGitHub { owner = "dapphub"; repo = "dapp"; rev = "v${version}"; - sha256 = "13b2krd02py8jnzjis44lay5i31d95z0myrsy5afzw7fa25giird"; + sha256 = "128f35hczarihb263as391wr9zbyc1q1p49qbxh30via23r1brb0"; }; nativeBuildInputs = [makeWrapper shellcheck]; @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { checkPhase = "make test"; makeFlags = ["prefix=$(out)"]; postInstall = let path = lib.makeBinPath [ - nodejs solc git seth hsevm + nodejs solc git seth hevm ]; in '' wrapProgram "$out/bin/dapp" --prefix PATH : "${path}" ''; diff --git a/pkgs/applications/altcoins/default.nix b/pkgs/applications/altcoins/default.nix index 31dcc78d3d7f..2c97a3a53102 100644 --- a/pkgs/applications/altcoins/default.nix +++ b/pkgs/applications/altcoins/default.nix @@ -43,7 +43,7 @@ rec { seth = callPackage ./seth.nix { }; dapp = callPackage ./dapp.nix { }; - hsevm = (haskellPackages.callPackage ./hsevm.nix {}); + hevm = (haskellPackages.callPackage ./hevm.nix {}); primecoin = callPackage ./primecoin.nix { withGui = true; }; primecoind = callPackage ./primecoin.nix { withGui = false; }; diff --git a/pkgs/applications/altcoins/hsevm.nix b/pkgs/applications/altcoins/hevm.nix similarity index 61% rename from pkgs/applications/altcoins/hsevm.nix rename to pkgs/applications/altcoins/hevm.nix index 173ac83a6db4..51e5f6bcb298 100644 --- a/pkgs/applications/altcoins/hsevm.nix +++ b/pkgs/applications/altcoins/hevm.nix @@ -1,24 +1,28 @@ -{ mkDerivation, abstract-par, aeson, ansi-wl-pprint, base +{ mkDerivation, abstract-par, aeson, ansi-wl-pprint, async, base , base16-bytestring, base64-bytestring, binary, brick, bytestring , cereal, containers, cryptonite, data-dword, deepseq, directory -, filepath, ghci-pretty, here, HUnit, lens, lens-aeson, memory -, monad-par, mtl, optparse-generic, process, QuickCheck -, quickcheck-text, readline, rosezipper, scientific, stdenv, tasty, tasty-hunit -, tasty-quickcheck, temporary, text, text-format -, unordered-containers, vector, vty +, filepath, ghci-pretty, here, HUnit, lens +, lens-aeson, memory, monad-par, mtl, optparse-generic, process +, QuickCheck, quickcheck-text, readline, rosezipper, scientific +, stdenv, tasty, tasty-hunit, tasty-quickcheck, temporary, text +, text-format, time, unordered-containers, vector, vty + +, restless-git + , fetchFromGitHub, lib, makeWrapper , ncurses, zlib, bzip2, solc, coreutils +, bash }: lib.overrideDerivation (mkDerivation rec { - pname = "hsevm"; - version = "0.6.4"; + pname = "hevm"; + version = "0.8.5"; src = fetchFromGitHub { owner = "dapphub"; - repo = "hsevm"; + repo = "hevm"; rev = "v${version}"; - sha256 = "01b67k9cam4gvsi07q3vx527m1w6p6xll64k1nl27bc8ik6jh8l9"; + sha256 = "1a27bh0azf2hdg5hp6s9azv2rhzy7vrlq1kmg688g9nfwwwhgkp0"; }; isLibrary = false; @@ -26,8 +30,9 @@ lib.overrideDerivation (mkDerivation rec { enableSharedExecutables = false; postInstall = '' - rm -rf $out/{lib,share} - wrapProgram $out/bin/hsevm --add-flags '+RTS -N$((`${coreutils}/bin/nproc` - 1)) -RTS' + wrapProgram $out/bin/hevm \ + --add-flags '+RTS -N$((`${coreutils}/bin/nproc` - 1)) -RTS' \ + --suffix PATH : "${lib.makeBinPath [bash coreutils]}" ''; extraLibraries = [ @@ -36,17 +41,17 @@ lib.overrideDerivation (mkDerivation rec { cryptonite data-dword deepseq directory filepath ghci-pretty lens lens-aeson memory monad-par mtl optparse-generic process QuickCheck quickcheck-text readline rosezipper scientific temporary text text-format - unordered-containers vector vty + unordered-containers vector vty restless-git ]; executableHaskellDepends = [ - readline zlib bzip2 + async readline zlib bzip2 ]; testHaskellDepends = [ base binary bytestring ghci-pretty here HUnit lens mtl QuickCheck tasty tasty-hunit tasty-quickcheck text vector ]; - homepage = https://github.com/dapphub/hsevm; + homepage = https://github.com/dapphub/hevm; description = "Ethereum virtual machine evaluator"; license = stdenv.lib.licenses.agpl3; maintainers = [stdenv.lib.maintainers.dbrock]; diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index d983934e83a5..850a61048f88 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -957,4 +957,6 @@ self: super: { protolude = super.protolude_0_2; }; + # test suite requires git and does a bunch of git operations + restless-git = dontCheck super.restless-git; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3ef812b388d1..8723be45df79 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13542,7 +13542,7 @@ with pkgs; ethrun = self.altcoins.ethrun; seth = self.altcoins.seth; dapp = self.altcoins.dapp; - hsevm = self.altcoins.hsevm; + hevm = self.altcoins.hevm; stellar-core = self.altcoins.stellar-core;