2022-03-30 09:31:56 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
, asciidoc
|
|
|
|
, pkg-config
|
|
|
|
, inetutils
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
, sqlite
|
|
|
|
, readline
|
|
|
|
, SDL
|
|
|
|
, SDL_gfx
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "jimtcl";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "0.81";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "msteveb";
|
|
|
|
repo = "jimtcl";
|
|
|
|
rev = version;
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-OpM9y7fQ+18qxl3/5wUCrNA9qiCdA0vTHqLYSw2lvJs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
asciidoc
|
|
|
|
];
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
preCheck = ''
|
|
|
|
# test exec2-3.2 fails depending on platform or sandboxing (?)
|
|
|
|
rm tests/exec2.test
|
|
|
|
'';
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
# test posix-1.6 needs the "hostname" command
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ inetutils ];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
platforms = lib.platforms.all;
|
2022-03-30 09:31:56 +00:00
|
|
|
maintainers = with lib.maintainers; [ dbohdan fgaz vrthra ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|