2016-06-23 03:55:20 +01:00
|
|
|
{ stdenv, fetchFromGitHub, sqlite, readline, asciidoc, SDL, SDL_gfx }:
|
2014-09-09 12:18:58 +01:00
|
|
|
|
2017-02-08 00:11:16 +00:00
|
|
|
let
|
|
|
|
makeSDLFlags = map (p: "-I${stdenv.lib.getDev p}/include/SDL");
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "jimtcl";
|
2019-11-30 23:13:37 +00:00
|
|
|
version = "0.79";
|
2014-09-09 12:18:58 +01:00
|
|
|
|
2016-06-23 03:55:20 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "msteveb";
|
|
|
|
repo = "jimtcl";
|
2017-02-08 00:11:16 +00:00
|
|
|
rev = version;
|
2019-11-30 23:13:37 +00:00
|
|
|
sha256 = "1k88hz0v3bi19xdvlp0i9nsx38imzwpjh632w7326zwbv2wldf0h";
|
2014-09-09 12:18:58 +01:00
|
|
|
};
|
|
|
|
|
2019-11-30 23:13:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
asciidoc
|
2014-09-09 12:18:58 +01:00
|
|
|
];
|
|
|
|
|
2019-11-30 23:13:37 +00:00
|
|
|
buildInputs = [
|
|
|
|
sqlite readline SDL SDL_gfx
|
|
|
|
];
|
2016-09-01 09:26:10 +01:00
|
|
|
|
2014-09-09 12:18:58 +01:00
|
|
|
configureFlags = [
|
2019-11-30 23:13:37 +00:00
|
|
|
"--shared"
|
2014-09-09 12:18:58 +01:00
|
|
|
"--with-ext=oo"
|
|
|
|
"--with-ext=tree"
|
|
|
|
"--with-ext=binary"
|
|
|
|
"--with-ext=sqlite3"
|
2016-06-23 03:55:20 +01:00
|
|
|
"--with-ext=readline"
|
|
|
|
"--with-ext=sdl"
|
2019-11-30 23:13:37 +00:00
|
|
|
"--with-ext=json"
|
2014-09-09 12:18:58 +01:00
|
|
|
"--enable-utf8"
|
|
|
|
"--ipv6"
|
|
|
|
];
|
|
|
|
|
2019-10-30 02:23:29 +00:00
|
|
|
NIX_CFLAGS_COMPILE = toString (makeSDLFlags [ SDL SDL_gfx ]);
|
2019-11-30 23:13:37 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2014-09-09 12:18:58 +01:00
|
|
|
meta = {
|
2014-09-09 12:29:37 +01:00
|
|
|
description = "An open source small-footprint implementation of the Tcl programming language";
|
2019-11-30 23:13:37 +00:00
|
|
|
homepage = "http://jim.tcl.tk/";
|
2014-09-09 12:18:58 +01:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
2016-06-23 03:55:20 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ dbohdan vrthra ];
|
2014-09-09 12:18:58 +01:00
|
|
|
};
|
|
|
|
}
|