Genode Packages collection https://git.sr.ht/~ehmry/genodepkgs/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 564B

1234567891011121314151617181920212223
  1. { genodeSources, symlinkJoin }:
  2. symlinkJoin {
  3. name = "posix";
  4. paths = map genodeSources.depot [ "libc" "posix" ];
  5. postBuild = ''
  6. local headerDir="''${!outputDev}/include"
  7. mkdir -p "$headerDir"
  8. pushd ${genodeSources.ports.libc}/*
  9. cp -r \
  10. include/libc/* \
  11. include/openlibm/* \
  12. ${genodeSources}/repos/libports/include/libc \
  13. "$headerDir"
  14. for spec in ${toString genodeSources.specs}; do
  15. dir=include/spec/$spec/libc
  16. if [ -d $dir ]; then
  17. cp -r $dir/* "$headerDir"
  18. fi
  19. done
  20. popd
  21. '';
  22. }