nixpkgs/pkgs/applications/editors/emacs-modes/update-melpa
adisbladis 8911226971
emacs-packages: Allow update script to be called from any location
Previously working directory was important
2019-08-07 18:04:19 +01:00

7 lines
220 B
Plaintext
Executable File

#! /usr/bin/env nix-shell
#! nix-shell --show-trace ./updater-emacs.nix -i bash
SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
exec emacs --fg-daemon=updater --quick -l $SCRIPT_DIR/update-melpa.el -f run-updater "$@"