{ stdenv, lib, fetchFromRepoOrCz, perl, texinfo }: with lib; stdenv.mkDerivation rec { pname = "tcc"; version = "0.9.27"; src = fetchFromRepoOrCz { repo = "tinycc"; rev = "release_0_9_27"; sha256 = "12mm1lqywz0akr2yb2axjfbw8lwv57nh395vzsk534riz03ml977"; }; nativeBuildInputs = [ perl texinfo ]; hardeningDisable = [ "fortify" ]; enableParallelBuilding = true; postPatch = '' substituteInPlace "texi2pod.pl" \ --replace "/usr/bin/perl" "${perl}/bin/perl" ''; preConfigure = '' echo ${version} > VERSION configureFlagsArray+=("--cc=cc") 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 = '' cat >libtcc.pc <