emacsPackages.age: replace program (#343569)

This commit is contained in:
Lin Jian 2024-09-22 06:49:42 +08:00 committed by GitHub
commit 2a3a53a2fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,6 +133,13 @@ let
# Expects bash to be at /bin/bash
ac-rtags = fix-rtags super.ac-rtags;
age = super.age.overrideAttrs (attrs: {
postPatch = attrs.postPatch or "" + ''
substituteInPlace age.el \
--replace-fail 'age-program (executable-find "age")' 'age-program "${lib.getExe pkgs.age}"'
'';
});
airline-themes = super.airline-themes.override {
inherit (self.melpaPackages) powerline;
};