Unverified Commit 23dbb4c4 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

doctave: fix build (#351161)

parents 4a2d9ad0 929843ca
Loading
Loading
Loading
Loading
+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",
+1639 −0

File added.

Preview size limit exceeded, changes collapsed.

+43 −0
Original line number Diff line number Diff line
{ lib, rustPlatform, fetchFromGitHub, stdenv, CoreServices }:
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  stdenv,
  darwin,
}:

rustPlatform.buildRustPackage rec {
  pname = "doctave";
@@ -6,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 [
    CoreServices
    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";
  };
}
+0 −4
Original line number Diff line number Diff line
@@ -6970,10 +6970,6 @@ with pkgs;
  dockbarx = callPackage ../applications/misc/dockbarx { };
  doctave = callPackage ../applications/misc/doctave {
    inherit (darwin.apple_sdk.frameworks) CoreServices;
  };
  dog = callPackage ../tools/system/dog { };
  dogdns = callPackage ../tools/networking/dogdns {