nix-steipete-tools/nix/pkgs/bird.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

40 lines
874 B
Nix

{ lib, stdenv, fetchurl }:
let
sources = {
"aarch64-darwin" = {
url = "https://github.com/steipete/bird/releases/download/v0.6.0/bird-macos-universal-v0.6.0.tar.gz";
hash = "sha256-HdvyNBkq96RUr7vNtDHvqbKv57w/SVLV3AWiaiMUOdo=";
};
};
in
stdenv.mkDerivation {
pname = "bird";
version = "0.6.0";
src = fetchurl sources.${stdenv.hostPlatform.system};
dontConfigure = true;
dontBuild = true;
unpackPhase = ''
tar -xzf "$src"
'';
installPhase = ''
runHook preInstall
mkdir -p "$out/bin"
cp bird "$out/bin/bird"
chmod 0755 "$out/bin/bird"
runHook postInstall
'';
meta = with lib; {
description = "Fast X CLI for tweeting, replying, and reading";
homepage = "https://github.com/steipete/bird";
license = licenses.mit;
platforms = builtins.attrNames sources;
mainProgram = "bird";
};
}