nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 49 lines 1.1 kB view raw
1{ lib, rustPlatform, fetchFromGitHub 2, fetchpatch 3, fuse 4, pkg-config 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "catfs"; 9 version = "0.9.0"; 10 11 src = fetchFromGitHub { 12 owner = "kahing"; 13 repo = pname; 14 rev = "v${version}"; 15 hash = "sha256-OvmtU2jpewP5EqPwEFAf67t8UCI1WuzUO2QQj4cH1Ak="; 16 }; 17 18 patches = [ 19 # monitor https://github.com/kahing/catfs/issues/71 20 ./fix-for-rust-1.65.diff 21 ]; 22 23 cargoLock = { 24 lockFile = ./Cargo.lock; 25 outputHashes = { 26 "fd-0.2.3" = "sha256-Xps5s30urCZ8FZYce41nOZGUAk7eRyvObUS/mMx6Tfg="; 27 }; 28 }; 29 30 nativeBuildInputs = [ pkg-config ]; 31 32 buildInputs = [ fuse ]; 33 34 # require fuse module to be active to run tests 35 # instead, run command 36 doCheck = false; 37 doInstallCheck = true; 38 installCheckPhase = '' 39 $out/bin/catfs --help > /dev/null 40 ''; 41 42 meta = with lib; { 43 description = "Caching filesystem written in Rust"; 44 homepage = "https://github.com/kahing/catfs"; 45 license = licenses.asl20; 46 platforms = platforms.linux; 47 maintainers = with maintainers; [ jonringer ]; 48 }; 49}