diff --git a/pkgs/applications/editors/emacs-modes/let-alist/default.nix b/pkgs/applications/editors/emacs-modes/let-alist/default.nix new file mode 100644 index 000000000000..863e9f95d95e --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/let-alist/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, emacs }: + +stdenv.mkDerivation rec { + name = "let-alist-1.0.3"; + + src = fetchurl { + url = "http://elpa.gnu.org/packages/let-alist-1.0.3.el"; + sha256 = "12n1cmjc7hzyy0jmsdxqz1hqzg4ri4nvvi0p9mw1d6v44xzfm0mx"; + }; + + buildInputs = [ emacs ]; + + unpackPhase = "cp -v ${src} let-alist.el"; + buildPhase = "emacs --batch -f batch-byte-compile let-alist.el"; + + installPhase = '' + mkdir -p $out/share/emacs/site-lisp + mv -v *.el *.elc $out/share/emacs/site-lisp/ + ''; + + meta = { + homepage = "http://elpa.gnu.org/packages/let-alist.html"; + description = "Easily let-bind values of an assoc-list by their names"; + license = stdenv.lib.licenses.gpl3Plus; + maintainers = with stdenv.lib.maintainers; [ simons ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4f4914db59fe..751221951ab5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9834,6 +9834,8 @@ let js2 = callPackage ../applications/editors/emacs-modes/js2 { }; + let-alist = callPackage ../applications/editors/emacs-modes/let-alist { }; + logito = callPackage ../applications/editors/emacs-modes/logito { }; loremIpsum = callPackage ../applications/editors/emacs-modes/lorem-ipsum { };