2
0
Fork 0
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.
genodepkgs/packages/stdcxx/default.nix

25 lines
560 B
Nix

{ genodePackages }:
let
inherit (genodePackages) genodeSources;
port = genodeSources.ports.stdcxx;
in genodeSources.buildUpstream {
name = "stdcxx";
outputs = [ "out" "dev" ];
targets = [ "LIB=stdcxx" ];
portInputs = [ genodeSources.ports.libc port ];
propagatedBuildInputs = [ genodeSources.genodeBase ];
STDCXX_PORT = port;
postInstall = ''
mkdir -p $dev/include
pushd $STDCXX_PORT/*
cp -r --no-preserve=mode \
include/stdcxx/* \
$GENODE_DIR/repos/libports/include/stdcxx/* \
$dev/include/
popd
'';
}