mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
531e4b80c9
Only acts on one-line dependency lists.
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ stdenv, src, pkgconfig, tcl, libXft, fontconfig, patches ? [], ... }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "tk-${tcl.version}";
|
|
|
|
inherit src patches;
|
|
|
|
outputs = [ "out" "man" "dev" ];
|
|
|
|
setOutputFlags = false;
|
|
|
|
preConfigure = ''
|
|
configureFlagsArray+=(--mandir=$man/share/man --enable-man-symlinks)
|
|
cd unix
|
|
'';
|
|
|
|
postInstall = ''
|
|
ln -s $out/bin/wish* $out/bin/wish
|
|
cp ../{unix,generic}/*.h $out/include
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--with-tcl=${tcl}/lib"
|
|
];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ ]
|
|
++ 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}";
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
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/;
|
|
license = licenses.tcltk;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ lovek323 vrthra wkennington ];
|
|
};
|
|
}
|