doctave: fix build

This commit is contained in:
wxt 2024-10-25 20:40:26 +08:00
parent 0b268d4b3b
commit 929843caff
No known key found for this signature in database
GPG Key ID: 8281D5EE2D1825A4
3 changed files with 1653 additions and 19 deletions

1639
pkgs/by-name/do/doctave/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +0,0 @@
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -295,7 +295,7 @@ dependencies = [
[[package]]
name = "doctave"
-version = "0.4.0"
+version = "0.4.2"
dependencies = [
"alphanumeric-sort",
"ascii",

View File

@ -12,26 +12,32 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "doctave";
repo = pname;
repo = "doctave";
rev = version;
sha256 = "1780pqvnlbxxhm7rynnysqr0vihdkwmc6rmgp43bmj1k18ar4qgj";
hash = "sha256-8mGSFQozyLoGua9mwyqfDcYNMtbeWp9Phb0vaje+AJ0=";
};
# Cargo.lock is outdated
cargoPatches = [ ./cargo-lock.patch ];
postPatch = ''
ln -sf ${./Cargo.lock} Cargo.lock
'';
cargoHash = "sha256-keLcNttdM9JUnn3qi/bWkcObIHl3MRACDHKPSZuScOc=";
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"doctave-markdown-0.9.0" = "sha256-DDeb91DgLx7vOYHwoDy6+/532q/3/myJUZDqjq7ejJ0=";
};
};
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
];
meta = with lib; {
meta = {
description = "Batteries-included developer documentation site generator";
homepage = "https://github.com/doctave/doctave";
changelog = "https://github.com/doctave/doctave/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ figsoda ];
mainProgram = "doctave";
};
}