2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-10-07 09:15:18 +00:00
|
|
|
, rustPlatform
|
2021-10-08 15:17:17 +00:00
|
|
|
, fetchCrate
|
2020-10-07 09:15:18 +00:00
|
|
|
, pkg-config
|
|
|
|
, installShellFiles
|
2021-10-08 15:17:17 +00:00
|
|
|
, fuse
|
2020-10-07 09:15:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sandboxfs";
|
|
|
|
version = "0.2.0";
|
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "sha256-nrrkFYAf7HqaGFruolNTkXzy4ID6/vipxd+fOCKYARM=";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
cargoSha256 = "sha256-izz10ePmEt2xxOyR4NODIMAcY9d4ODo677mq+DVf4RI=";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
|
|
|
|
|
|
|
buildInputs = [ fuse ];
|
|
|
|
|
|
|
|
postInstall = "installManPage man/sandboxfs.1";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-10-07 09:15:18 +00:00
|
|
|
description = "A virtual file system for sandboxing";
|
|
|
|
homepage = "https://github.com/bazelbuild/sandboxfs";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ jeremyschlatter ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "sandboxfs";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
}
|