2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, tcl, tcllib, runtimeShell }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
tcl.mkTclDerivation rec {
|
|
|
|
pname = "tcl2048";
|
|
|
|
version = "0.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-28 23:13:55 +00:00
|
|
|
url = "https://raw.githubusercontent.com/dbohdan/2048.tcl/v${version}/2048.tcl";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "53f5503efd7f029b2614b0f9b1e3aac6c0342735a3c9b811d74a5135fee3e89e";
|
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ tcllib ];
|
2021-08-05 21:33:18 +00:00
|
|
|
dontUnpack = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out/bin
|
2021-06-28 23:13:55 +00:00
|
|
|
install -m 755 $src $out/bin/2048
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/dbohdan/2048.tcl";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Game of 2048 implemented in Tcl";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ dbohdan ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "2048";
|
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|