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