Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
takeokunn committed Jan 25, 2024
1 parent 78e3175 commit 59284a3
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ NIX_TARGETS +=
NIX_UPDATE_TARGETS +=
NIX_CLEAN_TARGETS +=

# cargo
CARGO_TARGETS +=
CARGO_CLEAN_TARGETS +=

####################
# include #
####################
Expand Down Expand Up @@ -213,6 +217,10 @@ ALL_CLEAN_TARGETS += ASDF_CLEAN_TARGETS
ALL_TARGETS += NIX_TARGETS
ALL_CLEAN_TARGETS += NIX_CLEAN_TARGETS

# cargo
ALL_TARGETS += CARGO_TARGETS
ALL_CLEAN_TARGETS += CARGO_CLEAN_TARGETS

####################
# commands #
####################
Expand Down
16 changes: 16 additions & 0 deletions modules/cargo/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CARGO_DIR = ~/.cargo
SELF_CARGO_DIR = $(MODULE_DIR)/cargo

CARGO_CLEAN_TARGETS += cargo-clean
CARGO_TARGETS += cargo-install

.PHONY: cargo-install
cargo-install: $(CARGO_DIR)

$(CARGO_DIR):
mkdir -p $(CARGO_DIR)
ln -sf $(SELF_CARGO_DIR)/config $(CARGO_DIR)/config

.PHONY: cargo-clean
cargo-clean:
rm -r $(CARGO_DIR)
2 changes: 2 additions & 0 deletions modules/cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[net]
git-fetch-with-cli = true
6 changes: 3 additions & 3 deletions modules/nix/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@
zig

# for language specific
cargo
hadolint
jsonnet-language-server
nil
nixpkgs-fmt
nodePackages_latest.typescript-language-server
rust-analyzer
rustc
rustup
rye
shellcheck
terraform-ls
Expand All @@ -70,6 +68,7 @@
boost
cmake
coreutils
foreman
glib
gnutls
icu
Expand Down Expand Up @@ -124,6 +123,7 @@
ffmpeg
graphviz
hugo
iftop
imagemagick
mu
ncurses
Expand Down

0 comments on commit 59284a3

Please sign in to comment.