feat: add rtk as custom Nix derivation

Build rtk from source (not yet in nixpkgs) using rustPlatform.buildRustPackage.
Custom derivations extracted to pkgs/ for single responsibility.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Pierre Martin
2026-02-23 17:51:59 +01:00
parent 7f69d41c4c
commit 4004d0bf91
2 changed files with 19 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
let
atomicptr = import (fetchTarball
"https://github.com/atomicptr/nix/archive/refs/heads/master.tar.gz") { };
rtk = pkgs.callPackage ./pkgs/rtk.nix { };
in {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
@@ -127,7 +128,7 @@ in {
playerctl
numlockx
nixfmt-classic
nixfmt
nodejs_22
fnm
bun
@@ -162,6 +163,8 @@ in {
shfmt
toilet
rtk
# AI
ollama
whisper-cpp # STT local