tinycc: 0.9.27 -> unstable-2021-07-27
tinycc: enableParallelBuilding is causing tests to fail on some architectures disable it
This commit is contained in:
parent
d8db07defa
commit
5ec9a816d2
1 changed files with 19 additions and 23 deletions
|
@ -1,36 +1,35 @@
|
||||||
{ stdenv, lib, fetchFromRepoOrCz, perl, texinfo }:
|
{ stdenv, lib, fetchFromRepoOrCz, perl, texinfo, which }:
|
||||||
with lib;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "tcc";
|
pname = "tcc";
|
||||||
version = "0.9.27";
|
version = "unstable-2021-10-09";
|
||||||
upstreamVersion = "release_${concatStringsSep "_" (builtins.splitVersion version)}";
|
|
||||||
|
|
||||||
src = fetchFromRepoOrCz {
|
src = fetchFromRepoOrCz {
|
||||||
repo = "tinycc";
|
repo = "tinycc";
|
||||||
rev = upstreamVersion;
|
rev = "ca11849ebb88ef4ff87beda46bf5687e22949bd6";
|
||||||
sha256 = "12mm1lqywz0akr2yb2axjfbw8lwv57nh395vzsk534riz03ml977";
|
sha256 = "sha256-xnUDyTYZxbxUCblACyX73boBhU073VRqSy1SWlWsvIw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ perl texinfo ];
|
nativeBuildInputs = [ perl texinfo which ];
|
||||||
|
|
||||||
hardeningDisable = [ "fortify" ];
|
hardeningDisable = [ "fortify" ];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace "texi2pod.pl" \
|
patchShebangs texi2pod.pl
|
||||||
--replace "/usr/bin/perl" "${perl}/bin/perl"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
configureFlags = [
|
||||||
|
"--cc=cc"
|
||||||
|
"--crtprefix=${lib.getLib stdenv.cc.libc}/lib"
|
||||||
|
"--sysincludepaths=${lib.getDev stdenv.cc.libc}/include:{B}/include"
|
||||||
|
"--libpaths=${lib.getLib stdenv.cc.libc}/lib"
|
||||||
|
# build cross compilers
|
||||||
|
"--enable-cross"
|
||||||
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
echo ${version} > VERSION
|
echo ${version} > VERSION
|
||||||
|
|
||||||
configureFlagsArray+=("--cc=cc")
|
|
||||||
configureFlagsArray+=("--elfinterp=$(< $NIX_CC/nix-support/dynamic-linker)")
|
configureFlagsArray+=("--elfinterp=$(< $NIX_CC/nix-support/dynamic-linker)")
|
||||||
configureFlagsArray+=("--crtprefix=${getLib stdenv.cc.libc}/lib")
|
|
||||||
configureFlagsArray+=("--sysincludepaths=${getDev stdenv.cc.libc}/include:{B}/include")
|
|
||||||
configureFlagsArray+=("--libpaths=${getLib stdenv.cc.libc}/lib")
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
|
@ -47,9 +46,8 @@ stdenv.mkDerivation rec {
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Small, fast, and embeddable C compiler and interpreter";
|
description = "Small, fast, and embeddable C compiler and interpreter";
|
||||||
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
TinyCC (aka TCC) is a small but hyper fast C compiler. Unlike
|
TinyCC (aka TCC) is a small but hyper fast C compiler. Unlike
|
||||||
other C compilers, it is meant to be self-sufficient: you do not
|
other C compilers, it is meant to be self-sufficient: you do not
|
||||||
|
@ -73,11 +71,9 @@ stdenv.mkDerivation rec {
|
||||||
With libtcc, you can use TCC as a backend for dynamic code
|
With libtcc, you can use TCC as a backend for dynamic code
|
||||||
generation.
|
generation.
|
||||||
'';
|
'';
|
||||||
|
homepage = "https://repo.or.cz/tinycc.git";
|
||||||
homepage = "http://www.tinycc.org/";
|
license = licenses.lgpl21Only;
|
||||||
license = licenses.mit;
|
platforms = platforms.linux;
|
||||||
|
|
||||||
platforms = [ "x86_64-linux" ];
|
|
||||||
maintainers = [ maintainers.joachifm ];
|
maintainers = [ maintainers.joachifm ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue