We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 10d699b + a281e72 commit 41b30c0Copy full SHA for 41b30c0
pkgs/emacs/lock/default.nix
@@ -32,16 +32,13 @@ assert (flakeNix || archiveLock); let
32
];
33
34
packageMetadata =
35
- mapAttrs (_: {
36
- src,
37
- version,
38
- packageRequires,
39
- meta,
40
- author,
41
- ...
42
- }: {
43
- inherit (src) narHash;
44
- inherit version packageRequires meta author;
+ mapAttrs (name: attrs: {
+ inherit (attrs.src) narHash;
+ inherit (attrs) version packageRequires meta;
+ # There can be packages that lack Author header, so set null in that case.
+ author =
+ attrs.author
+ or (builtins.trace "Warning: Package ${name} lacks Author header. This still works, but it is considered a bad practice." null);
45
})
46
packageInputs;
47
0 commit comments