summary refs log tree commit diff
path: root/pkgs/development/libraries/tcltls/default.nix
blob: 278fed375145601c6f00ab8054486bf5be298ff4 (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
{ stdenv, fetchurl, tcl, openssl }:

stdenv.mkDerivation rec {
  name = "tcltls-${version}";
  version = "1.6";

  configureFlags = "--with-tcl=" + tcl + "/lib "
                 + "--with-tclinclude=" + tcl + "/include "
                 + "--with-ssl-dir=" + openssl;

  preConfigure = ''
    configureFlags="--exec_prefix=$prefix $configureFlags"
  '';

  src = fetchurl {
    url = "mirror://sourceforge/tls/tls${version}-src.tar.gz";
    sha256 = "adec50143a9ad634a671d24f7c7bbf2455487eb5f12d290f41797c32a98b93f3";
  };

  passthru = {
    libPrefix = "tls${version}";
  };

  buildInputs = [ tcl openssl ];

  meta = {
    homepage = "http://tls.sourceforge.net/";
    description = "An OpenSSL / RSA-bsafe Tcl extension";
    license = stdenv.lib.licenses.tcltk;
  };
}