yarr: use pre-built binary instead of building from source
NixOS Configuration CI / Nix Flake Check (pull_request) Failing after 19s
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).
This commit is contained in:
1 parent
de417511c7
commit
0d0ca4aa8e
3 files changed
+17
-27
No files matched your search
@@ -1,4 +1,4 @@
|
||||
{ pkgs, rustPkgs ? pkgs }:
|
||||
{ pkgs }:
|
||||
|
||||
{
|
||||
manim-mcp-server = pkgs.callPackage ./manim-mcp-server/package.nix { };
|
||||
@@ -28,6 +28,6 @@
|
||||
navidrome-mcp = pkgs.callPackage ./navidrome-mcp/package.nix { };
|
||||
ovhcloud-mcp = pkgs.callPackage ./ovhcloud-mcp/package.nix { };
|
||||
slskd-mcp = pkgs.callPackage ./slskd-mcp/package.nix { };
|
||||
yarr = rustPkgs.callPackage ./yarr/package.nix { };
|
||||
yarr = pkgs.callPackage ./yarr/package.nix { };
|
||||
# example-mcp-server = pkgs.callPackage ./example-mcp-server/package.nix { };
|
||||
}
|
||||
+12
-14
@@ -1,31 +1,29 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
stdenv,
|
||||
fetchzip,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "yarr";
|
||||
version = "2.2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dinglebear-ai";
|
||||
repo = "yarr";
|
||||
rev = "15a599bab38a";
|
||||
hash = "sha256-PlD2NYK06rVdKirUq2dw04WL9yFrM2TB1d67Weero0k=";
|
||||
src = fetchzip {
|
||||
url = "https://github.com/dinglebear-ai/yarr/releases/download/v${version}/yarr-x86_64.tar.gz";
|
||||
hash = lib.fakeHash;
|
||||
};
|
||||
|
||||
cargoHash = "sha256-e89uYPLqwhh1epedUvVEDTT4y35nuwLWlco4AVvKoK4=";
|
||||
|
||||
# The cargo test phase hangs (0% CPU, no rustc procs) — likely a test
|
||||
# blocking on network. Skip tests; we only need the binary.
|
||||
doCheck = false;
|
||||
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 = platforms.all;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user