2021-01-19 12:10:44 +00:00
|
|
|
{ lib, stdenv, fetchurl, emacs }:
|
2012-08-21 09:33:06 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2012-08-21 09:33:06 +01:00
|
|
|
name = "rect-mark-1.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://emacswiki.org/emacs/download/rect-mark.el";
|
|
|
|
sha256 = "0pyyg53z9irh5jdfvh2qp4pm8qrml9r7lh42wfmdw6c7f56qryh8";
|
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "buildPhase" "installPhase"];
|
|
|
|
|
|
|
|
buildInputs = [ emacs ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cp $src rect-mark.el
|
|
|
|
emacs --batch -f batch-byte-compile rect-mark.el
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -d $out/share/emacs/site-lisp
|
|
|
|
install rect-mark.el* $out/share/emacs/site-lisp
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2013-10-06 10:49:53 +01:00
|
|
|
description = "Mark a rectangle of text with highlighting";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://emacswiki.org/emacs/RectangleMark";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2012-08-21 09:33:06 +01:00
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.all;
|
2012-08-21 09:33:06 +01:00
|
|
|
};
|
|
|
|
}
|