make: update commands

This commit is contained in:
Dmitriy Pleshevskiy 2025-02-18 23:25:13 +03:00
parent 9fccffd394
commit e36b892ecb
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -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 ;