Compare commits
3 Commits
71eb05c09a
...
5f15f42ffb
Author | SHA1 | Date |
---|---|---|
Martin | 5f15f42ffb | |
Martin | b48c4d423b | |
Martin | 8ecfa79ccd |
|
@ -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": {
|
||||||
|
|
|
@ -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
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue