summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs/elisp-packages/header-file-mode/default.nix
blob: 139bddffa87a2a50477940e06c50a94617001d14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ trivialBuild
, lib
, fetchFromGitHub
}:

trivialBuild {
  pname = "header-file-mode";
  version = "unstable-2022-05-13";

  src = fetchFromGitHub {
    owner = "aidalgol";
    repo = "header-file-mode";
    rev = "bcfd19a2c70030ebf5fa68e87aca4b3db8fad13e";
    sha256 = "sha256-XMXOU+vWJ/0e0ny4Dz3DxWpdEfSNXGzm03sBke32Dwc=";
  };

  postUnpack = ''
    sourceRoot="$sourceRoot/lisp"
  '';

  meta = {
    description = ''
      A major mode that, when associated with the .h file extension, will put
      those file into the major mode of their corresponding implementation file.
    '';
    license = lib.licenses.gpl3Plus;
    platforms = lib.platforms.all;
    maintainers = with lib.maintainers; [ aidalgol ];
  };
}