summary refs log tree commit diff
path: root/pkgs/development/interpreters/jimtcl/default.nix
blob: 4ac9b64795607cf15f032a44cb845f6d3b2fa15f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ stdenv, fetchFromGitHub, sqlite, readline, asciidoc, SDL, SDL_gfx }:

stdenv.mkDerivation {
  name = "jimtcl-0.76";

  src = fetchFromGitHub {
    owner = "msteveb";
    repo = "jimtcl";
    rev = "51f65c6d38fbf86e1f0b036ad336761fd2ab7fa0";
    sha256 = "00ldal1w9ysyfmx28xdcaz81vaazr1fqixxb2abk438yfpp1i9hq";
  };

  buildInputs = [
    sqlite readline asciidoc SDL SDL_gfx
  ];

  NIX_CFLAGS_COMPILE = [ "-I${SDL.dev}/include/SDL" ];

  configureFlags = [
    "--with-ext=oo"
    "--with-ext=tree"
    "--with-ext=binary"
    "--with-ext=sqlite3"
    "--with-ext=readline"
    "--with-ext=sdl"
    "--enable-utf8"
    "--ipv6"
  ];

  meta = {
    description = "An open source small-footprint implementation of the Tcl programming language";
    homepage = http://jim.tcl.tk/;
    license = stdenv.lib.licenses.bsd2;
    platforms = stdenv.lib.platforms.all;
    maintainers = with stdenv.lib.maintainers; [ dbohdan vrthra ];
  };
}