uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
64
pkgs/development/libraries/tk/generic.nix
Normal file
64
pkgs/development/libraries/tk/generic.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{ stdenv, lib, src, pkg-config, tcl, libXft, patches ? []
|
||||
, enableAqua ? stdenv.isDarwin, darwin
|
||||
, ... }:
|
||||
|
||||
tcl.mkTclDerivation {
|
||||
pname = "tk";
|
||||
version = tcl.version;
|
||||
|
||||
inherit src patches;
|
||||
|
||||
outputs = [ "out" "man" "dev" ];
|
||||
|
||||
setOutputFlags = false;
|
||||
|
||||
preConfigure = ''
|
||||
configureFlagsArray+=(--mandir=$man/share/man --enable-man-symlinks)
|
||||
cd unix
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
for file in $(find library/demos/. -type f ! -name "*.*"); do
|
||||
substituteInPlace $file --replace "exec wish" "exec $out/bin/wish"
|
||||
done
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
ln -s $out/bin/wish* $out/bin/wish
|
||||
cp ../{unix,generic}/*.h $out/include
|
||||
ln -s $out/lib/libtk${tcl.release}${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/libtk${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||
''
|
||||
+ lib.optionalString (stdenv.isDarwin) ''
|
||||
cp ../macosx/*.h $out/include
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--enable-threads"
|
||||
] ++ 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 = [ libXft ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = false; # fails. can't find itself
|
||||
|
||||
inherit tcl;
|
||||
|
||||
passthru = rec {
|
||||
inherit (tcl) release version;
|
||||
libPrefix = "tk${tcl.release}";
|
||||
libdir = "lib/${libPrefix}";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A widget toolkit that provides a library of basic elements for building a GUI in many different programming languages";
|
||||
homepage = "https://www.tcl.tk/";
|
||||
license = licenses.tcltk;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ lovek323 vrthra ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue