2017-06-15 11:46:26 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
2017-09-22 04:50:11 +00:00
|
|
|
, seth, git, solc, shellcheck, nodejs, hevm }:
|
2017-06-15 11:46:26 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dapp";
|
2017-09-22 04:50:11 +00:00
|
|
|
version = "0.5.7";
|
2017-06-15 11:46:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dapphub";
|
|
|
|
repo = "dapp";
|
|
|
|
rev = "v${version}";
|
2017-09-22 04:50:11 +00:00
|
|
|
sha256 = "128f35hczarihb263as391wr9zbyc1q1p49qbxh30via23r1brb0";
|
2017-06-15 11:46:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [makeWrapper shellcheck];
|
|
|
|
buildPhase = "true";
|
2017-07-18 08:09:47 +00:00
|
|
|
doCheck = true;
|
2017-06-15 11:46:26 +00:00
|
|
|
checkPhase = "make test";
|
|
|
|
makeFlags = ["prefix=$(out)"];
|
|
|
|
postInstall = let path = lib.makeBinPath [
|
2017-09-22 04:50:11 +00:00
|
|
|
nodejs solc git seth hevm
|
2017-06-15 11:46:26 +00: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;
|
|
|
|
};
|
|
|
|
}
|