Commit b918680e authored by aleksana's avatar aleksana
Browse files

syndication-domination: init at 1.0-unstable-2023-03-25

parent 7372a014
Loading
Loading
Loading
Loading
+55 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitLab,
  meson,
  ninja,
  pkg-config,
  pugixml,
  fmt,
  html-tidy,
  enablePython? false,
  python3Packages,
}:

stdenv.mkDerivation {
  pname = "syndication-domination";
  # author extraction feature needed by gnome-feeds
  version = "1.0-unstable-2023-03-25";

  src = fetchFromGitLab {
    owner = "gabmus";
    repo = "syndication-domination";
    rev = "75920321062d682437f3fb0319dad227d8b18f6c";
    hash = "sha256-fOlE9CsNcmGkVBXaqYHxLDWB8voeRp46+dZYIJIwg7o=";
  };

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
  ];

  buildInputs = [
    pugixml
    fmt
    html-tidy
  ] ++ lib.optionals enablePython [
    python3Packages.python
    python3Packages.pybind11
  ];

  mesonFlags = [
    (lib.mesonBool "TO_JSON_BINARY" true)
    (lib.mesonBool "PYTHON_BINDINGS" enablePython)
  ];

  meta = {
    description = "RSS/Atom parser written in C++ with Python binding";
    homepage = "https://gitlab.com/gabmus/syndication-domination";
    license = lib.licenses.agpl3Only;
    mainProgram = "SyndicationDomination";
    maintainers = with lib.maintainers; [ aleksana ];
    platforms = lib.platforms.all;
  };
}
+5 −0
Original line number Diff line number Diff line
@@ -14818,6 +14818,11 @@ self: super: with self; {
  syncer = callPackage ../development/python-modules/syncer { };
  syndication-domination = toPythonModule (pkgs.syndication-domination.override {
    enablePython = true;
    python3Packages = self;
  });
  synergy = callPackage ../development/python-modules/synergy { };
  synologydsm-api = callPackage ../development/python-modules/synologydsm-api { };