summary refs log tree commit diff
path: root/pkgs/development/pure-modules/tk/default.nix
blob: 4a2c86783c1a97cc852e39c35a6b65054e6754c6 (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
{ lib, stdenv, fetchurl, pkg-config, pure, tcl, tk, xlibsWrapper }:

stdenv.mkDerivation rec {
  baseName = "tk";
  version = "0.5";
  name = "pure-${baseName}-${version}";

  src = fetchurl {
    url = "https://bitbucket.org/purelang/pure-lang/downloads/${name}.tar.gz";
    sha256 = "3b6e97e2d723d5a05bf25f4ac62068ac17a1fd81db03e1986366097bf071a516";
  };

  nativeBuildInputs = [ pkg-config ];
  propagatedBuildInputs = [ pure tcl tk xlibsWrapper ];
  makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];
  setupHook = ../generic-setup-hook.sh;

  meta = {
    description = "A basic interface between Pure and Tcl/Tk";
    homepage = "http://puredocs.bitbucket.org/pure-tk.html";
    license = lib.licenses.bsd3;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ asppsa ];
  };
}