mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
ada0d47b3e
This reverts commit 7ccdbff95b
.
24 lines
497 B
Nix
24 lines
497 B
Nix
{stdenv, fetchurl, emacs}:
|
|
|
|
let version = "1.9.0";
|
|
|
|
in stdenv.mkDerivation {
|
|
name = "emacs-s-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/magnars/s.el/archive/${version}.tar.gz";
|
|
sha256 = "1gah2k577gvnmxlpw7zrz0jr571vghzhdv2hbgchlgah07czd091";
|
|
};
|
|
|
|
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
|
|
'';
|
|
}
|