nixpkgs/pkgs/applications/altcoins/hsevm.nix

57 lines
1.9 KiB
Nix
Raw Normal View History

2017-07-31 13:12:08 +03:00
{ mkDerivation, abstract-par, aeson, ansi-wl-pprint, 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
, fetchFromGitHub, lib, makeWrapper
, ncurses, zlib, bzip2, solc, coreutils
2017-07-05 20:24:09 +03:00
}:
lib.overrideDerivation (mkDerivation rec {
pname = "hsevm";
2017-07-31 13:12:08 +03:00
version = "0.6.4";
2017-07-05 20:24:09 +03:00
src = fetchFromGitHub {
owner = "dapphub";
repo = "hsevm";
rev = "v${version}";
2017-07-31 13:12:08 +03:00
sha256 = "01b67k9cam4gvsi07q3vx527m1w6p6xll64k1nl27bc8ik6jh8l9";
2017-07-05 20:24:09 +03:00
};
isLibrary = false;
isExecutable = true;
enableSharedExecutables = false;
postInstall = ''
rm -rf $out/{lib,share}
2017-07-31 13:12:08 +03:00
wrapProgram $out/bin/hsevm --add-flags '+RTS -N$((`${coreutils}/bin/nproc` - 1)) -RTS'
2017-07-05 20:24:09 +03:00
'';
extraLibraries = [
2017-07-31 13:12:08 +03:00
abstract-par aeson ansi-wl-pprint base base16-bytestring
base64-bytestring binary brick bytestring cereal containers
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
2017-07-05 20:24:09 +03:00
];
executableHaskellDepends = [
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;
2017-07-05 20:24:09 +03:00
description = "Ethereum virtual machine evaluator";
license = stdenv.lib.licenses.agpl3;
maintainers = [stdenv.lib.maintainers.dbrock];
}) (attrs: {
buildInputs = attrs.buildInputs ++ [solc];
2017-07-31 13:12:08 +03:00
nativeBuildInputs = attrs.nativeBuildInputs ++ [makeWrapper];
2017-07-05 20:24:09 +03:00
})