ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
37 lines
912 B
Nix
37 lines
912 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, fuse
|
|
, pkg-config
|
|
, installShellFiles
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sandboxfs";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bazelbuild";
|
|
repo = pname;
|
|
rev = "sandboxfs-${version}";
|
|
sha256 = "Ia6rq6FN4abnvLXjlQh4Q+8ra5JThKnC86UXC7s9//U=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-k303TjWG+n+/ZMmko84KJtYb7swuQ1ZJOc4Vq6aOhX0=";
|
|
|
|
# Issue to add Cargo.lock upstream: https://github.com/bazelbuild/sandboxfs/pull/115
|
|
cargoPatches = [ ./Cargo.lock.patch ];
|
|
|
|
nativeBuildInputs = [ pkg-config installShellFiles ];
|
|
|
|
buildInputs = [ fuse ];
|
|
|
|
postInstall = "installManPage man/sandboxfs.1";
|
|
|
|
meta = with lib; {
|
|
description = "A virtual file system for sandboxing";
|
|
homepage = "https://github.com/bazelbuild/sandboxfs";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ jeremyschlatter ];
|
|
};
|
|
}
|