2021-01-15 07:31:39 +03:00
|
|
|
{ lib, stdenv, fetchurl, tcl, tcllib, runtimeShell }:
|
2014-08-31 12:48:51 +04:00
|
|
|
|
2021-06-23 00:44:58 +03:00
|
|
|
tcl.mkTclDerivation rec {
|
|
|
|
pname = "tcl2048";
|
|
|
|
version = "0.4.0";
|
2014-08-31 12:48:51 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-23 00:44:58 +03:00
|
|
|
url = "https://raw.githubusercontent.com/dbohdan/2048.tcl/v${version}/2048.tcl";
|
2018-05-15 22:50:45 +03:00
|
|
|
sha256 = "53f5503efd7f029b2614b0f9b1e3aac6c0342735a3c9b811d74a5135fee3e89e";
|
2014-08-31 12:48:51 +04:00
|
|
|
};
|
|
|
|
|
2021-05-01 02:23:34 +03:00
|
|
|
buildInputs = [ tcllib ];
|
2021-07-25 01:39:40 +03:00
|
|
|
dontUnpack = true;
|
2015-02-03 14:00:59 +03:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out/bin
|
2021-05-01 02:23:34 +03:00
|
|
|
install -m 755 $src $out/bin/2048
|
2015-02-03 14:00:59 +03:00
|
|
|
'';
|
2014-08-31 12:48:51 +04:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/dbohdan/2048.tcl";
|
2014-11-11 16:20:43 +03:00
|
|
|
description = "The game of 2048 implemented in Tcl";
|
2021-01-15 07:31:39 +03:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ dbohdan ];
|
2022-05-05 03:46:39 +03:00
|
|
|
mainProgram = "2048";
|
|
|
|
platforms = lib.platforms.all;
|
2014-08-31 12:48:51 +04:00
|
|
|
};
|
|
|
|
}
|