From e36b892ecbc846bb71e7292958061651b2a9d1c7 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy <dmitriy@pleshevski.ru> Date: Tue, 18 Feb 2025 23:25:13 +0300 Subject: [PATCH] make: update commands --- Makefile | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index e0cc6cf..0eb2b5c 100644 --- a/Makefile +++ b/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 ;