forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / libraries / libcxxrt / default.nix
blob908609675f62c8a812c8f714b0ee16adaeb9bd89
1 { lib, stdenv, fetchFromGitHub, cmake, unstableGitUpdater }:
3 stdenv.mkDerivation {
4   pname = "libcxxrt";
5   version = "4.0.10-unstable-2024-09-24";
7   src = fetchFromGitHub {
8     owner = "libcxxrt";
9     repo = "libcxxrt";
10     rev = "40e4fa2049930412a2c43cdf0c39b6b5aa735341";
11     sha256 = "2rEbRTr8RLl8EKrDq210baCPDt9OppdL7zloNjGOZME=";
12   };
14   nativeBuildInputs = [ cmake ];
16   outputs = [ "out" "dev" ];
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   '';
24   passthru = {
25     libName = "cxxrt";
26     updateScript = unstableGitUpdater { };
27   };
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   };