summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/jimtcl
diff options
context:
space:
mode:
authorR. RyanTM <ryantm-bot@ryantm.com>2019-11-30 15:13:37 -0800
committerRenaud <c0bw3b@users.noreply.github.com>2019-12-01 00:13:37 +0100
commiteac9b43a82b8326a42964802209a0cfc825b1e46 (patch)
tree06c29aa716ef8aa46760d158ae6302c1de1e36aa /pkgs/development/interpreters/jimtcl
parentd62852ea1c53b9f089ac3adb7abdd483652e8550 (diff)
jimtcl: 0.78 -> 0.79
* jimtcl: 0.78 -> 0.79 (#74408) * jimtcl: enable new json extension and run tests + build shared to reduce closure size
Diffstat (limited to 'pkgs/development/interpreters/jimtcl')
-rw-r--r--pkgs/development/interpreters/jimtcl/default.nix30
1 files changed, 24 insertions, 6 deletions
diff --git a/pkgs/development/interpreters/jimtcl/default.nix b/pkgs/development/interpreters/jimtcl/default.nix
index 91b4c0b9a9e6..09d7fa622fc1 100644
--- a/pkgs/development/interpreters/jimtcl/default.nix
+++ b/pkgs/development/interpreters/jimtcl/default.nix
@@ -5,35 +5,53 @@ let
in stdenv.mkDerivation rec {
pname = "jimtcl";
- version = "0.78";
+ version = "0.79";
src = fetchFromGitHub {
owner = "msteveb";
repo = "jimtcl";
rev = version;
- sha256 = "1nrjxjfh69i35ig8sxdlal4ydd3cl0x68c05s6svnf1y2i1bl23j";
+ sha256 = "1k88hz0v3bi19xdvlp0i9nsx38imzwpjh632w7326zwbv2wldf0h";
};
- buildInputs = [
- sqlite readline asciidoc SDL SDL_gfx
+ nativeBuildInputs = [
+ asciidoc
];
- NIX_CFLAGS_COMPILE = makeSDLFlags [ SDL SDL_gfx ];
+ buildInputs = [
+ sqlite readline SDL SDL_gfx
+ ];
configureFlags = [
+ "--shared"
"--with-ext=oo"
"--with-ext=tree"
"--with-ext=binary"
"--with-ext=sqlite3"
"--with-ext=readline"
"--with-ext=sdl"
+ "--with-ext=json"
"--enable-utf8"
"--ipv6"
];
+ NIX_CFLAGS_COMPILE = makeSDLFlags [ SDL SDL_gfx ];
+
+ enableParallelBuilding = true;
+
+ doCheck = true;
+ preCheck = ''
+ # test exec2-3.2 fails depending on platform or sandboxing (?)
+ rm tests/exec2.test
+ '';
+
+ postInstall = ''
+ ln -sr $out/lib/libjim.so.${version} $out/lib/libjim.so
+ '';
+
meta = {
description = "An open source small-footprint implementation of the Tcl programming language";
- homepage = http://jim.tcl.tk/;
+ homepage = "http://jim.tcl.tk/";
license = stdenv.lib.licenses.bsd2;
platforms = stdenv.lib.platforms.all;
maintainers = with stdenv.lib.maintainers; [ dbohdan vrthra ];