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
67
pkgs/development/interpreters/tcl/generic.nix
Normal file
67
pkgs/development/interpreters/tcl/generic.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{ lib, stdenv, callPackage, makeSetupHook
|
||||
|
||||
# Version specific stuff
|
||||
, release, version, src
|
||||
, ...
|
||||
}:
|
||||
|
||||
let
|
||||
baseInterp =
|
||||
stdenv.mkDerivation {
|
||||
pname = "tcl";
|
||||
inherit version src;
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
setOutputFlags = false;
|
||||
|
||||
preConfigure = ''
|
||||
cd unix
|
||||
'';
|
||||
|
||||
configureFlags = [
|
||||
"--enable-threads"
|
||||
# Note: using $out instead of $man to prevent a runtime dependency on $man.
|
||||
"--mandir=${placeholder "out"}/share/man"
|
||||
"--enable-man-symlinks"
|
||||
# Don't install tzdata because NixOS already has a more up-to-date copy.
|
||||
"--with-tzdata=no"
|
||||
"tcl_cv_strtod_unbroken=ok"
|
||||
] ++ lib.optional stdenv.is64bit "--enable-64bit";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = let
|
||||
dllExtension = stdenv.hostPlatform.extensions.sharedLibrary;
|
||||
in ''
|
||||
make install-private-headers
|
||||
ln -s $out/bin/tclsh${release} $out/bin/tclsh
|
||||
ln -s $out/lib/libtcl${release}${dllExtension} $out/lib/libtcl${dllExtension}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "The Tcl scripting language";
|
||||
homepage = "https://www.tcl.tk/";
|
||||
license = licenses.tcltk;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ agbrooks ];
|
||||
};
|
||||
|
||||
passthru = rec {
|
||||
inherit release version;
|
||||
libPrefix = "tcl${release}";
|
||||
libdir = "lib/${libPrefix}";
|
||||
tclPackageHook = callPackage ({ buildPackages }: makeSetupHook {
|
||||
name = "tcl-package-hook";
|
||||
deps = [ buildPackages.makeWrapper ];
|
||||
} ./tcl-package-hook.sh) {};
|
||||
};
|
||||
};
|
||||
|
||||
mkTclDerivation = callPackage ./mk-tcl-derivation.nix { tcl = baseInterp; };
|
||||
|
||||
in baseInterp.overrideAttrs (self: {
|
||||
passthru = self.passthru // {
|
||||
inherit mkTclDerivation;
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue