NixOS Configuration CI / Nix Flake Check (pull_request) Failing after 19s
Building yarr from source (Rust) takes ~5+ min and times out the config-nixos CI runner (3h limit) when combined with the full perlis+wilkes+relay flake check. Use the pre-built x86_64-linux binary from GitHub releases instead — fast fetch, no Rust toolchain needed. Removes the rust-nixpkgs flake input (no longer needed).
29 lines
658 B
Nix
29 lines
658 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "yarr";
|
|
version = "2.2.2";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/dinglebear-ai/yarr/releases/download/v${version}/yarr-x86_64.tar.gz";
|
|
hash = lib.fakeHash;
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp yarr $out/bin/
|
|
chmod +x $out/bin/yarr
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Rust MCP server for media automation fleets - Sonarr, Radarr, Prowlarr, Jellyfin, SABnzbd, qBittorrent, Plex";
|
|
homepage = "https://github.com/dinglebear-ai/yarr";
|
|
license = licenses.agpl3Only;
|
|
mainProgram = "yarr";
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
} |