We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b35c563 commit 792de8bCopy full SHA for 792de8b
pkgs/build-support/elisp/convertToElpaArchive.nix
@@ -7,7 +7,7 @@
7
ename,
8
version,
9
meta,
10
- sourceInfo,
+ sourceInfo ? null,
11
packageRequires,
12
# There are some missing attributes desired for the package description, but
13
# omit them for now.
@@ -25,6 +25,10 @@ let
25
+ ")";
26
27
hasInfo = builtins.elem "info" drv.outputs;
28
+
29
+ commitInfo = lib.optionalString (sourceInfo != null && sourceInfo ? rev) ''
30
+ :commit "${sourceInfo.rev}"
31
+ '';
32
in
33
runCommand "${ename}-${version}"
34
{
@@ -33,7 +37,7 @@ runCommand "${ename}-${version}"
37
pkgDescription = ''
38
(define-package "${ename}" "${version}" "${meta.description}"
35
39
'${attrsToLispAlist packageRequires}
36
- :commit "${sourceInfo.rev}")
40
+ ${commitInfo})
41
;; Local Variables:
42
;; no-byte-compile: t
43
;; End:
0 commit comments