Skip to content

Commit

Permalink
obsidian-export: use finalAttrs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaSajt committed Nov 15, 2024
1 parent 4f0428c commit dd7fb2e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions pkgs/by-name/ob/obsidian-export/package.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{ lib
, rustPlatform
, fetchFromGitHub
{
lib,
rustPlatform,
fetchFromGitHub,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "obsidian-export";
version = "23.12.0";

src = fetchFromGitHub {
owner = "zoni";
repo = "obsidian-export";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-r5G2XVV2F/Bt29gxuTZKX+KxH6RFa1hJNH3gSTi7yCU=";
};

cargoHash = "sha256-lkqoMFasHpfhmVd3dlYd/TKIBIDzqMbsxfigpeJq0w8=";

meta = {
changelog = "https://github.com/zoni/obsidian-export/blob/${src.rev}/CHANGELOG.md";
changelog = "https://github.com/zoni/obsidian-export/blob/${finalAttrs.src.rev}/CHANGELOG.md";
description = "Rust library and CLI to export an Obsidian vault to regular Markdown";
homepage = "https://github.com/zoni/obsidian-export";
license = lib.licenses.bsd2Patent;
mainProgram = "obsidian-export";
maintainers = with lib.maintainers; [ tomasajt ];
};
}
})

0 comments on commit dd7fb2e

Please sign in to comment.