File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 7
7
ename ,
8
8
version ,
9
9
meta ,
10
- sourceInfo ,
10
+ sourceInfo ? null ,
11
11
packageRequires ,
12
12
# There are some missing attributes desired for the package description, but
13
13
# omit them for now.
25
25
+ ")" ;
26
26
27
27
hasInfo = builtins . elem "info" drv . outputs ;
28
+
29
+ commitInfo = lib . optionalString ( sourceInfo != null && sourceInfo ? rev ) ''
30
+ :commit "${ sourceInfo . rev } "
31
+ '' ;
28
32
in
29
33
runCommand "${ ename } -${ version } "
30
34
{
@@ -33,7 +37,7 @@ runCommand "${ename}-${version}"
33
37
pkgDescription = ''
34
38
(define-package "${ ename } " "${ version } " "${ meta . description } "
35
39
'${ attrsToLispAlist packageRequires }
36
- :commit " ${ sourceInfo . rev } " )
40
+ ${ commitInfo } )
37
41
;; Local Variables:
38
42
;; no-byte-compile: t
39
43
;; End:
You can’t perform that action at this time.
0 commit comments