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.

posix.nix 799B

123456789101112131415161718192021222324252627282930313233
  1. { pkgs, legacyPackages, ... }:
  2. with pkgs;
  3. let
  4. inherit (legacyPackages) bash coreutils;
  5. script = with legacyPackages;
  6. writeTextFile {
  7. name = "posix.sh";
  8. text = ''
  9. export PATH=${
  10. lib.makeSearchPathOutput "bin" "bin"
  11. (with legacyPackages; [ bash hello coreutils ])
  12. }
  13. set -v
  14. time ls -lR /nix
  15. sleep 1
  16. hello -v
  17. sleep 1
  18. uname -a
  19. '';
  20. };
  21. in rec {
  22. name = "posix";
  23. machine = {
  24. config = ''
  25. ${
  26. ./posix.dhall
  27. } { bash = \"${bash}\", coreutils = \"${coreutils}\", script = \"${script}\" }'';
  28. inputs = map pkgs.genodeSources.depot [ "libc" "posix" "vfs_pipe" "vfs" ]
  29. ++ [ bash ];
  30. extraPaths = [ script ] ++ (with legacyPackages; [ coreutils hello ]);
  31. };
  32. }