2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
34 lines
881 B
Nix
34 lines
881 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, unstableGitUpdater }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "libcxxrt";
|
|
version = "unstable-2023-10-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libcxxrt";
|
|
repo = "libcxxrt";
|
|
rev = "03c83f5a57be8c5b1a29a68de5638744f17d28ba";
|
|
sha256 = "ldwE0j9P9h5urWIUCRdY6qrJqKe45hid+NrSNeKEixE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/include $out/lib
|
|
cp ../src/cxxabi.h $out/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;
|
|
};
|
|
}
|