File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 122122
123123 foundry = callPackage ./foundry/default.nix { inherit unstable-pkgs ; } ;
124124 cargo-stylus = callPackage ./cargo-stylus/default.nix { inherit unstable-pkgs ; } ;
125+ nitro-devnode = callPackage ./nitro-devnode/default.nix { inherit foundry ; } ;
125126
126127 polkadot-generic = callPackage ./polkadot/default.nix {
127128 craneLib = craneLib-stable ;
196197
197198 inherit foundry ;
198199 inherit cargo-stylus ;
200+ inherit nitro-devnode ;
199201
200202 gaiad = callPackage ./gaiad { } ;
201203 cosmos-theta-testnet = callPackage ./cosmos-theta-testnet { inherit gaiad ; } ;
Original file line number Diff line number Diff line change 1+ {
2+ foundry ,
3+ pkgs ,
4+ stdenv ,
5+ } :
6+ with pkgs ;
7+ stdenv . mkDerivation rec {
8+ pname = "nitro-devnode" ;
9+ version = "dd51c52" ;
10+
11+ src = fetchFromGitHub {
12+ owner = "OffchainLabs" ;
13+ repo = "nitro-devnode" ;
14+ rev = "dd51c52129276f940632a4c4bf13844a93499a9f" ;
15+ hash = "sha256-0ppC05xfVOrcn2yATni3n3oh4A8MEMdgvhs8E2wNsr8=" ;
16+ } ;
17+
18+ buildInputs = [
19+ bash
20+ docker
21+ foundry
22+ ] ;
23+
24+ buildPhase = ''
25+ mkdir -p $out/bin
26+ cp ${ src } /run-dev-node.sh $out/bin/run-nitro-devnode
27+ '' ;
28+
29+ meta = {
30+ description = "A script for running an Arbitrum Nitro dev node and deploying contracts for testing." ;
31+ homepage = "https://github.com/OffchainLabs/nitro-devnode" ;
32+ license = [
33+ lib . licenses . asl20
34+ ] ;
35+ } ;
36+ }
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ mkShell {
44 packages = [
55 metacraft-labs . foundry
66 metacraft-labs . cargo-stylus
7+ metacraft-labs . nitro-devnode
78 ] ;
89}
You can’t perform that action at this time.
0 commit comments