3
0
Fork 0
forked from mirrors/nixpkgs

tk: Simplify package with tcl.mkTclDerivation

This commit is contained in:
Andrew Brooks 2021-04-30 17:51:25 -05:00
parent 5f3066af19
commit 98b8fc3579

View file

@ -2,7 +2,7 @@
, enableAqua ? stdenv.isDarwin, darwin
, ... }:
stdenv.mkDerivation {
tcl.mkTclDerivation {
name = "tk-${tcl.version}";
inherit src patches;
@ -33,14 +33,13 @@ stdenv.mkDerivation {
configureFlags = [
"--enable-threads"
"--with-tcl=${tcl}/lib"
] ++ lib.optional stdenv.is64bit "--enable-64bit"
++ lib.optional enableAqua "--enable-aqua";
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optional enableAqua (with darwin.apple_sdk.frameworks; [ Cocoa ]);
propagatedBuildInputs = [ tcl libXft ];
propagatedBuildInputs = [ libXft ];
doCheck = false; # fails. can't find itself