2020-01-17 01:24:34 +01:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
2019-11-12 21:05:25 +01:00
|
|
|
|
|
|
|
{ stdenvNoCC, llvmPackages }:
|
|
|
|
|
|
|
|
let
|
|
|
|
stdenv = stdenvNoCC;
|
|
|
|
inherit (llvmPackages) libcxx;
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "stdcxx";
|
|
|
|
inherit (libcxx) version meta;
|
|
|
|
|
|
|
|
buildInputs = [ libcxx ];
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-11-19 16:31:11 +01:00
|
|
|
cflags=$NIX_CXXSTDLIB_COMPILE \
|
|
|
|
substituteAll ${./stdcxx.pc} ${pname}.pc
|
2019-11-12 21:05:25 +01:00
|
|
|
mkdir -p $out/lib/pkgconfig
|
|
|
|
install -Dm444 *.pc $out/lib/pkgconfig
|
|
|
|
'';
|
|
|
|
}
|