Merge pull request #106606 from alyssais/elpa-meta

emacsPackages.elpaBuild: pass through meta
This commit is contained in:
adisbladis 2020-12-11 00:22:42 +01:00 committed by GitHub
commit 316094b8ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,9 +7,18 @@ with lib;
{ pname
, version
, src
, meta ? {}
, ...
}@args:
let
defaultMeta = {
homepage = args.src.meta.homepage or "https://elpa.gnu.org/packages/${pname}.html";
};
in
import ./generic.nix { inherit lib stdenv emacs texinfo; } ({
phases = "installPhase fixupPhase distPhase";
@ -23,6 +32,8 @@ import ./generic.nix { inherit lib stdenv emacs texinfo; } ({
runHook postInstall
'';
meta = defaultMeta // meta;
}
// removeAttrs args [ "files" "fileSpecs"