Update deps

This commit is contained in:
Martin 2024-07-13 19:17:45 +01:00
parent 5f15f42ffb
commit a7763a3b35
Signed by: mawalu
GPG Key ID: BF556F989760A7C8
4 changed files with 450 additions and 4 deletions

View File

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1687523113, "lastModified": 1720893482,
"narHash": "sha256-dQhdLPyLanyyNbzE9BmV/+792IEkPGrEOi/RC2GRLXs=", "narHash": "sha256-fGQczQ3JuvqSK3rYsJvvbE7j8BENLp8DqJH1B0uXYKg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2c59f96089a1a4c5c8aaee1e9095f662204a753c", "rev": "94c843e8f05bac70e905c48c965ba7be79bde613",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -6,7 +6,7 @@
outputs = { self, nixpkgs }: { outputs = { self, nixpkgs }: {
packages.x86_64-linux.default = packages.x86_64-linux.default =
with import nixpkgs { system = "x86_64-linux"; }; with import nixpkgs { system = "x86_64-linux"; };
nimPackages.buildNimPackage { buildNimPackage {
name = "bwbox"; name = "bwbox";
src = self; src = self;
nativeBuildInputs = [pkgs.makeWrapper]; nativeBuildInputs = [pkgs.makeWrapper];

View File

@ -1,4 +1,5 @@
import strutils import strutils
import sequtils
import options import options
import config import config
import utils import utils
@ -36,6 +37,7 @@ proc sandboxExec*(args: Args) =
config.extendConfig() config.extendConfig()
call call
.addArg("--new-session")
.addArg("--dev", "/dev") .addArg("--dev", "/dev")
.addMount("--dev-bind", "/dev/random") .addMount("--dev-bind", "/dev/random")
.addMount("--dev-bind", "/dev/urandom") .addMount("--dev-bind", "/dev/urandom")
@ -73,4 +75,7 @@ proc sandboxExec*(args: Args) =
var cmd = args.getCmd var cmd = args.getCmd
cmd[0] = findExe(cmd[0]) cmd[0] = findExe(cmd[0])
echo call.args.join(" ")
echo cmd
call.addArg(cmd).exec() call.addArg(cmd).exec()

441
log Normal file

File diff suppressed because one or more lines are too long