2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-10-07 09:15:18 +00:00
|
|
|
, 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=";
|
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "sha256-fAPMAVvcI3pm3zTLATO7SUdZpG469fjlBZshFhgv6gY=";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
# 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";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
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 ];
|
|
|
|
};
|
|
|
|
}
|