nixpkgs/pkgs/development/interpreters/jimtcl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
1.3 KiB
Nix
Raw Normal View History

2022-03-23 13:24:19 +00:00
{ lib
, stdenv
, fetchFromGitHub
2014-09-09 11:18:58 +00:00
2022-03-23 13:24:19 +00:00
, asciidoc
, pkg-config
, inetutils
2017-02-08 00:11:16 +00:00
2022-03-23 13:24:19 +00:00
, sqlite
, readline
, SDL
, SDL_gfx
}:
stdenv.mkDerivation rec {
pname = "jimtcl";
2022-03-23 13:24:19 +00:00
version = "0.81";
2014-09-09 11:18:58 +00:00
2016-06-23 02:55:20 +00:00
src = fetchFromGitHub {
owner = "msteveb";
repo = "jimtcl";
2017-02-08 00:11:16 +00:00
rev = version;
2022-03-23 13:24:19 +00:00
sha256 = "sha256-OpM9y7fQ+18qxl3/5wUCrNA9qiCdA0vTHqLYSw2lvJs=";
2014-09-09 11:18:58 +00:00
};
nativeBuildInputs = [
2022-03-23 13:24:19 +00:00
pkg-config
asciidoc
2014-09-09 11:18:58 +00:00
];
buildInputs = [
sqlite readline SDL SDL_gfx
];
2016-09-01 08:26:10 +00:00
2014-09-09 11:18:58 +00:00
configureFlags = [
"--shared"
2014-09-09 11:18:58 +00:00
"--with-ext=oo"
"--with-ext=tree"
"--with-ext=binary"
"--with-ext=sqlite3"
2016-06-23 02:55:20 +00:00
"--with-ext=readline"
"--with-ext=sdl"
"--with-ext=json"
2014-09-09 11:18:58 +00:00
"--enable-utf8"
"--ipv6"
];
enableParallelBuilding = true;
doCheck = true;
preCheck = ''
# test exec2-3.2 fails depending on platform or sandboxing (?)
rm tests/exec2.test
'';
2022-03-23 13:24:19 +00:00
# test posix-1.6 needs the "hostname" command
checkInputs = [ inetutils ];
postInstall = ''
ln -sr $out/lib/libjim.so.${version} $out/lib/libjim.so
'';
2014-09-09 11:18:58 +00:00
meta = {
description = "An open source small-footprint implementation of the Tcl programming language";
homepage = "http://jim.tcl.tk/";
license = lib.licenses.bsd2;
platforms = lib.platforms.all;
2022-03-23 13:24:34 +00:00
maintainers = with lib.maintainers; [ dbohdan fgaz vrthra ];
2014-09-09 11:18:58 +00:00
};
}