emacs-packages: Allow update script to be called from any location
Previously working directory was important
This commit is contained in:
parent
9c0f22a45b
commit
8911226971
@ -1,8 +1,6 @@
|
|||||||
#! /usr/bin/env nix-shell
|
#! /usr/bin/env nix-shell
|
||||||
#! nix-shell --show-trace -i sh -p git nix nix-prefetch-git nix-prefetch-hg "import ./updater-emacs.nix"
|
#! nix-shell --show-trace ./updater-emacs.nix -i bash
|
||||||
|
|
||||||
# "with import ../../../.. {}; emacsWithPackages (epkgs: with epkgs.melpaPackages; [ promise semaphore ])"
|
SCRIPT_DIR="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||||
|
|
||||||
exec emacs --fg-daemon=updater --quick -l update-melpa.el -f run-updater "$@"
|
exec emacs --fg-daemon=updater --quick -l $SCRIPT_DIR/update-melpa.el -f run-updater "$@"
|
||||||
|
|
||||||
# exec emacs update-melpa.el "$@"
|
|
||||||
|
@ -1,29 +1,40 @@
|
|||||||
with import ../../../.. {};
|
let
|
||||||
(emacsPackagesNgFor emacs26).
|
pkgs = import ../../../.. {};
|
||||||
emacsWithPackages (epkgs: let
|
|
||||||
promise = epkgs.trivialBuild {
|
emacsEnv = (pkgs.emacsPackagesNgFor pkgs.emacs26).emacsWithPackages (epkgs: let
|
||||||
pname = "promise";
|
|
||||||
version = "1";
|
promise = epkgs.trivialBuild {
|
||||||
src = fetchFromGitHub {
|
pname = "promise";
|
||||||
owner = "bendlas";
|
version = "1";
|
||||||
repo = "emacs-promise";
|
src = pkgs.fetchFromGitHub {
|
||||||
rev = "4da97087c5babbd8429b5ce62a8323b9b03c6022";
|
owner = "bendlas";
|
||||||
sha256 = "0yin7kj69g4zxs30pvk47cnfygxlaw7jc7chr3b36lz51yqczjsy";
|
repo = "emacs-promise";
|
||||||
|
rev = "4da97087c5babbd8429b5ce62a8323b9b03c6022";
|
||||||
|
sha256 = "0yin7kj69g4zxs30pvk47cnfygxlaw7jc7chr3b36lz51yqczjsy";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
semaphore = epkgs.trivialBuild {
|
semaphore = epkgs.trivialBuild {
|
||||||
pname = "semaphore";
|
pname = "semaphore";
|
||||||
version = "1";
|
version = "1";
|
||||||
packageRequires = [ promise ];
|
packageRequires = [ promise ];
|
||||||
src = fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "webnf";
|
owner = "webnf";
|
||||||
repo = "semaphore.el";
|
repo = "semaphore.el";
|
||||||
rev = "93802cb093073bc6a6ccd797328dafffcef248e0";
|
rev = "93802cb093073bc6a6ccd797328dafffcef248e0";
|
||||||
sha256 = "09pfyp27m35sv340xarhld7xx2vv5fs5xj4418709iw6l6hpk853";
|
sha256 = "09pfyp27m35sv340xarhld7xx2vv5fs5xj4418709iw6l6hpk853";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
in [ promise semaphore ]
|
in [ promise semaphore ]);
|
||||||
# ++ (with epkgs.melpaPackages; [ smex rainbow-delimiters paredit ])
|
|
||||||
)
|
in pkgs.mkShell {
|
||||||
|
buildInputs = [
|
||||||
|
pkgs.git
|
||||||
|
pkgs.nix
|
||||||
|
pkgs.bash
|
||||||
|
pkgs.nix-prefetch-git
|
||||||
|
pkgs.nix-prefetch-hg
|
||||||
|
emacsEnv
|
||||||
|
];
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user