summary refs log tree commit diff
path: root/pkgs/games/cl-wordle/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/cl-wordle/default.nix')
-rw-r--r--pkgs/games/cl-wordle/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/games/cl-wordle/default.nix b/pkgs/games/cl-wordle/default.nix
new file mode 100644
index 00000000000..1ad3487c3fe
--- /dev/null
+++ b/pkgs/games/cl-wordle/default.nix
@@ -0,0 +1,22 @@
+{ lib, rustPlatform, fetchCrate }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "cl-wordle";
+  version = "0.4.0";
+
+  src = fetchCrate {
+    inherit pname version;
+    sha256 = "sha256-z2XpXgOviBRcberwpxQ4ml1T04k5kMhG7wA0PAYWENg=";
+  };
+
+  cargoSha256 = "sha256-C7UMkhgez2CtddftARlwN1TjZ1N26NnZfpRiX1KkMEA=";
+
+  meta = with lib; {
+    description = "Wordle TUI in Rust";
+    homepage = "https://github.com/conradludgate/wordle";
+    # repo has no license, but crates.io says it's MIT
+    license = licenses.mit;
+    maintainers = with maintainers; [ lom ];
+    mainProgram = "wordle";
+  };
+}