diff options
author | legendofmiracles <legendofmiracles@protonmail.com> | 2022-02-06 13:23:08 -0600 |
---|---|---|
committer | legendofmiracles <legendofmiracles@protonmail.com> | 2022-02-06 16:06:35 -0600 |
commit | c0217caf80718e770cb1ec2fc1f9c4bc4c159158 (patch) | |
tree | 9a9acea93c93e479bfdc9ed9ff462ce5d2e8bbd0 /pkgs/games/cl-wordle | |
parent | 7f715c21dbe9dbe6caa2aa5e7ad9178752ff486a (diff) |
cl-wordle: init at 0.1.2
Diffstat (limited to 'pkgs/games/cl-wordle')
-rw-r--r-- | pkgs/games/cl-wordle/default.nix | 24 | ||||
-rw-r--r-- | pkgs/games/cl-wordle/rust-1-57.diff | 13 |
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/games/cl-wordle/default.nix b/pkgs/games/cl-wordle/default.nix new file mode 100644 index 000000000000..e80dacc6470e --- /dev/null +++ b/pkgs/games/cl-wordle/default.nix @@ -0,0 +1,24 @@ +{ lib, rustPlatform, fetchCrate }: + +rustPlatform.buildRustPackage rec { + pname = "cl-wordle"; + version = "0.1.2"; + + src = fetchCrate { + inherit pname version; + sha256 = "sha256-mcPC2Lj+Vsytfl3+ghYn74QRfM6U4dQLUybtCqkjKlk="; + }; + + cargoSha256 = "sha256-3Ef8gLFWIAYpKdPixvILvDee5Gezh68hc9TR5+zRX0I="; + + patches = [ ./rust-1-57.diff ]; + + 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"; + }; +} diff --git a/pkgs/games/cl-wordle/rust-1-57.diff b/pkgs/games/cl-wordle/rust-1-57.diff new file mode 100644 index 000000000000..32b95bdaae97 --- /dev/null +++ b/pkgs/games/cl-wordle/rust-1-57.diff @@ -0,0 +1,13 @@ +diff --git a/src/bin/wordle/game.rs b/src/bin/wordle/game.rs +index 8500732..6f26e2a 100644 +--- a/src/bin/wordle/game.rs ++++ b/src/bin/wordle/game.rs +@@ -235,7 +235,7 @@ impl Display for GameShare { + score = self.score + )?; + for m in &self.matches { +- write!(f, "\n{m}")?; ++ write!(f, "\n{}", m)?; + } + Ok(()) + } |