1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 00:54:46 +00:00
nixpkgs/pkgs/os-specific/linux/catfs/default.nix
Daniël de Kok 85f96822a0 treewide: fix cargoSha256/cargoHash
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.
2021-05-08 00:36:37 -07:00

48 lines
1.2 KiB
Nix

{ lib, rustPlatform, fetchFromGitHub
, fetchpatch
, fuse
, pkg-config
}:
rustPlatform.buildRustPackage rec {
pname = "catfs";
version = "unstable-2020-03-21";
src = fetchFromGitHub {
owner = "kahing";
repo = pname;
rev = "daa2b85798fa8ca38306242d51cbc39ed122e271";
sha256 = "0zca0c4n2p9s5kn8c9f9lyxdf3df88a63nmhprpgflj86bh8wgf5";
};
cargoSha256 = "1agcwq409s40kyij487wjrp8mj7942r9l2nqwks4xqlfb0bvaimf";
cargoPatches = [
# update cargo lock
(fetchpatch {
url = "https://github.com/kahing/catfs/commit/f838c1cf862cec3f1d862492e5be82b6dbe16ac5.patch";
sha256 = "1r1p0vbr3j9xyj9r1ahipg4acii3m4ni4m9mp3avbi1rfgzhblhw";
})
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ fuse ];
# require fuse module to be active to run tests
# instead, run command
doCheck = false;
doInstallCheck = true;
installCheckPhase = ''
$out/bin/catfs --help > /dev/null
'';
meta = with lib; {
description = "Caching filesystem written in Rust";
homepage = "https://github.com/kahing/catfs";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ jonringer ];
};
}