{ lib, stdenv, fetchFromGitHub, cmake, unstableGitUpdater }: stdenv.mkDerivation { pname = "libcxxrt"; version = "4.0.10-unstable-2024-04-15"; src = fetchFromGitHub { owner = "libcxxrt"; repo = "libcxxrt"; rev = "25541e312f7094e9c90895000d435af520d42418"; sha256 = "d5uhtlO+28uc2Xnf5trXsy43jgmzBHs2jZhCK57qRM4="; }; nativeBuildInputs = [ cmake ]; outputs = [ "out" "dev" ]; installPhase = '' mkdir -p $dev/include $out/lib cp ../src/cxxabi.h $dev/include cp lib/libcxxrt${stdenv.hostPlatform.extensions.library} $out/lib ''; passthru = { libName = "cxxrt"; updateScript = unstableGitUpdater { }; }; meta = with lib; { homepage = "https://github.com/libcxxrt/libcxxrt"; description = "Implementation of the Code Sourcery C++ ABI"; maintainers = with maintainers; [ qyliss ]; platforms = platforms.all; license = licenses.bsd2; }; }