about summary refs log tree commit diff
path: root/pkgs/build-support/emacs
diff options
context:
space:
mode:
authorLin Jian <me@linj.tech>2023-09-06 09:16:40 +0800
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-09-06 02:24:07 +0000
commit35ccb9db3f4f0872f05d175cf53d0e1f87ff09ea (patch)
tree69bea53b1d4474edfc621c0fc6321242d03ed2cf /pkgs/build-support/emacs
parent62e6823ff1aaa7688424fff7bcadcb7b80d9bc42 (diff)
build-support/emacs: make version non-optional
I do not think there is a good reason for it to be optional.

There were only two packages without a version attr.  The version attr
is added to them in this patch.
Diffstat (limited to 'pkgs/build-support/emacs')
-rw-r--r--pkgs/build-support/emacs/generic.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/emacs/generic.nix b/pkgs/build-support/emacs/generic.nix
index add8fb5525f99..8072e8b47ef59 100644
--- a/pkgs/build-support/emacs/generic.nix
+++ b/pkgs/build-support/emacs/generic.nix
@@ -3,7 +3,7 @@
 { lib, stdenv, emacs, texinfo, writeText, gcc, ... }:
 
 { pname
-, version ? null
+, version
 , buildInputs ? []
 , packageRequires ? []
 , meta ? {}
@@ -20,7 +20,7 @@ let
 in
 
 stdenv.mkDerivation ({
-  name = "emacs-${pname}${lib.optionalString (version != null) "-${version}"}";
+  name = "emacs-${pname}-${version}";
 
   unpackCmd = ''
     case "$curSrc" in