about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/emacs/elisp-packages/power-mode/default.nix
blob: 035c906c8ab36360fae0def4906e2ee1f198fc91 (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
{ lib
, stdenv
, fetchFromGitHub
, emacs
}:

stdenv.mkDerivation rec {
  pname = "power-mode";
  version = "2021-06-06";

  src = fetchFromGitHub {
    owner = "elizagamedev";
    repo  = "power-mode.el";
    rev = "940e0aa36220f863e8f43840b4ed634b464fbdbb";
    hash = "sha256-Wy8o9QTWqvH9cP7xsTpF5QSd4mWNIPXJTadoADKeHWY=";
  };

  installPhase = ''
    runHook preInstall
    mkdir -p $out/share/emacs/site-lisp
    install *.el $out/share/emacs/site-lisp
    runHook postInstall
  '';

  meta = {
    homepage = "https://github.com/rougier/nano-theme";
    description = "Imbue Emacs with power!";
    inherit (emacs.meta) platforms;
  };
}