1{ lib, stdenv, fetchFromGitHub, cmake, unstableGitUpdater }:
2
3stdenv.mkDerivation {
4 pname = "libcxxrt";
5 version = "4.0.10-unstable-2024-05-26";
6
7 src = fetchFromGitHub {
8 owner = "libcxxrt";
9 repo = "libcxxrt";
10 rev = "c62fe9963148f283b2fbb7eb9888785cfb16d77c";
11 sha256 = "XxXH6pE2v6WTh1ATJ7Fgd3SFw49L44YchtMlPKX4kYw=";
12 };
13
14 nativeBuildInputs = [ cmake ];
15
16 outputs = [ "out" "dev" ];
17
18 installPhase = ''
19 mkdir -p $dev/include $out/lib
20 cp ../src/cxxabi.h $dev/include
21 cp lib/libcxxrt${stdenv.hostPlatform.extensions.library} $out/lib
22 '';
23
24 passthru = {
25 libName = "cxxrt";
26 updateScript = unstableGitUpdater { };
27 };
28
29 meta = with lib; {
30 homepage = "https://github.com/libcxxrt/libcxxrt";
31 description = "Implementation of the Code Sourcery C++ ABI";
32 maintainers = with maintainers; [ qyliss ];
33 platforms = platforms.all;
34 license = licenses.bsd2;
35 };
36}