programs: strings: fix sandboxing
This commit is contained in:
parent
6aaa724abf
commit
a909a93c29
|
@ -6,7 +6,7 @@
|
|||
packageUnwrapped = pkgs.linkIntoOwnPackage pkgs.binutils-unwrapped "bin/strings";
|
||||
|
||||
sandbox.method = "landlock";
|
||||
sandbox.wrapperType = "wrappedDerivation";
|
||||
sandbox.wrapperType = "inplace";
|
||||
sandbox.autodetectCliPaths = "existing";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
} ''
|
||||
mkdir -p "$out/$(dirname "$item")"
|
||||
cp -a "$fromPkg/$item" "$out/$item"
|
||||
runHook postFixup
|
||||
'';
|
||||
|
||||
linkIntoOwnPackage = pkg: path: runCommand "${pkg.pname or pkg.name}-${path}" {
|
||||
|
@ -20,6 +21,7 @@
|
|||
} ''
|
||||
mkdir -p "$out/$(dirname "$item")"
|
||||
ln -s "$fromPkg/$item" "$out/$item"
|
||||
runHook postFixup
|
||||
'';
|
||||
|
||||
# given some package, create a new package which symlinks every file of the original
|
||||
|
|
Loading…
Reference in New Issue
Block a user