mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-03-22 10:42:42 +00:00
feat(wechat): bwrapped wechat from nur
This commit is contained in:
parent
0e8eae72d1
commit
f33575d2ff
6 changed files with 46 additions and 1 deletions
20
nixcfgs/overlays/wechat-uos-sandboxed.nix
Normal file
20
nixcfgs/overlays/wechat-uos-sandboxed.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
final: prev: {
|
||||
wechat-uos-sandboxed = prev.nur.repos.xddxdd.wechat-uos-sandboxed.override {
|
||||
buildFHSEnvBubblewrap = args:
|
||||
prev.buildFHSEnvBubblewrap (
|
||||
args
|
||||
// {
|
||||
extraPreBwrapCmds =
|
||||
''
|
||||
if [[ -z "''${WECHAT_DATA_DIR}" ]]; then
|
||||
WECHAT_DATA_DIR="''${WECHAT_SANDBOX_DIR:-$HOME/.sandbox/.per-app/wechat}"
|
||||
fi
|
||||
''
|
||||
+ (if args ? extraPreBwrapCmds then args.extraPreBwrapCmds else "");
|
||||
targetPkgs =
|
||||
pkgs:
|
||||
(if args ? targetPkgs then args.targetPkgs pkgs else []) ++ [pkgs.util-linux];
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue