summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorDylan <boss@tehbox.org>2026-10-19 00:37:17 +1300
committerDylan <boss@tehbox.org>2026-10-19 00:38:55 +1300
commit15bdaa5d550115d97be3f89126c924b49c10a70f (patch)
tree079fc3554598ae92a7b588b34ea7e787629133b9 /flake.nix
downloadtigers-and-sheep-15bdaa5d550115d97be3f89126c924b49c10a70f.tar.gz
tigers-and-sheep-15bdaa5d550115d97be3f89126c924b49c10a70f.zip
feat: Initial commit
What works: - Minimax search - With a simple player claude designed - Manual player - Move generation - Board display What needs improvement: - Manual player - Game coordinator - Draw checking - Nix setup
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..2c3f987
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,38 @@
+{
+ inputs = {
+ naersk.url = "github:nix-community/naersk/master";
+ nixpkgs.url = "github:nixos/nixpkgs/26.05";
+ utils.url = "github:numtide/flake-utils";
+ };
+
+ outputs =
+ {
+ self,
+ nixpkgs,
+ utils,
+ naersk,
+ }:
+ utils.lib.eachDefaultSystem (
+ system:
+ let
+ pkgs = import nixpkgs { inherit system; };
+ naersk-lib = pkgs.callPackage naersk { };
+ in
+ {
+ defaultPackage = naersk-lib.buildPackage ./.;
+ devShell =
+ with pkgs;
+ mkShell {
+ buildInputs = [
+ cargo
+ rustc
+ rustfmt
+ pre-commit
+ rustPackages.clippy
+ rust-analyzer
+ ];
+ RUST_SRC_PATH = rustPlatform.rustLibSrc;
+ };
+ }
+ );
+}