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
+86 -1
+27
flake.lock
··· 1 + { 2 + "nodes": { 3 + "nixpkgs": { 4 + "locked": { 5 + "lastModified": 1764517877, 6 + "narHash": "sha256-pp3uT4hHijIC8JUK5MEqeAWmParJrgBVzHLNfJDZxg4=", 7 + "owner": "NixOS", 8 + "repo": "nixpkgs", 9 + "rev": "2d293cbfa5a793b4c50d17c05ef9e385b90edf6c", 10 + "type": "github" 11 + }, 12 + "original": { 13 + "owner": "NixOS", 14 + "ref": "nixos-unstable", 15 + "repo": "nixpkgs", 16 + "type": "github" 17 + } 18 + }, 19 + "root": { 20 + "inputs": { 21 + "nixpkgs": "nixpkgs" 22 + } 23 + } 24 + }, 25 + "root": "root", 26 + "version": 7 27 + }
+58
flake.nix
··· 1 + { 2 + description = "Battleship Arena - SSH battleship tournament service"; 3 + 4 + inputs = { 5 + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 6 + }; 7 + 8 + outputs = 9 + { self, nixpkgs }: 10 + let 11 + allSystems = [ 12 + "x86_64-linux" 13 + "aarch64-linux" 14 + "x86_64-darwin" 15 + "aarch64-darwin" 16 + ]; 17 + forAllSystems = 18 + f: 19 + nixpkgs.lib.genAttrs allSystems ( 20 + system: 21 + f { 22 + pkgs = import nixpkgs { inherit system; }; 23 + } 24 + ); 25 + in 26 + { 27 + packages = forAllSystems ( 28 + { pkgs }: 29 + { 30 + default = pkgs.buildGoModule { 31 + pname = "battleship-arena"; 32 + version = "0.1.0"; 33 + subPackages = [ "cmd/battleship-arena" ]; 34 + src = self; 35 + 36 + vendorHash = null; 37 + 38 + nativeBuildInputs = [ pkgs.makeWrapper ]; 39 + buildInputs = [ pkgs.gcc ]; 40 + 41 + env.CGO_ENABLED = "1"; 42 + 43 + ldflags = [ 44 + "-s" 45 + "-w" 46 + ]; 47 + 48 + meta = with pkgs.lib; { 49 + description = "SSH-based battleship tournament service"; 50 + homepage = "https://github.com/taciturnaxolotl/battleship-arena"; 51 + license = licenses.mit; 52 + mainProgram = "battleship-arena"; 53 + }; 54 + }; 55 + } 56 + ); 57 + }; 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 + 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 - 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