depot/third_party/nixpkgs/pkgs/development/libraries/libcxxrt/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

36 lines
918 B
Nix

{ 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;
};
}