Unverified Commit 29bd83a3 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

feedr: init at 0.5.0 (#502685)

parents cccb9a19 923800bb
Loading
Loading
Loading
Loading
+56 −0
Original line number Diff line number Diff line
{
  stdenvNoCC,
  lib,
  rustPlatform,
  fetchFromGitHub,
  pkg-config,
  openssl,
  versionCheckHook,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "feedr";
  version = "0.5.0";

  src = fetchFromGitHub {
    owner = "bahdotsh";
    repo = "feedr";
    tag = "v${finalAttrs.version}";
    hash = "sha256-owdJDY61170g28Ujnwzt/8dZ+uyPHlM0iXRyfOL9gls=";
  };

  cargoHash = "sha256-gl6kiDNvRzn5ZG6syuZ9Y8EgwcHpr+5lVEmn3mI5qSw=";

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    openssl
  ];

  checkFlags = [
    # Those tests require network access, which is not available in the sandbox.
    # Error: Failed to parse RSS feed: Failed to fetch feed
    "--skip=test_mixed_feeds"
    "--skip=test_rss_feed_parsing"
  ]
  ++ lib.optionals stdenvNoCC.hostPlatform.isDarwin [
    # event loop thread panicked
    "--skip=test_problematic_feeds"
    "--skip=test_reddit_style_atom_feeds"
  ];

  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];

  meta = {
    changelog = "https://github.com/bahdotsh/feedr/releases/tag/${finalAttrs.src.tag}";
    description = "Feature-rich terminal-based RSS/Atom feed reader written in Rust";
    longDescription = "Feedr is a modern terminal-based RSS/Atom feed reader with advanced filtering, categorization, and search capabilities. It supports both RSS and Atom feeds with compression handling and provides an intuitive TUI interface.";
    homepage = "https://github.com/bahdotsh/feedr";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ drupol ];
    mainProgram = "feedr";
  };
})