summary refs log tree commit diff
path: root/pkgs/games/tcl2048
diff options
context:
space:
mode:
authorDanyil Bohdan <danyil.bohdan@gmail.com>2014-08-31 11:48:51 +0300
committerDanyil Bohdan <danyil.bohdan@gmail.com>2014-08-31 12:02:04 +0300
commitdba5fed12b4c7502f6dc6a541483f91193a081d4 (patch)
tree0602055c28db2a38eaf82725c9fb7954fb6c702b /pkgs/games/tcl2048
parent347dd52019d57ae15c25d56a36aa881c0badc05f (diff)
downloadnixpkgs-dba5fed12b4c7502f6dc6a541483f91193a081d4.tar
nixpkgs-dba5fed12b4c7502f6dc6a541483f91193a081d4.tar.gz
nixpkgs-dba5fed12b4c7502f6dc6a541483f91193a081d4.tar.bz2
nixpkgs-dba5fed12b4c7502f6dc6a541483f91193a081d4.tar.lz
nixpkgs-dba5fed12b4c7502f6dc6a541483f91193a081d4.tar.xz
nixpkgs-dba5fed12b4c7502f6dc6a541483f91193a081d4.tar.zst
nixpkgs-dba5fed12b4c7502f6dc6a541483f91193a081d4.zip
add game 'tcl2048'
Diffstat (limited to 'pkgs/games/tcl2048')
-rw-r--r--pkgs/games/tcl2048/builder.sh5
-rw-r--r--pkgs/games/tcl2048/default.nix19
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/games/tcl2048/builder.sh b/pkgs/games/tcl2048/builder.sh
new file mode 100644
index 00000000000..b34441cdc99
--- /dev/null
+++ b/pkgs/games/tcl2048/builder.sh
@@ -0,0 +1,5 @@
+source $stdenv/setup
+
+mkdir -p $out/bin
+cp $src $out/bin/2048
+chmod +x $out/bin/2048
diff --git a/pkgs/games/tcl2048/default.nix b/pkgs/games/tcl2048/default.nix
new file mode 100644
index 00000000000..4f8818ac39a
--- /dev/null
+++ b/pkgs/games/tcl2048/default.nix
@@ -0,0 +1,19 @@
+{ stdenv, fetchurl, tcl, tcllib }:
+
+stdenv.mkDerivation {
+  name = "tcl2048-0.2.5";
+
+  src = fetchurl {
+    url = https://raw.githubusercontent.com/dbohdan/2048-tcl/v0.2.5/2048.tcl;
+    sha256 = "b0d6e8a31dce8c1ca8dbbb8c513b50fbfb9cd6a313201941fa15531165bf68ce";
+  };
+
+  builder = ./builder.sh;
+
+  meta = {
+    homepage = https://github.com/dbohdan/2048-tcl;
+    description = "The game of 2048 implemented in Tcl.";
+    license = stdenv.lib.licenses.mit;
+    platforms = stdenv.lib.platforms.all;
+  };
+}