159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
36 lines
918 B
Nix
36 lines
918 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, unstableGitUpdater }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "libcxxrt";
|
|
version = "4.0.10-unstable-2024-08-06";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libcxxrt";
|
|
repo = "libcxxrt";
|
|
rev = "7a3ef57f64be0f2f2a156af011adfbe76c7dce74";
|
|
sha256 = "H4FodZ3fAgkWWE+ZByAOx7Nn0+ujxEobOkeHdE/lI94=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|