You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
554 B
Nix
27 lines
554 B
Nix
# SPDX-FileCopyrightText: Emery Hemingway
|
|
#
|
|
# SPDX-License-Identifier: LicenseRef-Hippocratic-1.1
|
|
|
|
{ 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 = ''
|
|
cflags=$NIX_CXXSTDLIB_COMPILE \
|
|
substituteAll ${./stdcxx.pc} ${pname}.pc
|
|
mkdir -p $out/lib/pkgconfig
|
|
install -Dm444 *.pc $out/lib/pkgconfig
|
|
'';
|
|
}
|