2021-01-19 12:10:44 +00:00
|
|
|
{ lib, stdenv, fetchurl, emacs }:
|
2017-11-13 00:43:35 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2017-11-13 00:43:35 +00:00
|
|
|
name = "org-mac-link-1.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://raw.githubusercontent.com/stuartsierra/org-mode/master/contrib/lisp/org-mac-link.el";
|
|
|
|
sha256 = "1gkzlfbhg289r1hbqd25szan1wizgk6s99h9xxjip5bjv0jywcx5";
|
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "buildPhase" "installPhase"];
|
|
|
|
|
|
|
|
buildInputs = [ emacs ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cp $src org-mac-link.el
|
|
|
|
emacs --batch -f batch-byte-compile org-mac-link.el
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -d $out/share/emacs/site-lisp
|
|
|
|
install org-mac-link.el $out/share/emacs/site-lisp
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Insert org-mode links to items selected in various Mac apps";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://orgmode.org/worg/org-contrib/org-mac-link.html";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = lib.platforms.all;
|
2017-11-13 00:43:35 +00:00
|
|
|
};
|
|
|
|
}
|