nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 30 lines 741 B view raw
1{ lib 2, fetchFromGitHub 3, tcl 4}: 5 6tcl.mkTclDerivation rec { 7 pname = "tclx"; 8 version = "8.6.2"; 9 10 src = fetchFromGitHub { 11 owner = "flightaware"; 12 repo = "tclx"; 13 rev = "v${version}"; 14 hash = "sha256-ZYJcaVBM5DQWBFYAcW6fx+ENMWJwHzTOUKYPkLsd6o8="; 15 }; 16 17 # required in order for tclx to properly detect tclx.tcl at runtime 18 postInstall = let 19 majorMinorVersion = lib.versions.majorMinor version; 20 in '' 21 ln -s $prefix/lib/tclx${majorMinorVersion} $prefix/lib/tclx${majorMinorVersion}/tclx${majorMinorVersion} 22 ''; 23 24 meta = { 25 homepage = "https://github.com/flightaware/tclx"; 26 description = "Tcl extensions"; 27 license = lib.licenses.tcltk; 28 maintainers = with lib.maintainers; [ kovirobi fgaz ]; 29 }; 30}