nixpkgs/pkgs/by-name/gl/glycin-loaders/fix-glycin-paths.patch
Maxine Aubrey 8d57ba244c
glycin-loaders: 0.1.2 → 1.0.1
https://gitlab.gnome.org/sophie-h/glycin/-/compare/0.1.2...1.0.1

Co-Authored-By: Bobby Rong <rjl931189261@126.com>

Changelog-Reviewed-By: Maxine Aubrey <max@ine.dev>
2024-04-22 21:11:10 +02:00

25 lines
848 B
Diff

diff --git a/vendor/glycin/src/sandbox.rs b/vendor/glycin/src/sandbox.rs
index 7d00b36..aa70dc7 100644
--- a/vendor/glycin/src/sandbox.rs
+++ b/vendor/glycin/src/sandbox.rs
@@ -165,7 +165,7 @@ impl Sandbox {
args.push(self.command);
- ("bwrap".into(), args, Some(seccomp_memfd))
+ ("@bwrap@".into(), args, Some(seccomp_memfd))
}
SandboxMechanism::FlatpakSpawn => {
let memory_limit = Self::memory_limit();
@@ -233,8 +233,8 @@ impl Sandbox {
"/",
// Make /usr available as read only
"--ro-bind",
- "/usr",
- "/usr",
+ "/nix/store",
+ "/nix/store",
// Make tmpfs dev available
"--dev",
"/dev",