Merge pull request #335420 from linj-fork/pr/melpaBuild-session

emacsPackages.session-management-for-emacs: mkDerivation -> melpaBuild
This commit is contained in:
adisbladis 2024-08-18 16:30:01 +12:00 committed by GitHub
commit 8d28adedd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,29 +1,27 @@
{ stdenv, fetchurl, emacs, lib }:
{
melpaBuild,
fetchzip,
lib,
}:
stdenv.mkDerivation rec {
melpaBuild rec {
pname = "session-management-for-emacs";
ename = "session";
version = "2.2a";
src = fetchurl {
src = fetchzip {
url = "mirror://sourceforge/emacs-session/session-${version}.tar.gz";
sha256 = "37dfba7420b5164eab90dafa9e8bf9a2c8f76505fe2fefa14a64e81fa76d0144";
hash = "sha256-lc6NIX+lx97qCs5JqG7x0iVE6ki09Gy7DEQuPW2c+7s=";
};
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
meta = {
/*
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 = [ ];
license = lib.licenses.gpl2;
};
}