about summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs/elisp-packages/manual-packages/session-management-for-emacs/default.nix
blob: f21e79c8f33d89ba6f91307d9c109afed8f97d13 (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
{ stdenv, fetchurl, emacs, lib }:

stdenv.mkDerivation rec {
  pname = "session-management-for-emacs";
  version = "2.2a";

  src = fetchurl {
    url = "mirror://sourceforge/emacs-session/session-${version}.tar.gz";
    sha256 = "37dfba7420b5164eab90dafa9e8bf9a2c8f76505fe2fefa14a64e81fa76d0144";
  };

  buildInputs = [ emacs ];

  installPhase = ''
    mkdir -p "$out/share/emacs/site-lisp"
    cp lisp/*.el "$out/share/emacs/site-lisp/"
  '';

  meta = with lib; {
    /* installation: add to your ~/.emacs
      (require 'session)
      (add-hook 'after-init-hook 'session-initialize)
    */
    description = "Small session management for emacs";
    homepage = "https://emacs-session.sourceforge.net/";
    license = licenses.gpl2;
    maintainers = with maintainers; [ ];
  };
}