tangled
alpha
login
or
join now
dunkirk.sh
/
battleship-arena
1
fork
atom
a geicko-2 based round robin ranking system designed to test c++ battleship submissions
battleship.dunkirk.sh
1
fork
atom
overview
issues
pulls
pipelines
chore: add flake
dunkirk.sh
3 months ago
4d850135
30ced41a
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+86
-1
3 changed files
expand all
collapse all
unified
split
flake.lock
flake.nix
go.mod
+27
flake.lock
···
1
1
+
{
2
2
+
"nodes": {
3
3
+
"nixpkgs": {
4
4
+
"locked": {
5
5
+
"lastModified": 1764517877,
6
6
+
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
7
7
+
"owner": "NixOS",
8
8
+
"repo": "nixpkgs",
9
9
+
"rev": "2d293cbfa5a793b4c50d17c05ef9e385b90edf6c",
10
10
+
"type": "github"
11
11
+
},
12
12
+
"original": {
13
13
+
"owner": "NixOS",
14
14
+
"ref": "nixos-unstable",
15
15
+
"repo": "nixpkgs",
16
16
+
"type": "github"
17
17
+
}
18
18
+
},
19
19
+
"root": {
20
20
+
"inputs": {
21
21
+
"nixpkgs": "nixpkgs"
22
22
+
}
23
23
+
}
24
24
+
},
25
25
+
"root": "root",
26
26
+
"version": 7
27
27
+
}
+58
flake.nix
···
1
1
+
{
2
2
+
description = "Battleship Arena - SSH battleship tournament service";
3
3
+
4
4
+
inputs = {
5
5
+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6
6
+
};
7
7
+
8
8
+
outputs =
9
9
+
{ self, nixpkgs }:
10
10
+
let
11
11
+
allSystems = [
12
12
+
"x86_64-linux"
13
13
+
"aarch64-linux"
14
14
+
"x86_64-darwin"
15
15
+
"aarch64-darwin"
16
16
+
];
17
17
+
forAllSystems =
18
18
+
f:
19
19
+
nixpkgs.lib.genAttrs allSystems (
20
20
+
system:
21
21
+
f {
22
22
+
pkgs = import nixpkgs { inherit system; };
23
23
+
}
24
24
+
);
25
25
+
in
26
26
+
{
27
27
+
packages = forAllSystems (
28
28
+
{ pkgs }:
29
29
+
{
30
30
+
default = pkgs.buildGoModule {
31
31
+
pname = "battleship-arena";
32
32
+
version = "0.1.0";
33
33
+
subPackages = [ "cmd/battleship-arena" ];
34
34
+
src = self;
35
35
+
36
36
+
vendorHash = null;
37
37
+
38
38
+
nativeBuildInputs = [ pkgs.makeWrapper ];
39
39
+
buildInputs = [ pkgs.gcc ];
40
40
+
41
41
+
env.CGO_ENABLED = "1";
42
42
+
43
43
+
ldflags = [
44
44
+
"-s"
45
45
+
"-w"
46
46
+
];
47
47
+
48
48
+
meta = with pkgs.lib; {
49
49
+
description = "SSH-based battleship tournament service";
50
50
+
homepage = "https://github.com/taciturnaxolotl/battleship-arena";
51
51
+
license = licenses.mit;
52
52
+
mainProgram = "battleship-arena";
53
53
+
};
54
54
+
};
55
55
+
}
56
56
+
);
57
57
+
};
58
58
+
}
+1
-1
go.mod
···
11
11
github.com/go-chi/chi/v5 v5.2.3
12
12
github.com/mattn/go-sqlite3 v1.14.32
13
13
github.com/pkg/sftp v1.13.10
14
14
+
golang.org/x/crypto v0.41.0
14
15
)
15
16
16
17
require (
···
40
41
github.com/muesli/termenv v0.16.0 // indirect
41
42
github.com/rivo/uniseg v0.4.7 // indirect
42
43
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
43
43
-
golang.org/x/crypto v0.41.0 // indirect
44
44
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
45
45
golang.org/x/sys v0.36.0 // indirect
46
46
golang.org/x/text v0.28.0 // indirect