nixpkgs/pkgs/development/libraries/bwidget/default.nix
Eelco Dolstra 40f7b0f9df Another attempt to eradicate ensureDir
See c556a6ea46e71e1907d78b71fab36df30297b3ad.
2014-06-30 14:56:10 +02:00

31 lines
682 B
Nix

{ stdenv, fetchurl, tcl }:
stdenv.mkDerivation rec {
name = "bwidget-${version}";
version = "1.9.7";
src = fetchurl {
url = "mirror://sourceforge/tcllib/bwidget-${version}.tar.gz";
sha256 = "1z2z77l41g01ra7v716c0q3x8s2kx30l4p1kf21ma8bdqa98arp6";
};
dontBuild = true;
installPhase = ''
mkdir -p "$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 = "High-level widget set for Tcl/Tk";
license = stdenv.lib.licenses.tcltk;
};
}