Skip to content

Commit

Permalink
libcxxrt: init at unstable-2022-08-08
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssais committed Jan 24, 2023
1 parent ee036ed commit c672de3
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/development/libraries/libcxxrt/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib, stdenv, fetchFromGitHub, cmake, unstableGitUpdater }:

stdenv.mkDerivation {
pname = "libcxxrt";
version = "unstable-2022-08-08";

src = fetchFromGitHub {
owner = "libcxxrt";
repo = "libcxxrt";
rev = "a0f7f5c139a7daf71de0de201b6c405d852b1dc1";
sha256 = "6ErOhlD6pOudbTkFTlI2hjBuYT3QuzEiL33/mLnw1aI=";
};

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 = {
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;
};
}
6 changes: 6 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20662,6 +20662,12 @@ with pkgs;

libcutl = callPackage ../development/libraries/libcutl { };

libcxxrt = callPackage ../development/libraries/libcxxrt {
stdenv = if stdenv.hostPlatform.useLLVM or false
then overrideCC stdenv buildPackages.llvmPackages.tools.clangNoLibcxx
else stdenv;
};

libdaemon = callPackage ../development/libraries/libdaemon { };

libdatovka = callPackage ../development/libraries/libdatovka { };
Expand Down

0 comments on commit c672de3

Please sign in to comment.