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
39
pkgs/development/libraries/incrtcl/default.nix
Normal file
39
pkgs/development/libraries/incrtcl/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchurl, writeText, tcl }:
|
||||
|
||||
tcl.mkTclDerivation rec {
|
||||
pname = "incrtcl";
|
||||
version = "4.2.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/incrtcl/%5BIncr%20Tcl_Tk%5D-source/3.4/itcl${version}.tar.gz";
|
||||
sha256 = "sha256-rExnDq8bWyVb/KzKgyCzPVa72S/VRGPGPW9pmocOFWw=";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace configure --replace "\''${TCL_SRC_DIR}/generic" "${tcl}/include"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
rmdir $out/bin
|
||||
mv $out/lib/itcl${version}/* $out/lib
|
||||
ln -s libitcl${version}${stdenv.hostPlatform.extensions.sharedLibrary} \
|
||||
$out/lib/libitcl${lib.versions.major version}${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||
rmdir $out/lib/itcl${version}
|
||||
'';
|
||||
|
||||
setupHook = writeText "setup-hook.sh" ''
|
||||
export ITCL_LIBRARY=@out@/lib
|
||||
'';
|
||||
|
||||
outputs = [ "out" "dev" "man" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://incrtcl.sourceforge.net/";
|
||||
description = "Object Oriented Enhancements for Tcl/Tk";
|
||||
license = licenses.tcltk;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ thoughtpolice ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue