nixpkgs/pkgs/development/libraries/tclx/default.nix
Francesco Gazzetta 578d5e941d tclx: 8.4.1 -> 8.6.1
Move to flightaware fork, seems to be what everyone is using
2023-05-04 23:05:18 +02:00

31 lines
741 B
Nix

{ lib
, fetchFromGitHub
, tcl
}:
tcl.mkTclDerivation rec {
pname = "tclx";
version = "8.6.1";
src = fetchFromGitHub {
owner = "flightaware";
repo = "tclx";
rev = "v${version}";
hash = "sha256-HdbuU0IR8q/0g2fIs1xtug4oox/D24C8E2VbEJC5B1A=";
};
# required in order for tclx to properly detect tclx.tcl at runtime
postInstall = let
majorMinorVersion = lib.versions.majorMinor version;
in ''
ln -s $prefix/lib/tclx${majorMinorVersion} $prefix/lib/tclx${majorMinorVersion}/tclx${majorMinorVersion}
'';
meta = {
homepage = "https://github.com/flightaware/tclx";
description = "Tcl extensions";
license = lib.licenses.tcltk;
maintainers = with lib.maintainers; [ kovirobi fgaz ];
};
}