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

49 lines
1.1 KiB
Nix
Raw Normal View History

2015-06-19 14:54:35 +01:00
{ stdenv, src, pkgconfig, tcl, libXft, fontconfig, patches ? [], ... }:
stdenv.mkDerivation {
name = "tk-${tcl.version}";
2015-06-19 14:54:35 +01:00
inherit src patches;
outputs = [ "out" "man" "dev" ];
setOutputFlags = false;
2015-04-30 19:42:43 +01:00
preConfigure = ''
configureFlagsArray+=(--mandir=$man/share/man --enable-man-symlinks)
2015-04-30 19:42:43 +01:00
cd unix
'';
postInstall = ''
ln -s $out/bin/wish* $out/bin/wish
cp ../{unix,generic}/*.h $out/include
'';
2015-04-30 19:42:43 +01:00
configureFlags = [
"--with-tcl=${tcl}/lib"
];
buildInputs = [ pkgconfig ]
++ stdenv.lib.optional stdenv.isDarwin fontconfig;
propagatedBuildInputs = [ tcl libXft ];
NIX_CFLAGS_LINK = if stdenv.isDarwin then "-lfontconfig" else null;
inherit tcl;
passthru = rec {
inherit (tcl) release version;
libPrefix = "tk${tcl.release}";
libdir = "lib/${libPrefix}";
};
2013-06-29 23:39:32 +01:00
2015-04-30 19:42:43 +01:00
meta = with stdenv.lib; {
2013-06-29 23:39:32 +01: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 19:42:43 +01:00
license = licenses.tcltk;
platforms = platforms.all;
2016-07-29 00:19:08 +01:00
maintainers = with maintainers; [ lovek323 vrthra wkennington ];
2013-06-29 23:39:32 +01:00
};
}