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

This commit is contained in:
Sandro 2025-06-25 17:38:15 +02:00 committed by GitHub
commit 61c0f51391
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)";