git.iko.soy/typeable/nixpkgs
on master help sign in
cl-wordle: init at 0.1.2
commitc0217caf80718e770cb1ec2fc1f9c4bc4c159158 authorlegendofmiracles <legendofmiracles@protonmail.com> dateSun 6 Feb 2022, 13:23 (5 years ago) parent7f715c2
3 files changed+39
pkgs/games/cl-wordle/default.nix+24 pkgs/games/cl-wordle/rust-1-57.diff+13 pkgs/top-level/all-packages.nix+2
pkgs/games/cl-wordle/default.nixnew file+24
@@ -0,0 +1,24 @@
1+{ lib, rustPlatform, fetchCrate }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "cl-wordle";
5+ version = "0.1.2";
6+
7+ src = fetchCrate {
8+ inherit pname version;
9+ sha256 = "sha256-mcPC2Lj+Vsytfl3+ghYn74QRfM6U4dQLUybtCqkjKlk=";
10+ };
11+
12+ cargoSha256 = "sha256-3Ef8gLFWIAYpKdPixvILvDee5Gezh68hc9TR5+zRX0I=";
13+
14+ patches = [ ./rust-1-57.diff ];
15+
16+ meta = with lib; {
17+ description = "Wordle TUI in Rust";
18+ homepage = "https://github.com/conradludgate/wordle";
19+ # repo has no license, but crates.io says it's MIT
20+ license = licenses.mit;
21+ maintainers = with maintainers; [ lom ];
22+ mainProgram = "wordle";
23+ };
24+}
pkgs/games/cl-wordle/rust-1-57.diffnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/src/bin/wordle/game.rs b/src/bin/wordle/game.rs
2+index 8500732..6f26e2a 100644
3+--- a/src/bin/wordle/game.rs
4++++ b/src/bin/wordle/game.rs
5+@@ -235,7 +235,7 @@ impl Display for GameShare {
6+ score = self.score
7+ )?;
8+ for m in &self.matches {
9+- write!(f, "\n{m}")?;
10++ write!(f, "\n{}", m)?;
11+ }
12+ Ok(())
13+ }
pkgs/top-level/all-packages.nix+2
@@ -29908,6 +29908,8 @@ with pkgs;
2990829908
2990929909 wofi-emoji = callPackage ../applications/misc/wofi-emoji { };
2991029910
29911+ cl-wordle = callPackage ../games/cl-wordle { };
29912+
2991129913 wordnet = callPackage ../applications/misc/wordnet {
2991229914 inherit (darwin.apple_sdk.frameworks) Cocoa;
2991329915 };