diff options
| author | Soispha Peetz <soispha@b-peetz.de> | 2026-11-28 16:55:34 +0100 |
|---|---|---|
| committer | Soispha Peetz <soispha@b-peetz.de> | 2026-11-28 16:55:34 +0100 |
| commit | 9cc85a42ae481a7ec9266d54a563a489b4a238fb (patch) | |
| tree | 794f492b08136c815dd52d392d52a4e27104f183 | |
| parent | fix(yt/yt_dlp/download_options): Remove match_filters again (diff) | |
| download | yt-9cc85a42ae481a7ec9266d54a563a489b4a238fb.zip | |
build(flake.nix): Switch to pre-cache for most of the devShell
Diffstat (limited to '')
| -rw-r--r-- | .envrc | 1 | ||||
| -rw-r--r-- | flake.nix | 38 |
2 files changed, 13 insertions, 26 deletions
@@ -11,6 +11,7 @@ # If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. use flake +pre_cache_load rust sqlite perf root="$(git rev-parse --show-toplevel)" @@ -78,30 +78,14 @@ inherit buildInputs nativeBuildInputs; - packages = [ - # rust stuff - pkgs.cargo - pkgs.clippy - pkgs.rustc - pkgs.rustfmt - pkgs.mold - - pkgs.cargo-edit - pkgs.cargo-expand - pkgs.cargo-flamegraph - - # Releng - pkgs.git-bug - pkgs.reuse - pkgs.cocogitto - - # Perf - pkgs.hyperfine - - # Sqlite - pkgs.sqlx-cli - pkgs.sqlite-interactive + shellHook = '' + # Try to source the completions from the build yt binary + function source-yt-completions() { + source <(COMPLETE=$SHELL ./target/release/yt) + } + ''; + packages = [ # yt_dlp pkgs.python3Packages.yt-dlp pkgs.python3Packages.chardet @@ -109,9 +93,11 @@ pkgs.ffmpeg pkgs.deno - # Tree-sitter - pkgs.nodejs - pkgs.tree-sitter + pkgs.mold + + # # Tree-sitter + # pkgs.nodejs + # pkgs.tree-sitter ]; }; }; |
