2
0
Fork 0
genodepkgs/tests/tor.nix

31 lines
756 B
Nix

{ pkgs, legacyPackages, ... }:
with pkgs;
let
inherit (legacyPackages) bash coreutils;
script = with legacyPackages;
writeTextFile {
name = "rsync.sh";
text = ''
export PATH=${
lib.makeSearchPathOutput "bin" "bin"
(with legacyPackages; [ bash coreutils tor ])
}
set -v
tor --version
tor
'';
};
in rec {
name = "tor";
machine = {
config = ''
${
./posix.dhall
} { bash = \"${bash}\", coreutils = \"${coreutils}\", script = \"${script}\" }'';
inputs = map pkgs.genodeSources.depot [ "libc" "posix" "vfs_pipe" "vfs" ]
++ [ bash legacyPackages.zlib ];
extraPaths = [ script ] ++ (with legacyPackages; [ coreutils tor ]);
};
}