sandboxfs: remove

sandboxfs was an experiment to increase sandboxing performance in bazel,
but it never reached a stable release.

The author of sandboxfs left Google in 2020 and there have been no
updates to it since then.

bazel dropped sandboxfs in the bazel 7 release. To quote their release
notes:

    The sandboxfs sandboxing strategy is removed. It hadn't been
    maintained for a long time, it didn't work for most users and it was
    not consistently faster while being complex to set up. sandboxfs
    performance is heavily dependent on the specific setup (setup costs
    are lower, but you have to pay a penalty for the use of each input)
    and there are scenarios where it is faster and scenarios where it is
    slower. Overall it is not worth its weight.

    - 217fafe2b4
This commit is contained in:
Jeremy Schlatter 2024-06-10 12:21:59 -07:00
parent d2943a89bb
commit f13547a8cb
No known key found for this signature in database
GPG Key ID: 4D081B793DF81368
3 changed files with 1 additions and 37 deletions

View File

@ -1,35 +0,0 @@
{ stdenv
, lib
, rustPlatform
, fetchCrate
, pkg-config
, installShellFiles
, fuse
}:
rustPlatform.buildRustPackage rec {
pname = "sandboxfs";
version = "0.2.0";
src = fetchCrate {
inherit pname version;
sha256 = "sha256-nrrkFYAf7HqaGFruolNTkXzy4ID6/vipxd+fOCKYARM=";
};
cargoSha256 = "sha256-izz10ePmEt2xxOyR4NODIMAcY9d4ODo677mq+DVf4RI=";
nativeBuildInputs = [ pkg-config installShellFiles ];
buildInputs = [ fuse ];
postInstall = "installManPage man/sandboxfs.1";
meta = with lib; {
broken = stdenv.isDarwin;
description = "Virtual file system for sandboxing";
homepage = "https://github.com/bazelbuild/sandboxfs";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ jeremyschlatter ];
mainProgram = "sandboxfs";
};
}

View File

@ -1182,6 +1182,7 @@ mapAliases ({
### S ###
s2n = s2n-tls; # Added 2021-03-03
sandboxfs = throw "'sandboxfs' has been removed due to being unmaintained, consider using linux namespaces for sandboxing instead"; # Added 2024-06-06
sane-backends-git = sane-backends; # Added 2021-02-19
scantailor = scantailor-advanced; # Added 2022-05-26
schildichat-web = throw ''

View File

@ -12690,8 +12690,6 @@ with pkgs;
sanctity = callPackage ../tools/misc/sanctity { };
sandboxfs = callPackage ../tools/filesystems/sandboxfs { };
sanjuuni = callPackage ../tools/graphics/sanjuuni { };
sasquatch = callPackage ../tools/filesystems/sasquatch { };