nixpkgs/pkgs/games/tcl2048/default.nix
Alexis Hildebrandt f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00

29 lines
724 B
Nix

{ lib, stdenv, fetchurl, tcl, tcllib, runtimeShell }:
tcl.mkTclDerivation rec {
pname = "tcl2048";
version = "0.4.0";
src = fetchurl {
url = "https://raw.githubusercontent.com/dbohdan/2048.tcl/v${version}/2048.tcl";
sha256 = "53f5503efd7f029b2614b0f9b1e3aac6c0342735a3c9b811d74a5135fee3e89e";
};
buildInputs = [ tcllib ];
dontUnpack = true;
installPhase = ''
mkdir -pv $out/bin
install -m 755 $src $out/bin/2048
'';
meta = {
homepage = "https://github.com/dbohdan/2048.tcl";
description = "Game of 2048 implemented in Tcl";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dbohdan ];
mainProgram = "2048";
platforms = lib.platforms.all;
};
}