nix-steipete-tools/nix/pkgs/sag.nix
Josh Palmer 5234375e15 🤖 codex: add linux builds (no-issue)
What:
- add linux outputs and source build for summarize; plugin flakes now follow current system
- expand update-tools to handle per-system assets and summarize source/pnpm hash
- include linux checks in garnix and docs updates

Why:
- enable linux users to consume supported tools and summarize via Nix

Tests:
- ubs --diff
- nix flake check
- nix flake check --all-systems
- nix build .#summarize
- ./result/bin/summarize --version
2026-01-08 15:23:59 +01:00

44 lines
1.0 KiB
Nix

{ lib, stdenv, fetchurl }:
let
sources = {
"aarch64-darwin" = {
url = "https://github.com/steipete/sag/releases/download/v0.2.1/sag_0.2.1_darwin_universal.tar.gz";
hash = "sha256-ORwAi0fgn2S8p7HmrhEmIQ5gYatf3bzLgDtkUZVMy54=";
};
"x86_64-linux" = {
url = "https://github.com/steipete/sag/releases/download/v0.2.1/sag_0.2.1_linux_amd64.tar.gz";
hash = "sha256-Ti9i8IfPQZn9ZTcrgipbP+du8Rlgiu/vWpqMEYWeg4I=";
};
};
in
stdenv.mkDerivation {
pname = "sag";
version = "0.2.1";
src = fetchurl sources.${stdenv.hostPlatform.system};
dontConfigure = true;
dontBuild = true;
unpackPhase = ''
tar -xzf "$src"
'';
installPhase = ''
runHook preInstall
mkdir -p "$out/bin"
cp sag "$out/bin/sag"
chmod 0755 "$out/bin/sag"
runHook postInstall
'';
meta = with lib; {
description = "Command-line ElevenLabs TTS with mac-style flags";
homepage = "https://github.com/steipete/sag";
license = licenses.mit;
platforms = builtins.attrNames sources;
mainProgram = "sag";
};
}