Skip to content

Commit 1514b27

Browse files
committed
feat(pkgs/nitro-devnode): Implement package for nitro-devnode commit dd51c52
1 parent 1ccba1d commit 1514b27

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

packages/all-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
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;
@@ -196,6 +197,7 @@
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; };

packages/nitro-devnode/default.nix

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
}

shells/stylus.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)