https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
6 lines
220 B
Text
Executable file
6 lines
220 B
Text
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 "$@"
|