Merge pull request #6116 from dbohdan/master
tcl2048: update to 0.3.1, fix tclsh path.
This commit is contained in:
commit
35e333241c
|
@ -1,5 +0,0 @@
|
||||||
source $stdenv/setup
|
|
||||||
|
|
||||||
mkdir -p $out/bin
|
|
||||||
cp $src $out/bin/2048
|
|
||||||
chmod +x $out/bin/2048
|
|
|
@ -1,19 +1,34 @@
|
||||||
{ stdenv, fetchurl, tcl, tcllib }:
|
{ stdenv, fetchurl, tcl, tcllib }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "tcl2048-0.2.6";
|
name = "tcl2048-0.3.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = https://raw.githubusercontent.com/dbohdan/2048-tcl/v0.2.6/2048.tcl;
|
url = https://raw.githubusercontent.com/dbohdan/2048-tcl/v0.3.1/2048.tcl;
|
||||||
sha256 = "481eac7cccc37d1122c3069da6186f584906bd27b86b8d4ae1a2d7e355c1b6b2";
|
sha256 = "44e325328784c4e91cecc0a9cc00e32d733da713adf2fad1c081542f38af3361";
|
||||||
};
|
};
|
||||||
|
|
||||||
builder = ./builder.sh;
|
phases = "installPhase";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -pv $out/bin
|
||||||
|
cp $src $out/2048.tcl
|
||||||
|
cat > $out/bin/2048 << EOF
|
||||||
|
#!${stdenv.shell}
|
||||||
|
|
||||||
|
# wrapper for tcl2048
|
||||||
|
export TCLLIBPATH="${tcllib}/lib/tcllib${tcllib.version}"
|
||||||
|
${tcl}/bin/tclsh $out/2048.tcl
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x $out/bin/2048
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://github.com/dbohdan/2048-tcl;
|
homepage = https://github.com/dbohdan/2048-tcl;
|
||||||
description = "The game of 2048 implemented in Tcl";
|
description = "The game of 2048 implemented in Tcl";
|
||||||
license = stdenv.lib.licenses.mit;
|
license = stdenv.lib.licenses.mit;
|
||||||
platforms = stdenv.lib.platforms.all;
|
platforms = stdenv.lib.platforms.all;
|
||||||
|
maintainers = with stdenv.lib.maintainers; [ dbohdan ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue