From 9967f8a79680b98788d5e1eb765c9f3e12850c8b Mon Sep 17 00:00:00 2001 From: Brian Ryall Date: Tue, 30 May 2023 08:05:35 -0400 Subject: [PATCH] emacsPackages.beancount: init at 20230205.436 --- .../emacs/elisp-packages/manual-packages.nix | 2 ++ .../manual-packages/beancount/default.nix | 35 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/applications/editors/emacs/elisp-packages/manual-packages/beancount/default.nix diff --git a/pkgs/applications/editors/emacs/elisp-packages/manual-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/manual-packages.nix index 8f79040c4f21..9ed5f23dead0 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/manual-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/manual-packages.nix @@ -13,6 +13,8 @@ in agda2-mode = callPackage ./manual-packages/agda2-mode { }; + beancount = callPackage ./manual-packages/beancount { }; + cask = callPackage ./manual-packages/cask { }; control-lock = callPackage ./manual-packages/control-lock { }; diff --git a/pkgs/applications/editors/emacs/elisp-packages/manual-packages/beancount/default.nix b/pkgs/applications/editors/emacs/elisp-packages/manual-packages/beancount/default.nix new file mode 100644 index 000000000000..0e3c66e03242 --- /dev/null +++ b/pkgs/applications/editors/emacs/elisp-packages/manual-packages/beancount/default.nix @@ -0,0 +1,35 @@ +{ lib +, melpaBuild +, fetchFromGitHub +, emacs +, writeText +}: + +let + rev = "519bfd868f206ed2fc538a57cdb631c4fec3c93e"; +in +melpaBuild { + pname = "beancount"; + version = "20230205.436"; + + src = fetchFromGitHub { + owner = "beancount"; + repo = "beancount-mode"; + inherit rev; + hash = "sha256-nTEXJdPEPZpNm06uYvRxLuiOHmsiIgMLerd//dA0+KQ="; + }; + + commit = rev; + + recipe = writeText "recipe" '' + (beancount :repo "beancount/beancount-mode" :fetcher github) + ''; + + meta = { + homepage = "https://github.com/beancount/beancount-mode"; + description = "Emacs major-mode to work with Beancount ledger files"; + maintainers = with lib.maintainers; [ polarmutex ]; + license = lib.licenses.gpl3Only; + inherit (emacs.meta) platforms; + }; +}