mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
24 lines
555 B
Nix
24 lines
555 B
Nix
|
{stdenv, fetchurl, emacs}:
|
||
|
|
||
|
let version = "20150111";
|
||
|
|
||
|
in stdenv.mkDerivation {
|
||
|
name = "emacs-d-${version}";
|
||
|
|
||
|
src = fetchurl {
|
||
|
url = "https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/archive/53efec4d83c7cee8227597f010fe7fc400ff05f1.tar.gz";
|
||
|
sha256 = "0vb0za51lc6qf1qgqisap4vzk36caa5k17zajjn034rhjsqfw0w7";
|
||
|
};
|
||
|
|
||
|
buildInputs = [ emacs ];
|
||
|
|
||
|
buildPhase = ''
|
||
|
emacs -L . --batch -f batch-byte-compile *.el
|
||
|
'';
|
||
|
|
||
|
installPhase = ''
|
||
|
install -d $out/share/emacs/site-lisp
|
||
|
install *.el *.elc $out/share/emacs/site-lisp
|
||
|
'';
|
||
|
}
|