depot/third_party/nixpkgs/pkgs/development/interpreters/jimtcl/default.nix
Default email dae973cb59 Project import generated by Copybara.
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
2023-03-08 18:32:21 +02:00

73 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, asciidoc
, pkg-config
, inetutils
, sqlite
, readline
, SDL
, SDL_gfx
, openssl
}:
stdenv.mkDerivation rec {
pname = "jimtcl";
version = "0.82";
src = fetchFromGitHub {
owner = "msteveb";
repo = "jimtcl";
rev = version;
sha256 = "sha256-CDjjrxpoTbLESAbCiCjQ8+E/oJP87gDv9SedQOzH3QY=";
};
nativeBuildInputs = [
pkg-config
asciidoc
];
buildInputs = [
sqlite
readline
SDL
SDL_gfx
openssl
];
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
# requires internet access
rm tests/ssl.test
'';
# test posix-1.6 needs the "hostname" command
nativeCheckInputs = [ inetutils ];
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;
maintainers = with lib.maintainers; [ dbohdan fgaz vrthra ];
};
}