mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
02297beade
Lots of packages are missing versions in their name. This adds them where appropriate. These were found with this command: $ nix-env -qa -f. | grep -v '\-[0-9A-Za-z.-_+]*$' | grep -v '^hook$' See issue #41007.
33 lines
876 B
Nix
33 lines
876 B
Nix
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
|
, seth, git, solc, shellcheck, nodejs, hevm }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "dapp-${version}";
|
|
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;
|
|
};
|
|
}
|