programs: sane-dev-cargo-loop: sandbox
This commit is contained in:
@@ -91,6 +91,20 @@ in
|
|||||||
extraHomePaths = [ "knowledge/planner/deadlines.tsv" ];
|
extraHomePaths = [ "knowledge/planner/deadlines.tsv" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"sane-scripts.dev-cargo-loop".sandbox = {
|
||||||
|
method = "bwrap";
|
||||||
|
wrapperType = "wrappedDerivation";
|
||||||
|
net = "clearnet";
|
||||||
|
whitelistPwd = true;
|
||||||
|
extraPaths = [
|
||||||
|
# a build script can do a lot... but a well-written one will be confined
|
||||||
|
# to XDG dirs and the local dir, and maybe the internet for fetching dependencies.
|
||||||
|
".cache"
|
||||||
|
".config"
|
||||||
|
".local"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
"sane-scripts.find-dotfiles".sandbox = {
|
"sane-scripts.find-dotfiles".sandbox = {
|
||||||
method = "bwrap";
|
method = "bwrap";
|
||||||
wrapperType = "wrappedDerivation";
|
wrapperType = "wrappedDerivation";
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
# optionally, provide your own build command as the first argument
|
# optionally, provide your own build command as the first argument
|
||||||
|
|
||||||
external_cmd="cargo build --all"
|
external_cmd="cargo build --all"
|
||||||
if [ "x$1" != "x" ]
|
if [ -n "$1" ]
|
||||||
then
|
then
|
||||||
external_cmd=$1
|
external_cmd=$1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user