Package stdcxx library
parent
d0ba11aba8
commit
81fd2fce98
@ -1,24 +1,24 @@
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
{ stdenvNoCC, llvmPackages }:
|
||||
{ genodeSources, genodeBase }:
|
||||
|
||||
let
|
||||
stdenv = stdenvNoCC;
|
||||
inherit (llvmPackages) libcxx;
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "stdcxx";
|
||||
inherit (libcxx) version meta;
|
||||
let port = genodeSources.ports.stdcxx;
|
||||
in genodeSources.buildUpstream {
|
||||
name = "stdcxx";
|
||||
outputs = [ "out" "dev" ];
|
||||
targets = [ "LIB=stdcxx" ];
|
||||
portInputs = [ genodeSources.ports.libc port ];
|
||||
propagatedBuildInputs = [ genodeBase ];
|
||||
|
||||
buildInputs = [ libcxx ];
|
||||
STDCXX_PORT = port;
|
||||
postInstall = ''
|
||||
mkdir -p $dev/include
|
||||
|
||||
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
|
||||
pushd $STDCXX_PORT/*
|
||||
cp -r --no-preserve=mode \
|
||||
include/stdcxx/* \
|
||||
$GENODE_DIR/repos/libports/include/stdcxx/* \
|
||||
$dev/include/
|
||||
popd
|
||||
'';
|
||||
}
|
||||
|
@ -1,5 +0,0 @@
|
||||
Name: stdcxx
|
||||
Description: Genode Standard C++ library
|
||||
Version: @version@
|
||||
Requires: libc libm
|
||||
Cflags: @cflags@
|
Loading…
Reference in New Issue