emacs.pkgs.gn-mode: init (#342124)

This commit is contained in:
Lin Jian
2024-09-16 16:29:50 +08:00
committed by GitHub

View File

@@ -0,0 +1,28 @@
{
lib,
gn,
melpaBuild,
}:
melpaBuild {
pname = "gn-mode-from-sources";
ename = "gn-mode";
version = "0-unstable-${gn.version}";
inherit (gn) src;
files = ''("misc/emacs/gn-mode.el")'';
# Fixes the malformed header error
postPatch = ''
substituteInPlace misc/emacs/gn-mode.el \
--replace-fail ";;; gn-mode.el - " ";;; gn-mode.el --- "
'';
ignoreCompilationError = false;
meta = {
inherit (gn.meta) homepage license;
maintainers = with lib.maintainers; [ ];
description = "Major mode for editing GN files; taken from GN sources";
};
}