11 pname = "gerbil-ethereum";
12 version = "unstable-2023-12-04";
13 git-version = "0.2-11-g124ec58";
14 softwareName = "Gerbil-ethereum";
15 gerbil-package = "clan/ethereum";
16 version-path = "version";
18 gerbilInputs = with gerbilPackages; [
27 fun = fetchFromGitHub;
28 owner = "mighty-gerbils";
29 repo = "gerbil-ethereum";
30 rev = "124ec585157e2c505cd3c449a389c124ca6da9e9";
31 sha256 = "0xg07k421r5p0qx98id66k0k2l3vi1is875857sd8q3h6bks0z54";
35 cp scripts/{croesus.prv,genesis.json,logback.xml,yolo-evm.conf,yolo-kevm.conf,run-ethereum-test-net.ss} $out/gerbil/lib/clan/ethereum/scripts/
37 cat > $out/bin/run-ethereum-test-net <<EOF
40 ORIG_GERBIL_LOADPATH="\$GERBIL_LOADPATH"
41 ORIG_GERBIL_PATH="\$GERBIL_PATH"
42 ORIG_GERBIL_HOME="\$GERBIL_HOME"
44 GERBIL_LOADPATH="${gerbil-support.gerbilLoadPath ([ "$out" ] ++ gerbilInputs)}"
45 GERBIL_PATH="\$HOME/.cache/gerbil-ethereum/gerbil"
46 export GERBIL_PATH GERBIL_LOADPATH GLOW_SOURCE ORIG_GERBIL_PATH ORIG_GERBIL_LOADPATH
47 exec ${gerbil}/bin/gxi "\$0" "\$@"
49 (import :clan/ethereum/scripts/run-ethereum-test-net :std/lib/multicall)
50 (apply call-entry-point (cdr (command-line)))
52 chmod a+x $out/bin/run-ethereum-test-net
56 description = "Gerbil Ethereum: a Scheme alternative to web3.js";
57 homepage = "https://github.com/fare/gerbil-ethereum";
58 license = licenses.asl20;
59 platforms = platforms.unix;
60 maintainers = with maintainers; [ fare ];