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

15
pkgs/rtk.nix Normal file
View File

@@ -0,0 +1,15 @@
{ rustPlatform, fetchFromGitHub, pkg-config, sqlite, lib }:
rustPlatform.buildRustPackage {
pname = "rtk";
version = "0.22.2";
src = fetchFromGitHub {
owner = "rtk-ai";
repo = "rtk";
rev = "5b597002dcd99029cb9c0da9b6d38b44021bdb3a";
hash = "sha256-a/+5w1cU/sSGsIdu/9QT1lJlURF669FxMcTiR81makE=";
};
cargoHash = "sha256-lgmgorgT/KDSyzEcE33qkPF4f/3LJbAzEH0s9thTohE=";
doCheck = false; # tests require filesystem access (blocked by Nix sandbox)
nativeBuildInputs = [ pkg-config ];
buildInputs = [ sqlite ];
}