nixpkgs/pkgs/development/libraries/bwidget/default.nix
Andrew Brooks 5d3ee3a49a bwidget: make installPhase slightly clearer
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-05-21 15:18:28 -05:00

31 lines
753 B
Nix

{ lib, fetchurl, tcl, tk }:
let
version = "1.9.14";
libPrefix = "bwidget${version}";
in tcl.mkTclDerivation {
pname = "bwidget";
inherit version;
src = fetchurl {
url = "mirror://sourceforge/tcllib/bwidget-${version}.tar.gz";
sha256 = "0wm6hk3rnqhnn2cyw24drqwbfnysp6jyfi8lc1vih5k704a955lf";
};
dontBuild = true;
propagatedBuildInputs = [ tk ];
installPhase = ''
mkdir -p "$out/lib/bwidget${version}"
cp -R *.tcl lang images "$out/lib/bwidget${version}"
'';
meta = {
homepage = "https://sourceforge.net/projects/tcllib";
description = "High-level widget set for Tcl/Tk";
maintainers = with lib.maintainers; [ agbrooks ];
license = lib.licenses.tcltk;
platforms = lib.platforms.linux;
};
}