about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ob/obsidian-export/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/by-name/ob/obsidian-export/package.nix')
-rw-r--r--nixpkgs/pkgs/by-name/ob/obsidian-export/package.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/ob/obsidian-export/package.nix b/nixpkgs/pkgs/by-name/ob/obsidian-export/package.nix
new file mode 100644
index 000000000000..93d6f4a3e7b3
--- /dev/null
+++ b/nixpkgs/pkgs/by-name/ob/obsidian-export/package.nix
@@ -0,0 +1,27 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "obsidian-export";
+  version = "23.12.0";
+
+  src = fetchFromGitHub {
+    owner = "zoni";
+    repo = "obsidian-export";
+    rev = "v${version}";
+    hash = "sha256-r5G2XVV2F/Bt29gxuTZKX+KxH6RFa1hJNH3gSTi7yCU=";
+  };
+
+  cargoHash = "sha256-lkqoMFasHpfhmVd3dlYd/TKIBIDzqMbsxfigpeJq0w8=";
+
+  meta = {
+    changelog = "https://github.com/zoni/obsidian-export/blob/${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 ];
+  };
+}