0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

hsevm: project was renamed to hevm

This also upgrades the hsevm package from v0.6.4 to v0.8.5.

The project `dapp` which depends on hsevm was also updated to use the
new name, so I have also upgraded that package from version v0.5.3 to
v0.5.7.

I also added a `dontCheck` to a Hackage dependency because its test
suite depends on Git and runs a bunch of Git repository manipulations.
This commit is contained in:
Mikael Brockman 2017-09-22 07:50:11 +03:00
parent 3b7c68615e
commit 74edd2c5db
No known key found for this signature in database
GPG key ID: 9B684C2FBFB1F16D
5 changed files with 28 additions and 21 deletions

View file

@ -1,15 +1,15 @@
{ lib, stdenv, fetchFromGitHub, makeWrapper { lib, stdenv, fetchFromGitHub, makeWrapper
, seth, git, solc, shellcheck, nodejs, hsevm }: , seth, git, solc, shellcheck, nodejs, hevm }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "dapp"; name = "dapp";
version = "0.5.3"; version = "0.5.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dapphub"; owner = "dapphub";
repo = "dapp"; repo = "dapp";
rev = "v${version}"; rev = "v${version}";
sha256 = "13b2krd02py8jnzjis44lay5i31d95z0myrsy5afzw7fa25giird"; sha256 = "128f35hczarihb263as391wr9zbyc1q1p49qbxh30via23r1brb0";
}; };
nativeBuildInputs = [makeWrapper shellcheck]; nativeBuildInputs = [makeWrapper shellcheck];
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
checkPhase = "make test"; checkPhase = "make test";
makeFlags = ["prefix=$(out)"]; makeFlags = ["prefix=$(out)"];
postInstall = let path = lib.makeBinPath [ postInstall = let path = lib.makeBinPath [
nodejs solc git seth hsevm nodejs solc git seth hevm
]; in '' ]; in ''
wrapProgram "$out/bin/dapp" --prefix PATH : "${path}" wrapProgram "$out/bin/dapp" --prefix PATH : "${path}"
''; '';

View file

@ -43,7 +43,7 @@ rec {
seth = callPackage ./seth.nix { }; seth = callPackage ./seth.nix { };
dapp = callPackage ./dapp.nix { }; dapp = callPackage ./dapp.nix { };
hsevm = (haskellPackages.callPackage ./hsevm.nix {}); hevm = (haskellPackages.callPackage ./hevm.nix {});
primecoin = callPackage ./primecoin.nix { withGui = true; }; primecoin = callPackage ./primecoin.nix { withGui = true; };
primecoind = callPackage ./primecoin.nix { withGui = false; }; primecoind = callPackage ./primecoin.nix { withGui = false; };

View file

@ -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 , base16-bytestring, base64-bytestring, binary, brick, bytestring
, cereal, containers, cryptonite, data-dword, deepseq, directory , cereal, containers, cryptonite, data-dword, deepseq, directory
, filepath, ghci-pretty, here, HUnit, lens, lens-aeson, memory , filepath, ghci-pretty, here, HUnit, lens
, monad-par, mtl, optparse-generic, process, QuickCheck , lens-aeson, memory, monad-par, mtl, optparse-generic, process
, quickcheck-text, readline, rosezipper, scientific, stdenv, tasty, tasty-hunit , QuickCheck, quickcheck-text, readline, rosezipper, scientific
, tasty-quickcheck, temporary, text, text-format , stdenv, tasty, tasty-hunit, tasty-quickcheck, temporary, text
, unordered-containers, vector, vty , text-format, time, unordered-containers, vector, vty
, restless-git
, fetchFromGitHub, lib, makeWrapper , fetchFromGitHub, lib, makeWrapper
, ncurses, zlib, bzip2, solc, coreutils , ncurses, zlib, bzip2, solc, coreutils
, bash
}: }:
lib.overrideDerivation (mkDerivation rec { lib.overrideDerivation (mkDerivation rec {
pname = "hsevm"; pname = "hevm";
version = "0.6.4"; version = "0.8.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dapphub"; owner = "dapphub";
repo = "hsevm"; repo = "hevm";
rev = "v${version}"; rev = "v${version}";
sha256 = "01b67k9cam4gvsi07q3vx527m1w6p6xll64k1nl27bc8ik6jh8l9"; sha256 = "1a27bh0azf2hdg5hp6s9azv2rhzy7vrlq1kmg688g9nfwwwhgkp0";
}; };
isLibrary = false; isLibrary = false;
@ -26,8 +30,9 @@ lib.overrideDerivation (mkDerivation rec {
enableSharedExecutables = false; enableSharedExecutables = false;
postInstall = '' postInstall = ''
rm -rf $out/{lib,share} wrapProgram $out/bin/hevm \
wrapProgram $out/bin/hsevm --add-flags '+RTS -N$((`${coreutils}/bin/nproc` - 1)) -RTS' --add-flags '+RTS -N$((`${coreutils}/bin/nproc` - 1)) -RTS' \
--suffix PATH : "${lib.makeBinPath [bash coreutils]}"
''; '';
extraLibraries = [ extraLibraries = [
@ -36,17 +41,17 @@ lib.overrideDerivation (mkDerivation rec {
cryptonite data-dword deepseq directory filepath ghci-pretty lens cryptonite data-dword deepseq directory filepath ghci-pretty lens
lens-aeson memory monad-par mtl optparse-generic process QuickCheck lens-aeson memory monad-par mtl optparse-generic process QuickCheck
quickcheck-text readline rosezipper scientific temporary text text-format quickcheck-text readline rosezipper scientific temporary text text-format
unordered-containers vector vty unordered-containers vector vty restless-git
]; ];
executableHaskellDepends = [ executableHaskellDepends = [
readline zlib bzip2 async readline zlib bzip2
]; ];
testHaskellDepends = [ testHaskellDepends = [
base binary bytestring ghci-pretty here HUnit lens mtl QuickCheck base binary bytestring ghci-pretty here HUnit lens mtl QuickCheck
tasty tasty-hunit tasty-quickcheck text vector tasty tasty-hunit tasty-quickcheck text vector
]; ];
homepage = https://github.com/dapphub/hsevm; homepage = https://github.com/dapphub/hevm;
description = "Ethereum virtual machine evaluator"; description = "Ethereum virtual machine evaluator";
license = stdenv.lib.licenses.agpl3; license = stdenv.lib.licenses.agpl3;
maintainers = [stdenv.lib.maintainers.dbrock]; maintainers = [stdenv.lib.maintainers.dbrock];

View file

@ -957,4 +957,6 @@ self: super: {
protolude = super.protolude_0_2; protolude = super.protolude_0_2;
}; };
# test suite requires git and does a bunch of git operations
restless-git = dontCheck super.restless-git;
} }

View file

@ -13542,7 +13542,7 @@ with pkgs;
ethrun = self.altcoins.ethrun; ethrun = self.altcoins.ethrun;
seth = self.altcoins.seth; seth = self.altcoins.seth;
dapp = self.altcoins.dapp; dapp = self.altcoins.dapp;
hsevm = self.altcoins.hsevm; hevm = self.altcoins.hevm;
stellar-core = self.altcoins.stellar-core; stellar-core = self.altcoins.stellar-core;