Skip to content

Commit 4f4c72e

Browse files
committed
feat(gc-root): add command
1 parent cb36123 commit 4f4c72e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ format:
2020
.PHONY: update
2121
update:
2222
nix flake update && $(MAKE) follow
23+
24+
# Useful if you would not like this binary and dependencies garbage collected.
25+
.PHONY: gc-root
26+
gc-root:
27+
@mkdir -p /nix/var/nix/gcroots/per-user/$(USER)
28+
@ln -sfn $(PWD)/result /nix/var/nix/gcroots/per-user/$(USER)/xnixvim
29+
@echo "Created GC root: /nix/var/nix/gcroots/per-user/$(USER)/xnixvim -> $(PWD)/result"

0 commit comments

Comments
 (0)