make: update commands
This commit is contained in:
parent
9fccffd394
commit
e36b892ecb
1 changed files with 9 additions and 10 deletions
19
Makefile
19
Makefile
|
@ -1,5 +1,4 @@
|
|||
NIX_RUN := nix run .\#
|
||||
NIX_LOCK := nix flake lock
|
||||
|
||||
DEPS_EDITOR := \
|
||||
nixeovim
|
||||
|
@ -57,22 +56,22 @@ rollback:
|
|||
neovim:
|
||||
nix profile upgrade $(or $(NEOVIM_INDEX),$(shell nix profile list --json | jq '.elements | to_entries[] | select(.value.attrPath | endswith(".neovim-dev")) | .key'))
|
||||
|
||||
.PHONY: init-neovim
|
||||
init-neovim:
|
||||
.PHONY: install/neovim
|
||||
install/neovim:
|
||||
nix profile install .#neovim-dev
|
||||
|
||||
################################################################################
|
||||
# Deps
|
||||
################################################################################
|
||||
|
||||
.PHONY: deps-editor
|
||||
deps-editor:
|
||||
$(NIX_LOCK) $(foreach dep,$(DEPS_EDITOR),--update-input $(dep))
|
||||
.PHONY: deps/editor
|
||||
deps/editor:
|
||||
nix flake update $(DEPS_EDITOR)
|
||||
|
||||
.PHONY: deps-system
|
||||
deps-system:
|
||||
$(NIX_LOCK) $(foreach dep,$(DEPS_SYSTEM),--update-input $(dep))
|
||||
.PHONY: deps/system
|
||||
deps/system:
|
||||
nix flake update $(DEPS_SYSTEM)
|
||||
|
||||
.PHONY: deps
|
||||
deps: deps-editor deps-system ;
|
||||
deps: deps/editor deps/system ;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue