nixpkgs/pkgs/development/libraries/tk/generic.nix

53 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, lib, src, pkgconfig, tcl, libXft, fontconfig, patches ? []
, enableAqua ? stdenv.isDarwin, darwin
, ... }:
stdenv.mkDerivation {
name = "tk-${tcl.version}";
2015-06-19 13:54:35 +00:00
inherit src patches;
outputs = [ "out" "man" "dev" ];
setOutputFlags = false;
2015-04-30 18:42:43 +00:00
preConfigure = ''
configureFlagsArray+=(--mandir=$man/share/man --enable-man-symlinks)
2015-04-30 18:42:43 +00:00
cd unix
'';
postInstall = ''
ln -s $out/bin/wish* $out/bin/wish
cp ../{unix,generic}/*.h $out/include
'';
2015-04-30 18:42:43 +00:00
configureFlags = [
"--with-tcl=${tcl}/lib"
] ++ stdenv.lib.optional enableAqua "--enable-aqua";
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ tcl libXft ];
buildInputs = lib.optional enableAqua (with darwin; with apple_sdk.frameworks; [
Cocoa cf-private
]);
doCheck = false; # fails. can't find itself
inherit tcl;
passthru = rec {
inherit (tcl) release version;
libPrefix = "tk${tcl.release}";
libdir = "lib/${libPrefix}";
};
2013-06-29 22:39:32 +00:00
2015-04-30 18:42:43 +00:00
meta = with stdenv.lib; {
2013-06-29 22:39:32 +00:00
description = "A widget toolkit that provides a library of basic elements for building a GUI in many different programming languages";
homepage = http://www.tcl.tk/;
2015-04-30 18:42:43 +00:00
license = licenses.tcltk;
platforms = platforms.all;
maintainers = with maintainers; [ lovek323 vrthra ];
2013-06-29 22:39:32 +00:00
};
}