diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-09-10 17:38:32 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-09-10 17:38:32 +0900 |
| commit | 75c64775c16a179b463d62125e5b76b1e6342789 (patch) | |
| tree | 0cdb50ee1d543216ad56b7aa52c18d9c7d5aa021 /mitamae | |
| parent | f609a0be2d3b0fba6af1f0d778b959c18b9dbffe (diff) | |
| download | dotfiles-75c64775c16a179b463d62125e5b76b1e6342789.tar.gz dotfiles-75c64775c16a179b463d62125e5b76b1e6342789.tar.zst dotfiles-75c64775c16a179b463d62125e5b76b1e6342789.zip | |
mitamae: install cargo-compete
Diffstat (limited to 'mitamae')
| -rw-r--r-- | mitamae/default.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mitamae/default.rb b/mitamae/default.rb index 31f0316..361d50d 100644 --- a/mitamae/default.rb +++ b/mitamae/default.rb @@ -95,3 +95,18 @@ execute "cargo: install hgrep" do command "cargo install hgrep" not_if "type hgrep" end + +if node[:use] == "private" + package "pkg-config" + package "libssl-dev" + + execute "cargo: install cargo-compete" do + envs = { + CFLAGS: "-I/usr/include", + OPENSSL_LIB_DIR: "/usr/lib/x86_64-linux-gnu", + OPENSSL_INCLUDE_DIR: "/usr/include/x86_64-linux-gnu", + } + command "#{envs.map{"#{_1}=#{_2}"}.join(" ")} cargo install cargo-compete" + not_if "type cargo-compete" + end +end |
