Unverified Commit f13547a8 authored by Jeremy Schlatter's avatar Jeremy Schlatter
Browse files

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.

    - https://github.com/bazelbuild/bazel/commit/217fafe2b492de7349547cc3be2b9eef38628055
parent d2943a89
Loading
Loading
Loading
Loading
+0 −35
Original line number Diff line number Diff line
{ 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";
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -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 ''
+0 −2
Original line number Diff line number Diff line
@@ -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 { };