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.
This commit is contained in:
parent
62e6823ff1
commit
35ccb9db3f
|
@ -8,6 +8,8 @@ trivialBuild {
|
||||||
hash = "sha256-JCrmS3FSGDHSR+eAR0X/uO0nAgd3TUmFxwEVH5+KV+4=";
|
hash = "sha256-JCrmS3FSGDHSR+eAR0X/uO0nAgd3TUmFxwEVH5+KV+4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
version = "1.1.2";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Like caps-lock, but for your control key. Give your pinky a rest!";
|
description = "Like caps-lock, but for your control key. Give your pinky a rest!";
|
||||||
homepage = "https://www.emacswiki.org/emacs/control-lock.el";
|
homepage = "https://www.emacswiki.org/emacs/control-lock.el";
|
||||||
|
|
|
@ -10,6 +10,8 @@ trivialBuild {
|
||||||
sha256 = "0x6qsgs4hm87k0z9q3g4p6508kc3y123j5jayll3jf3lcl2vm6ks";
|
sha256 = "0x6qsgs4hm87k0z9q3g4p6508kc3y123j5jayll3jf3lcl2vm6ks";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
version = "1.10";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
broken = true;
|
broken = true;
|
||||||
description = "Minor mode provides useful features for editing perl codes";
|
description = "Minor mode provides useful features for editing perl codes";
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{ lib, stdenv, emacs, texinfo, writeText, gcc, ... }:
|
{ lib, stdenv, emacs, texinfo, writeText, gcc, ... }:
|
||||||
|
|
||||||
{ pname
|
{ pname
|
||||||
, version ? null
|
, version
|
||||||
, buildInputs ? []
|
, buildInputs ? []
|
||||||
, packageRequires ? []
|
, packageRequires ? []
|
||||||
, meta ? {}
|
, meta ? {}
|
||||||
|
@ -20,7 +20,7 @@ let
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation ({
|
stdenv.mkDerivation ({
|
||||||
name = "emacs-${pname}${lib.optionalString (version != null) "-${version}"}";
|
name = "emacs-${pname}-${version}";
|
||||||
|
|
||||||
unpackCmd = ''
|
unpackCmd = ''
|
||||||
case "$curSrc" in
|
case "$curSrc" in
|
||||||
|
|
Loading…
Reference in a new issue