Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 42 lines 929 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 fuse, 6 pkg-config, 7}: 8 9rustPlatform.buildRustPackage { 10 pname = "catfs"; 11 version = "0.9.0-unstable-2023-10-09"; 12 13 src = fetchFromGitHub { 14 owner = "kahing"; 15 repo = "catfs"; 16 rev = "35430f800e68da18fb6bbd25a8f15bf32fa1f166"; 17 hash = "sha256-hbv4SNe0yqjO6Oomev9uKqG29TiJeI8G7LH+Wxn7hnQ="; 18 }; 19 20 cargoHash = "sha256-7MrjyIwXiHy6+rrGGpnfKF1+h1dEgUmo+IlwJlDwWbQ="; 21 22 nativeBuildInputs = [ pkg-config ]; 23 24 buildInputs = [ fuse ]; 25 26 # require fuse module to be active to run tests 27 # instead, run command 28 doCheck = false; 29 doInstallCheck = true; 30 installCheckPhase = '' 31 $out/bin/catfs --help > /dev/null 32 ''; 33 34 meta = with lib; { 35 description = "Caching filesystem written in Rust"; 36 mainProgram = "catfs"; 37 homepage = "https://github.com/kahing/catfs"; 38 license = licenses.asl20; 39 platforms = platforms.linux; 40 maintainers = [ ]; 41 }; 42}