about summary refs log tree commit diff
path: root/pkgs/development/libraries/openfec/default.nix
diff options
context:
space:
mode:
authorSergei Trofimovich2023-09-25 11:39:08 +0100
committerSergei Trofimovich2023-09-25 11:39:08 +0100
commit998e697358b21e82d79950d7454a5e4d642a3833 (patch)
tree011f805aa49ea5615f2ff85c487b921bbb495040 /pkgs/development/libraries/openfec/default.nix
parent32617aec9e2590aeb3a1ee36319614595cc0d6a1 (diff)
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
Diffstat (limited to 'pkgs/development/libraries/openfec/default.nix')
-rw-r--r--pkgs/development/libraries/openfec/default.nix18
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/development/libraries/openfec/default.nix b/pkgs/development/libraries/openfec/default.nix
index a908b4980dad..dd6b0ce10c0b 100644
--- a/pkgs/development/libraries/openfec/default.nix
+++ b/pkgs/development/libraries/openfec/default.nix
@@ -1,12 +1,17 @@
-{ stdenv, lib, fetchzip, cmake }:
+{ stdenv
+, lib
+, fetchzip
+, cmake
+, gitUpdater
+}:
 
 stdenv.mkDerivation rec {
   pname = "openfec";
-  version = "1.4.2";
+  version = "1.4.2.9";
 
   src = fetchzip {
-    url = "http://openfec.org/files/openfec_v1_4_2.tgz";
-    sha256 = "sha256:0c2lg8afr7lqpzrsi0g44a6h6s7nq4vz7yc9vm2k57ph2y6r86la";
+    url = "https://github.com/roc-streaming/openfec/archive/refs/tags/v${version}.tar.gz";
+    hash = "sha256-A/U9Nh8tspRoT3bYePJLUrNa9jxiL0r2Xaf64wWbmVA=";
   };
 
   outputs = [ "out" "dev" ];
@@ -33,6 +38,11 @@ stdenv.mkDerivation rec {
       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; {
     description = "Application-level Forward Erasure Correction codes";
     homepage = "https://github.com/roc-streaming/openfec";