Unverified Commit 282fbdf8 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

markdown-oxide: use fetchCargoVendor; use finalAttrs; etc (#388100)

parents aa172ed0 fcaec330
Loading
Loading
Loading
Loading
+0 −1779

File deleted.

Preview size limit exceeded, changes collapsed.

+6 −9
Original line number Diff line number Diff line
@@ -3,23 +3,19 @@
  rustPlatform,
  fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "markdown-oxide";
  version = "0.25.1";

  src = fetchFromGitHub {
    owner = "Feel-ix-343";
    repo = "markdown-oxide";
    rev = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-hgXqJwmIpXJNIl67Jjbg5MR4PlwB5XbqnFo+rNLoqbE=";
  };

  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "tower-lsp-0.20.0" = "sha256-QRP1LpyI52KyvVfbBG95LMpmI8St1cgf781v3oyC3S4=";
    };
  };
  useFetchCargoVendor = true;
  cargoHash = "sha256-o4wn6L5PVZM0SN8kA34NOp6ogTSoCv2xiN4vfj+ptc8=";

  meta = {
    description = "Markdown LSP server inspired by Obsidian";
@@ -28,7 +24,8 @@ rustPlatform.buildRustPackage rec {
    maintainers = with lib.maintainers; [
      linsui
      jukremer
      HeitorAugustoLN
    ];
    mainProgram = "markdown-oxide";
  };
}
})