From 209994145da3e08db890082bbb4e3eda75e2ad5d Mon Sep 17 00:00:00 2001 From: aleksana Date: Wed, 7 Jun 2023 22:54:20 +0800 Subject: [PATCH] minesweep-rs: init at 6.0.11 --- pkgs/games/minesweep-rs/default.nix | 27 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/games/minesweep-rs/default.nix diff --git a/pkgs/games/minesweep-rs/default.nix b/pkgs/games/minesweep-rs/default.nix new file mode 100644 index 000000000000..6e248f7f82f9 --- /dev/null +++ b/pkgs/games/minesweep-rs/default.nix @@ -0,0 +1,27 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "minesweep-rs"; + version = "6.0.11"; + + src = fetchFromGitHub { + owner = "cpcloud"; + repo = pname; + rev = "v${version}"; + hash = "sha256-jGg6GrPDPOWvIQiZ9UJbGHLaxTxSV7EvqIcEoGrfRZ0="; + }; + + cargoHash = "sha256-IKf44wCCzXcasuimnAwnEhJGmag67rGxQE7+rBEUVOI="; + + meta = with lib; { + description = "Sweep some mines for fun, and probably not for profit"; + homepage = "https://github.com/cpcloud/minesweep-rs"; + license = licenses.asl20; + mainProgram = "minesweep"; + maintainers = with maintainers; [ aleksana ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 61b2cc4edbeb..aed4cc10e45c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -36854,6 +36854,8 @@ with pkgs; minecraftServers = import ../games/minecraft-servers { inherit callPackage lib javaPackages; }; minecraft-server = minecraftServers.vanilla; # backwards compatibility + minesweep-rs = callPackage ../games/minesweep-rs { }; + moon-buggy = callPackage ../games/moon-buggy { }; inherit (callPackages ../games/minetest {