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