blob: 52d87f4deb1c00183af8b85dfe701d4059f063a7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ lib, rustPlatform, fetchFromGitHub
, fuse
, pkg-config
}:
rustPlatform.buildRustPackage rec {
pname = "catfs";
version = "0.9.0";
src = fetchFromGitHub {
owner = "kahing";
repo = pname;
rev = "v${version}";
hash = "sha256-OvmtU2jpewP5EqPwEFAf67t8UCI1WuzUO2QQj4cH1Ak=";
};
patches = [
# monitor https://github.com/kahing/catfs/issues/71
./fix-for-rust-1.65.diff
];
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"fd-0.2.3" = "sha256-Xps5s30urCZ8FZYce41nOZGUAk7eRyvObUS/mMx6Tfg=";
};
};
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";
mainProgram = "catfs";
homepage = "https://github.com/kahing/catfs";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}
|