Unverified Commit 61c0f513 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

live555: add a trivial updater and a single reverse test (#410631)

parents ff647717 c6158890
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -8,6 +8,10 @@
  openssl,
  runCommand,
  stdenv,
  writeScript,

  # tests
  vlc,
}:
let
  isStatic = stdenv.hostPlatform.isStatic;
@@ -128,8 +132,20 @@ stdenv.mkDerivation (finalAttrs: {
          touch $out
        fi
      '';

      inherit vlc;
    };

  passthru.updateScript = writeScript "update-live555" ''
    #!/usr/bin/env nix-shell
    #!nix-shell -i bash -p curl common-updater-scripts

    # Expect the text in format of '2025.05.24:'
    new_version="$(curl -s http://www.live555.com/liveMedia/public/changelog.txt |
      head -n1 | tr -d ':')"
    update-source-version live555 "$new_version"
  '';

  meta = {
    homepage = "http://www.live555.com/liveMedia/";
    description = "Set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP)";