Fil-C on Nix

Filnix wiki

mbrock/filnix

runtime/yolounwind.nix

Build yolounwind stub library

This provides stub implementations of unwind symbols needed by yolo-glibc and compiler-rt's GCC personality function. All functions just trap - the yolo runtime doesn't actually unwind.

λpkgs, sources?
pkgs
sourcesdefault import../lib/sources.nix inherit pkgs;
let
12lib=
import../lib inherit pkgs;
13inherit lib
setupCcache llvm
in
17yolounwind=
pkgs.stdenv.mkDerivation
18pname=
"filc-yolounwind"
19version=
"git"
20src=
sources.yolounwind-src
22nativeBuildInputs=
with pkgs; gnumake llvm.clang ccache
28preConfigure=
cd yolounwind
33buildPhase=
runHook preBuild
make -j$NIX_BUILD_CORES
runHook postBuild
39installPhase=
runHook preInstall
mkdir -p $out/lib
cp libyolounwind.a $out/lib/
runHook postInstall
46enableParallelBuilding=
true
47meta.description=
"Fil-C yolounwind stub library"