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; + }; +}