about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/emacs/elisp-packages/nano-theme/default.nix
blob: 8034f41a72d6595c2c962e21525c265432ac2490 (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 = "nano-theme";
  version = "2021-06-05";

  src = fetchFromGitHub {
    owner = "rougier";
    repo  = pname;
    rev = "99ff1c5e78296a073c6e63b966045e0d83a136e7";
    hash = "sha256-IDVnl4J4hx2mlLaiA+tKxxRGcIyBULr2HBeY/GMHD90=";
  };

  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 = "GNU Emacs / N Λ N O Theme";
    inherit (emacs.meta) platforms;
  };
}