at 24.11-pre 32 lines 913 B view raw
1{ lib, rustPlatform, fetchFromGitHub, fetchpatch }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "fundoc"; 5 version = "0.5.0"; 6 7 src = fetchFromGitHub { 8 owner = "daynin"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-8WWaYgfqGWrTV2EEeSPz1BN2ur7gsxFiHeDNMJdVDcw="; 12 }; 13 14 cargoPatches = [ 15 # updates outdated lock file and fixes a test 16 (fetchpatch { 17 name = "fix-tests.patch"; 18 url = "https://github.com/daynin/fundoc/commit/7dd3cf53a1d1ed72b00bf38ea3a45ba4590da7ef.patch"; 19 hash = "sha256-9Xsw2P4t9gzwc/qDU6U5+HZevPiQOOQo88gybC8QpyM="; 20 }) 21 ]; 22 23 cargoHash = "sha256-yapFUkG2JfGb3N3iVEDpQunOyRnbNTs+q3zQ23B23/s="; 24 25 meta = with lib; { 26 description = "Language agnostic documentation generator"; 27 mainProgram = "fundoc"; 28 homepage = "https://github.com/daynin/fundoc"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ figsoda ]; 31 }; 32}