mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
38 lines
912 B
Nix
38 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-fAPMAVvcI3pm3zTLATO7SUdZpG469fjlBZshFhgv6gY=";
|
|
|
|
# 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 ];
|
|
};
|
|
}
|