summary refs log blame commit diff
path: root/pkgs/applications/altcoins/dapp.nix
blob: 6ad66a24397f3ab500419ec6fe75a8dc6e05d944 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                           
                                              


                         
                    




                         
                                                                    



                                               
                 


                                            
                             











                                                                  
{ 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;
  };
}