Unverified Commit 929843ca authored by wxt's avatar wxt
Browse files

doctave: fix build

parent 0b268d4b
Loading
Loading
Loading
Loading
+1639 −0

File added.

Preview size limit exceeded, changes collapsed.

+0 −11
Original line number Diff line number Diff line
--- 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",
+14 −8
Original line number Diff line number Diff line
@@ -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";
  };
}