jitsi-meet: 1.0.8043 -> 1.0.8792, from GitHub

This commit is contained in:
Tom van Dijk
2025-09-05 15:49:12 +02:00
parent e7fd85fb54
commit 3d52f4bb4a
2 changed files with 41 additions and 17 deletions
+34 -10
View File
@@ -1,26 +1,50 @@
{
lib,
stdenv,
fetchurl,
nixosTests,
fetchFromGitHub,
fetchNpmDeps,
npmHooks,
libarchive,
nodejs,
olm,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "jitsi-meet";
version = "1.0.8043";
version = "1.0.8792";
src = fetchurl {
url = "https://download.jitsi.org/jitsi-meet/src/jitsi-meet-${version}.tar.bz2";
sha256 = "XJlfCMQXnHjfHQhK916RXsdPzrU2U2IaOMiXIHL1sCI=";
src = fetchFromGitHub {
owner = "jitsi";
repo = "jitsi-meet";
tag = lib.last (lib.splitVersion finalAttrs.version);
hash = "sha256-K4Xrse1kpNqlUChbQnAjP5lRCRuDfJKiN/022tCmMVQ=";
};
dontBuild = true;
env = {
makeFlags = "source-package";
makeCacheWritable = true;
npmDeps = fetchNpmDeps {
inherit (finalAttrs) src;
hash = "sha256-2NPfr3gskHz9zSGs//uzyCCuE+CZ295hhitDPlS9xuY=";
};
};
nativeBuildInputs = [
libarchive
nodejs
npmHooks.npmConfigHook
];
# yes, the only way in the build system is to generate a tarball and extract
# it immediately after
installPhase = ''
runHook preInstall
mkdir $out
mv * $out/
mkdir -p $out
bsdtar -xf jitsi-meet.tar.bz2 -C $out --strip-components 1
runHook postInstall
'';
@@ -43,4 +67,4 @@ stdenv.mkDerivation rec {
platforms = platforms.all;
inherit (olm.meta) knownVulnerabilities;
};
}
})
+7 -7
View File
@@ -1,12 +1,12 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pup common-updater-scripts
#!nix-shell -i bash -p curl pup nix-update
set -eu -o pipefail
version="$(curl https://download.jitsi.org/stable/ | \
pup 'a[href] text{}' | \
awk -F'[_-]' '/jitsi-meet-web_/ {printf $4"\n"}' | \
sort -Vu | \
tail -n 1)"
version="$(curl https://download.jitsi.org/jitsi-meet/src/ |
pup 'a[href] text{}' |
awk -F'-|.tar.bz2' '/jitsi-meet-/ {printf $3"\n"}' |
sort -Vu |
tail -n 1)"
update-source-version jitsi-meet "$version"
nix-update --version="$version" jitsi-meet