tix: Simplify package with tcl.mkTclDerivation

This commit is contained in:
Andrew Brooks
2021-05-21 15:18:07 -05:00
parent 3dc650b780
commit 17a71176b0
+2 -4
View File
@@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, tcl, tk, fetchpatch } :
stdenv.mkDerivation {
tcl.mkTclDerivation {
version = "8.4.3";
pname = "tix";
src = fetchurl {
@@ -20,7 +20,7 @@ stdenv.mkDerivation {
sha256 = "1jaz0l22xj7x1k4rb9ia6i1psnbwk4pblgq4gfvya7gg7fbb7r36";
})
;
buildInputs = [ tcl tk ];
buildInputs = [ tk ];
# the configure script expects to find the location of the sources of
# tcl and tk in {tcl,tk}Config.sh
# In fact, it only needs some private headers. We copy them in
@@ -35,7 +35,6 @@ stdenv.mkDerivation {
done;
'';
configureFlags = [
"--with-tclinclude=${tcl}/include"
"--with-tclconfig=."
"--with-tkinclude=${tk.dev}/include"
"--with-tkconfig=."
@@ -52,4 +51,3 @@ stdenv.mkDerivation {
];
};
}