Skip to content

Commit a5f5550

Browse files
committed
add flake, update go mods
1 parent 923e722 commit a5f5550

7 files changed

Lines changed: 342 additions & 7 deletions

File tree

.envrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
use flake
4+

connect/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module bringyour.com/connect
22

3-
go 1.22.5
3+
go 1.22.0
44

55
require (
66
bringyour.com/protocol v0.0.0
7-
github.com/bringyour/webrtc-conn v0.0.2
7+
github.com/bringyour/webrtc-conn v0.0.3
88
github.com/go-playground/assert/v2 v2.2.0
99
github.com/golang-jwt/jwt/v5 v5.2.0
1010
github.com/google/gopacket v1.1.19

connect/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/bringyour/webrtc-conn v0.0.2 h1:19XI923zrRTSeuhP1a5dxVwyGGVT+MuzALKNARQekAM=
2-
github.com/bringyour/webrtc-conn v0.0.2/go.mod h1:JqQ4Gyj8eseA8D+Qn67j3xB9motWKSerjfz8oWmrc2w=
1+
github.com/bringyour/webrtc-conn v0.0.3 h1:BSeLu9l31HGWpBvz1NmmuMfRgFiIrCvnopfZEuNoXGg=
2+
github.com/bringyour/webrtc-conn v0.0.3/go.mod h1:iKpYIadSl8wpVF/Z3dPK7h1eBCcNxwgSxCLXPPYxMGI=
33
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
44
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
55
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=

connectctl/go.mod

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,45 @@ require (
1414
)
1515

1616
require (
17+
github.com/bringyour/webrtc-conn v0.0.3 // indirect
18+
github.com/davecgh/go-spew v1.1.1 // indirect
19+
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
1720
github.com/golang/glog v1.2.1 // indirect
1821
github.com/google/gopacket v1.1.19 // indirect
22+
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 // indirect
23+
github.com/google/uuid v1.6.0 // indirect
1924
github.com/gorilla/websocket v1.5.0 // indirect
2025
github.com/oklog/ulid/v2 v2.1.0 // indirect
21-
golang.org/x/exp v0.0.0-20230713183714-613f0c0eb8a1 // indirect
26+
github.com/onsi/ginkgo/v2 v2.9.5 // indirect
27+
github.com/pion/datachannel v1.5.8 // indirect
28+
github.com/pion/dtls/v2 v2.2.12 // indirect
29+
github.com/pion/ice/v2 v2.3.34 // indirect
30+
github.com/pion/interceptor v0.1.30 // indirect
31+
github.com/pion/logging v0.2.2 // indirect
32+
github.com/pion/mdns v0.0.12 // indirect
33+
github.com/pion/randutil v0.1.0 // indirect
34+
github.com/pion/rtcp v1.2.14 // indirect
35+
github.com/pion/rtp v1.8.9 // indirect
36+
github.com/pion/sctp v1.8.21 // indirect
37+
github.com/pion/sdp/v3 v3.0.9 // indirect
38+
github.com/pion/srtp/v2 v2.0.20 // indirect
39+
github.com/pion/stun v0.6.1 // indirect
40+
github.com/pion/transport/v2 v2.2.10 // indirect
41+
github.com/pion/turn/v2 v2.1.6 // indirect
42+
github.com/pion/webrtc/v3 v3.3.0 // indirect
43+
github.com/pmezard/go-difflib v1.0.0 // indirect
44+
github.com/quic-go/quic-go v0.46.0 // indirect
45+
github.com/stretchr/testify v1.9.0 // indirect
46+
github.com/wlynxg/anet v0.0.3 // indirect
47+
go.uber.org/mock v0.4.0 // indirect
48+
golang.org/x/crypto v0.26.0 // indirect
49+
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
50+
golang.org/x/mod v0.17.0 // indirect
51+
golang.org/x/net v0.27.0 // indirect
52+
golang.org/x/sys v0.24.0 // indirect
53+
golang.org/x/text v0.17.0 // indirect
54+
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
2255
google.golang.org/protobuf v1.33.0 // indirect
56+
gopkg.in/yaml.v3 v3.0.1 // indirect
57+
src.agwa.name/tlshacks v0.0.0-20231008131857-90d701ba3225 // indirect
2358
)

connectctl/go.sum

Lines changed: 166 additions & 2 deletions
Large diffs are not rendered by default.

flake.lock

Lines changed: 78 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
description = "ethereum-validator-watch";
3+
inputs = {
4+
devshell = {
5+
url = "github:numtide/devshell";
6+
inputs.systems.follows = "systems";
7+
};
8+
nixpkgs = { url = "github:NixOS/nixpkgs/nixos-24.05"; };
9+
systems.url = "github:nix-systems/default";
10+
11+
};
12+
13+
outputs = { self, nixpkgs, systems, ... }@inputs:
14+
let
15+
eachSystem = f:
16+
nixpkgs.lib.genAttrs (import systems) (system:
17+
f (import nixpkgs {
18+
inherit system;
19+
overlays = [ goverlay ];
20+
config = { allowUnfree = true; };
21+
}));
22+
version = "1.22.4";
23+
goverlay = final: prev: {
24+
go = prev.go.overrideAttrs (old: {
25+
inherit version;
26+
src = final.fetchurl {
27+
url = "https://go.dev/dl/go${version}.src.tar.gz";
28+
sha256 = "sha256-/tcgZ45yinyjC6jR3tHKr+J9FgKPqwIyuLqOIgCPt4Q=";
29+
};
30+
});
31+
};
32+
33+
in {
34+
devShells = eachSystem (pkgs: {
35+
default = pkgs.mkShell {
36+
shellHook = ''
37+
# Set here the env vars you want to be available in the shell
38+
'';
39+
hardeningDisable = [ "all" ];
40+
41+
packages = [
42+
pkgs.go
43+
pkgs.gopls
44+
pkgs.gops
45+
pkgs.go-tools
46+
pkgs.tmux
47+
pkgs.nodejs_20
48+
pkgs.python39Full
49+
];
50+
};
51+
});
52+
};
53+
}
54+

0 commit comments

Comments
 (0)