a geicko-2 based round robin ranking system designed to test c++ battleship submissions battleship.dunkirk.sh

chore: add flake

dunkirk.sh 4d850135 30ced41a

verified
Changed files
+86 -1
+27
flake.lock
···
+
{
+
"nodes": {
+
"nixpkgs": {
+
"locked": {
+
"lastModified": 1764517877,
+
"narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=",
+
"owner": "NixOS",
+
"repo": "nixpkgs",
+
"rev": "2d293cbfa5a793b4c50d17c05ef9e385b90edf6c",
+
"type": "github"
+
},
+
"original": {
+
"owner": "NixOS",
+
"ref": "nixos-unstable",
+
"repo": "nixpkgs",
+
"type": "github"
+
}
+
},
+
"root": {
+
"inputs": {
+
"nixpkgs": "nixpkgs"
+
}
+
}
+
},
+
"root": "root",
+
"version": 7
+
}
+58
flake.nix
···
+
{
+
description = "Battleship Arena - SSH battleship tournament service";
+
+
inputs = {
+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+
};
+
+
outputs =
+
{ self, nixpkgs }:
+
let
+
allSystems = [
+
"x86_64-linux"
+
"aarch64-linux"
+
"x86_64-darwin"
+
"aarch64-darwin"
+
];
+
forAllSystems =
+
f:
+
nixpkgs.lib.genAttrs allSystems (
+
system:
+
f {
+
pkgs = import nixpkgs { inherit system; };
+
}
+
);
+
in
+
{
+
packages = forAllSystems (
+
{ pkgs }:
+
{
+
default = pkgs.buildGoModule {
+
pname = "battleship-arena";
+
version = "0.1.0";
+
subPackages = [ "cmd/battleship-arena" ];
+
src = self;
+
+
vendorHash = null;
+
+
nativeBuildInputs = [ pkgs.makeWrapper ];
+
buildInputs = [ pkgs.gcc ];
+
+
env.CGO_ENABLED = "1";
+
+
ldflags = [
+
"-s"
+
"-w"
+
];
+
+
meta = with pkgs.lib; {
+
description = "SSH-based battleship tournament service";
+
homepage = "https://github.com/taciturnaxolotl/battleship-arena";
+
license = licenses.mit;
+
mainProgram = "battleship-arena";
+
};
+
};
+
}
+
);
+
};
+
}
+1 -1
go.mod
···
github.com/go-chi/chi/v5 v5.2.3
github.com/mattn/go-sqlite3 v1.14.32
github.com/pkg/sftp v1.13.10
+
golang.org/x/crypto v0.41.0
)
require (
···
github.com/muesli/termenv v0.16.0 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
-
golang.org/x/crypto v0.41.0 // indirect
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
golang.org/x/sys v0.36.0 // indirect
golang.org/x/text v0.28.0 // indirect