nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 996 B view raw
1{ 2 lib, 3 stdenv, 4 tcl, 5 fetchFromGitHub, 6 autoreconfHook, 7 tk, 8 libGL, 9}: 10 11tcl.mkTclDerivation { 12 pname = "tkgl"; 13 version = "1.2.1-unstable-2025-06-01"; 14 15 src = fetchFromGitHub { 16 owner = "3-manifolds"; 17 repo = "TkGL"; 18 rev = "45bf16e6c28a070c70fc9a0eb8c47a0b6ff8a2e3"; 19 hash = "sha256-AA5LZGhMTWmTZqI/wtycUYLsUe9BwO3voGMS7vGlCM0="; 20 }; 21 22 postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' 23 substituteInPlace configure.ac \ 24 --replace-fail "-arch x86_64 -arch arm64" "" 25 ''; 26 27 configureFlags = [ 28 "--with-tk=${lib.getLib tk}/lib" 29 "--with-tkinclude=${lib.getDev tk}/include" 30 ]; 31 32 installTargets = [ 33 "install-lib-binaries" 34 ]; 35 36 nativeBuildInputs = [ 37 autoreconfHook 38 ]; 39 40 buildInputs = [ 41 tk 42 libGL 43 ]; 44 45 meta = { 46 description = "OpenGL drawing surface for Tk 8 and 9"; 47 homepage = "https://github.com/3-manifolds/TkGL"; 48 license = lib.licenses.tcltk; 49 maintainers = with lib.maintainers; [ noiioiu ]; 50 }; 51}