emacsPackages.bpr: override only when needed

This commit is contained in:
Lin Jian 2024-10-14 02:38:02 +08:00
parent bad80f6841
commit afc6b067d1
No known key found for this signature in database
GPG Key ID: A6698D36434F75A5

View File

@ -808,15 +808,20 @@ let
# missing optional dependencies
boogie-friends = addPackageRequires super.boogie-friends [ self.lsp-mode ];
# https://github.com/melpa/melpa/pull/9181
bpr = super.bpr.overrideAttrs (old: {
preBuild =
old.preBuild or ""
+ "\n"
+ ''
rm --verbose --force test-bpr.el
'';
});
bpr = super.bpr.overrideAttrs (
finalAttrs: previousAttrs: {
# https://github.com/melpa/melpa/pull/9181
preBuild =
if lib.versionOlder finalAttrs.version "20241013.1803" then
previousAttrs.preBuild or ""
+ "\n"
+ ''
rm --verbose --force test-bpr.el
''
else
previousAttrs;
}
);
bts = ignoreCompilationError super.bts; # elisp error