今日やったこと
Rust
RustのESP32環境をNixで構築していた。
<div class="flex justify-center border-t border-gray-200 h-15 md:h-25 mx-5 md:mx-10"> <a href="https://zenn.dev/watagame/articles/esp32-rust-nix" class="!no-underline flex w-full bg-white rounded-lg border border-gray-200 shadow hover:bg-gray-100" title="Link Card" > <div class="flex grow flex-col"> <span class="!text-xs md:!text-base px-3 pt-2 py-0 h-20 !mt-0 !mb-0 font-bold tracking-tight text-gray-900 overflow-hidden text-ellipsis"> zenn.dev </span> <span class="font-xs px-3 pb-3 !mb-0 text-gray-700 text-sm max-w-48 md:max-w-full overflow-hidden whitespace-nowrap text-ellipsis"> https://zenn.dev </span> </div> </a> </div>この内容が結構参考になった。
ただ、buildFHSUserEnvは非推奨で、buildFHSEnvを使うようになっていたりと一部古い内容もあったりしたのでそのあたりもコメントなりで補足していきたいところ。
あと、このFlakeだとidf.pyをインストールする過程でNixの書き込み制限にひっかかって上手く動かなかったので、そのあたりの修正もしていきたい。
(恐らく、idf.pyを単一のpythonPackageとしてDerivationを書く必要がある)
NixとRustでESP32する方法調べてるとこれが出てくるのだけど、アップデートがされてないせいで各々がforkしてアプデして放置する流れが出て良くないと思っている。 nvfetcherを使って自動化できると思うので、それを施したバージョンをPRしたい。
<div class="flex justify-center border-t border-gray-200 h-15 md:h-25 mx-5 md:mx-10"> <a href="https://github.com/svelterust/esp32" class="!no-underline flex w-full bg-white rounded-lg border border-gray-200 shadow hover:bg-gray-100" title="Link Card" > <div class="flex grow flex-col"> <span class="!text-xs md:!text-base px-3 pt-2 py-0 h-20 !mt-0 !mb-0 font-bold tracking-tight text-gray-900 overflow-hidden text-ellipsis"> github.com </span> <span class="font-xs px-3 pb-3 !mb-0 text-gray-700 text-sm max-w-48 md:max-w-full overflow-hidden whitespace-nowrap text-ellipsis"> https://github.com </span> </div> </a> </div>ddt.vim
EmacsにはREPLシェルを立ち上げて、バッファ上の文字列をREPLに送信して評価できるinf-*(inf-pythonやinf-rubyなど)っていう名前のプラグインがあるのだけど、 それをddt.vimで再現できないか考えていた。
vim-jpでその旨を書き込んだらsend UI actionでできるそうなので、ドキュメントを読んでいきたい。
明日以降やりたいこと
Rustまわりをメインにやっていきたい。