summary refs log blame commit diff
path: root/pkgs/development/libraries/bwidget/default.nix
blob: 31dc885bc433661ead148d89cea7e9ab4015790e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                    

                                                            

     




                                    





                                                                               
 
{ stdenv, fetchurl, tcl }:

stdenv.mkDerivation rec {
  name = "bwidget-${version}";
  version = "1.9.5";

  src = fetchurl {
    url = "mirror://sourceforge/tcllib/bwidget-${version}.tar.gz";
    sha256 = "1njssjjvfalsfh37prkxwqi4hf0zj1d54qzggvjwpzkm424jjcii";
  };

  dontBuild = true;

  installPhase = ''
    ensureDir "$out/lib/${passthru.libPrefix}"
    cp -R *.tcl lang images "$out/lib/${passthru.libPrefix}"
  '';

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

  buildInputs = [ tcl ];

  meta = {
    homepage = "http://tcl.activestate.com/software/tcllib/";
    description = "The BWidget toolkit is a high-level widget set for Tcl/Tk.";
    license = stdenv.lib.licenses.tcltk;
  };
}