mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 16:11:58 +00:00
74edd2c5db
This also upgrades the hsevm package from v0.6.4 to v0.8.5. The project `dapp` which depends on hsevm was also updated to use the new name, so I have also upgraded that package from version v0.5.3 to v0.5.7. I also added a `dontCheck` to a Hackage dependency because its test suite depends on Git and runs a bunch of Git repository manipulations.
34 lines
865 B
Nix
34 lines
865 B
Nix
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
|
, seth, git, solc, shellcheck, nodejs, hevm }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "dapp";
|
|
version = "0.5.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dapphub";
|
|
repo = "dapp";
|
|
rev = "v${version}";
|
|
sha256 = "128f35hczarihb263as391wr9zbyc1q1p49qbxh30via23r1brb0";
|
|
};
|
|
|
|
nativeBuildInputs = [makeWrapper shellcheck];
|
|
buildPhase = "true";
|
|
doCheck = true;
|
|
checkPhase = "make test";
|
|
makeFlags = ["prefix=$(out)"];
|
|
postInstall = let path = lib.makeBinPath [
|
|
nodejs solc git seth hevm
|
|
]; 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;
|
|
};
|
|
}
|