diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/emacs/elisp-packages/org-mac-link/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/editors/emacs/elisp-packages/org-mac-link/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/editors/emacs/elisp-packages/org-mac-link/default.nix b/nixpkgs/pkgs/applications/editors/emacs/elisp-packages/org-mac-link/default.nix new file mode 100644 index 000000000000..600e44eb8abe --- /dev/null +++ b/nixpkgs/pkgs/applications/editors/emacs/elisp-packages/org-mac-link/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchurl, emacs }: + +stdenv.mkDerivation { + 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"; + homepage = "https://orgmode.org/worg/org-contrib/org-mac-link.html"; + license = lib.licenses.gpl3; + platforms = lib.platforms.all; + }; +} |