Unverified Commit 05ea7202 authored by Lin Jian's avatar Lin Jian Committed by GitHub
Browse files

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

parents 65574870 93424a6c
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
{
  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";
  };
}