mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-24 09:31:29 +00:00
emacs.pkgs.gn-mode: init (#342124)
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user