2022-10-06 23:38:39 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, fetchpatch }:
|
2021-09-20 18:22:20 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "fundoc";
|
2023-03-29 13:44:35 +00:00
|
|
|
version = "0.5.0";
|
2021-09-20 18:22:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-03-29 13:44:35 +00:00
|
|
|
owner = "daynin";
|
2021-09-20 18:22:20 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-29 13:44:35 +00:00
|
|
|
hash = "sha256-8WWaYgfqGWrTV2EEeSPz1BN2ur7gsxFiHeDNMJdVDcw=";
|
2021-09-20 18:22:20 +00:00
|
|
|
};
|
|
|
|
|
2022-10-06 23:38:39 +00:00
|
|
|
cargoPatches = [
|
2023-03-29 13:44:35 +00:00
|
|
|
# updates outdated lock file and fixes a test
|
2022-10-06 23:38:39 +00:00
|
|
|
(fetchpatch {
|
2023-03-29 13:44:35 +00:00
|
|
|
name = "fix-tests.patch";
|
|
|
|
url = "https://github.com/daynin/fundoc/commit/7dd3cf53a1d1ed72b00bf38ea3a45ba4590da7ef.patch";
|
|
|
|
hash = "sha256-9Xsw2P4t9gzwc/qDU6U5+HZevPiQOOQo88gybC8QpyM=";
|
2022-10-06 23:38:39 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-03-29 13:44:35 +00:00
|
|
|
cargoHash = "sha256-yapFUkG2JfGb3N3iVEDpQunOyRnbNTs+q3zQ23B23/s=";
|
2021-09-20 18:22:20 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Language agnostic documentation generator";
|
2023-03-29 13:44:35 +00:00
|
|
|
homepage = "https://github.com/daynin/fundoc";
|
2021-09-20 18:22:20 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|