Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 34 lines 881 B view raw
1{ lib, stdenv, fetchFromGitHub, cmake, unstableGitUpdater }: 2 3stdenv.mkDerivation { 4 pname = "libcxxrt"; 5 version = "unstable-2022-08-08"; 6 7 src = fetchFromGitHub { 8 owner = "libcxxrt"; 9 repo = "libcxxrt"; 10 rev = "a0f7f5c139a7daf71de0de201b6c405d852b1dc1"; 11 sha256 = "6ErOhlD6pOudbTkFTlI2hjBuYT3QuzEiL33/mLnw1aI="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 installPhase = '' 17 mkdir -p $out/include $out/lib 18 cp ../src/cxxabi.h $out/include 19 cp lib/libcxxrt${stdenv.hostPlatform.extensions.library} $out/lib 20 ''; 21 22 passthru = { 23 libName = "cxxrt"; 24 updateScript = unstableGitUpdater { }; 25 }; 26 27 meta = with lib; { 28 homepage = "https://github.com/libcxxrt/libcxxrt"; 29 description = "Implementation of the Code Sourcery C++ ABI"; 30 maintainers = with maintainers; [ qyliss ]; 31 platforms = platforms.all; 32 license = licenses.bsd2; 33 }; 34}