We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 792de8b commit d48bd4aCopy full SHA for d48bd4a
pkgs/build-support/elisp/convertToElpaArchive.nix
@@ -5,7 +5,7 @@
5
}:
6
{
7
ename,
8
- version,
+ version ? null,
9
meta,
10
sourceInfo ? null,
11
packageRequires,
@@ -29,13 +29,15 @@ let
29
commitInfo = lib.optionalString (sourceInfo != null && sourceInfo ? rev) ''
30
:commit "${sourceInfo.rev}"
31
'';
32
+
33
+ versionString = if version != null then version else "0";
34
in
-runCommand "${ename}-${version}"
35
+runCommand "${ename}-${versionString}"
36
37
buildInputs = lib.optional hasInfo texinfo;
38
39
pkgDescription = ''
- (define-package "${ename}" "${version}" "${meta.description}"
40
+ (define-package "${ename}" "${versionString}" "${meta.description}"
41
'${attrsToLispAlist packageRequires}
42
${commitInfo})
43
;; Local Variables:
0 commit comments