openfec: 1.4.2 -> 1.4.2.9

While at it added trivial updater.

Changes: https://github.com/roc-streaming/openfec/releases/tag/v1.4.2.9
This commit is contained in:
Sergei Trofimovich 2023-09-25 11:39:08 +01:00
parent 32617aec9e
commit 998e697358

View File

@ -1,12 +1,17 @@
{ stdenv, lib, fetchzip, cmake }: { stdenv
, lib
, fetchzip
, cmake
, gitUpdater
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "openfec"; pname = "openfec";
version = "1.4.2"; version = "1.4.2.9";
src = fetchzip { src = fetchzip {
url = "http://openfec.org/files/openfec_v1_4_2.tgz"; url = "https://github.com/roc-streaming/openfec/archive/refs/tags/v${version}.tar.gz";
sha256 = "sha256:0c2lg8afr7lqpzrsi0g44a6h6s7nq4vz7yc9vm2k57ph2y6r86la"; hash = "sha256-A/U9Nh8tspRoT3bYePJLUrNa9jxiL0r2Xaf64wWbmVA=";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
@ -33,6 +38,11 @@ stdenv.mkDerivation rec {
ln -s libopenfec${so} $out/lib/libopenfec${so}.1 ln -s libopenfec${so} $out/lib/libopenfec${so}.1
''; '';
passthru.updateScript = gitUpdater {
url = "https://github.com/roc-streaming/openfec.git";
rev-prefix = "v";
};
meta = with lib; { meta = with lib; {
description = "Application-level Forward Erasure Correction codes"; description = "Application-level Forward Erasure Correction codes";
homepage = "https://github.com/roc-streaming/openfec"; homepage = "https://github.com/roc-streaming/openfec";