mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 17:10:48 +00:00
emacs: add gist package
This commit is contained in:
parent
ad5c002891
commit
56d30f72da
36
pkgs/applications/editors/emacs-modes/gist/default.nix
Normal file
36
pkgs/applications/editors/emacs-modes/gist/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ stdenv, fetchgit, emacs, gh, pcache, logito }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gist-1.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/sigma/gist.el.git";
|
||||
rev = "bbb457e4eaaf5f96cfaaa4f63021e3e542bfbfed";
|
||||
sha256 = "469f9df52076d0c6038183cff4b9415bca98de66c08814a60b69729b44bdf294";
|
||||
};
|
||||
|
||||
buildInputs = [ emacs ];
|
||||
|
||||
buildPhase = ''
|
||||
emacs -L ${gh}/share/emacs/site-lisp \
|
||||
-L ${pcache}/share/emacs/site-lisp \
|
||||
-L ${logito}/share/emacs/site-lisp \
|
||||
--eval '(setq user-emacs-directory "./")' \
|
||||
--batch -f batch-byte-compile gist.el
|
||||
'';
|
||||
|
||||
propagatedUserEnvPkgs = [ gh pcache logito ];
|
||||
|
||||
installPhase = ''
|
||||
install -d $out/share/emacs/site-lisp
|
||||
install gist.el gist.elc $out/share/emacs/site-lisp
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Emacs integration for gist.github.com";
|
||||
homepage = https://github.com/sigma/gist.el;
|
||||
license = "GPLv2+";
|
||||
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
|
@ -6671,6 +6671,8 @@ let
|
|||
|
||||
gh = callPackage ../applications/editors/emacs-modes/gh { };
|
||||
|
||||
gist = callPackage ../applications/editors/emacs-modes/gist { };
|
||||
|
||||
jdee = callPackage ../applications/editors/emacs-modes/jdee {
|
||||
# Requires Emacs 23, for `avl-tree'.
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue