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";
|
|
|
|
description = "The game of 2048 implemented in Tcl";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers; [ dbohdan ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|