Packages build!
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{ lib, config, pkgs, azos-utils, ... }:
|
||||
let
|
||||
isEnabled =
|
||||
config.azos.emacs.enable && config.azos.suites.editor.enable &&
|
||||
config.azos.emacs.vterm.enable;
|
||||
emacspkgs = config.azos.emacs.emacspkg.pkgs;
|
||||
localPkgName = "azos-emacs-vterm";
|
||||
in
|
||||
{
|
||||
options.azos.emacs.vterm.enable = (azos-utils.mkFeatureEnableOption {
|
||||
description = "Enables Emacs VTERM installation.";});
|
||||
|
||||
#Set config
|
||||
config = lib.mkIf isEnabled {
|
||||
|
||||
#Base emacs suite definition
|
||||
azos.emacs.pkgs = [(emacspkgs.trivialBuild (azos-utils.trivialFromOrg {
|
||||
pname = localPkgName;
|
||||
version = "0.1.6";
|
||||
src = ./el/azos-emacs-vterm.org;
|
||||
packageRequires = with emacspkgs; [
|
||||
vterm
|
||||
];
|
||||
}))];
|
||||
|
||||
azos.emacs.enabledSuites = [localPkgName];
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user