2017-06-15 14:46:26 +03:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
2017-09-22 07:50:11 +03:00
|
|
|
, seth, git, solc, shellcheck, nodejs, hevm }:
|
2017-06-15 14:46:26 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dapp";
|
2017-09-22 07:50:11 +03:00
|
|
|
version = "0.5.7";
|
2017-06-15 14:46:26 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dapphub";
|
|
|
|
repo = "dapp";
|
|
|
|
rev = "v${version}";
|
2017-09-22 07:50:11 +03:00
|
|
|
sha256 = "128f35hczarihb263as391wr9zbyc1q1p49qbxh30via23r1brb0";
|
2017-06-15 14:46:26 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [makeWrapper shellcheck];
|
|
|
|
buildPhase = "true";
|
2017-07-18 11:09:47 +03:00
|
|
|
doCheck = true;
|
2017-06-15 14:46:26 +03:00
|
|
|
checkPhase = "make test";
|
|
|
|
makeFlags = ["prefix=$(out)"];
|
|
|
|
postInstall = let path = lib.makeBinPath [
|
2017-09-22 07:50:11 +03:00
|
|
|
nodejs solc git seth hevm
|
2017-06-15 14:46:26 +03:00
|
|
|
]; in ''
|
|
|
|
wrapProgram "$out/bin/dapp" --prefix PATH : "${path}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simple tool for creating Ethereum-based dapps";
|
|
|
|
homepage = https://github.com/dapphub/dapp/;
|
|
|
|
maintainers = [stdenv.lib.maintainers.dbrock];
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|