Compare commits

...

3 Commits

Author SHA1 Message Date
Martin 5f15f42ffb
Bump dependencies 2023-06-23 15:33:10 +02:00
Martin b48c4d423b
Add runtime dependencies to flake 2023-06-23 15:31:08 +02:00
Martin 8ecfa79ccd
Remove logging 2023-06-23 15:19:26 +02:00
3 changed files with 9 additions and 7 deletions

View File

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1652368125, "lastModified": 1687523113,
"narHash": "sha256-AaNNYTSxN+f85oBN2tnz8SNWiTmFo35jddTHXQjNDgM=", "narHash": "sha256-dQhdLPyLanyyNbzE9BmV/+792IEkPGrEOi/RC2GRLXs=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f73cc9cbd82a7a8ce626bbaf02a55c1cfb34d6e5", "rev": "2c59f96089a1a4c5c8aaee1e9095f662204a753c",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -9,6 +9,12 @@
nimPackages.buildNimPackage { nimPackages.buildNimPackage {
name = "bwbox"; name = "bwbox";
src = self; src = self;
nativeBuildInputs = [pkgs.makeWrapper];
postInstall = ''
wrapProgram $out/bin/bwbox \
--prefix PATH ':' ${pkgs.bubblewrap}/bin \
--prefix PATH ':' ${pkgs.xdg-dbus-proxy}/bin
'';
}; };
}; };
} }

View File

@ -71,10 +71,6 @@ proc sandboxExec*(args: Args) =
# resolve binary path outside of the sandbox # resolve binary path outside of the sandbox
var cmd = args.getCmd var cmd = args.getCmd
echo cmd
cmd[0] = findExe(cmd[0]) cmd[0] = findExe(cmd[0])
echo cmd
call.addArg(cmd).exec() call.addArg(cmd).exec()