Skip to content

Commit

Permalink
janus-gateway: fix build, 1.2.3 -> 1.2.4 (#350103)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz authored Oct 23, 2024
2 parents 22198d7 + f3138af commit 0e33e80
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gengetopt
, glib, libconfig, libnice, jansson, boringssl, zlib, srtp, libuv
, libmicrohttpd, curl, libwebsockets, sofia_sip, libogg, libopus
, usrsctp, ffmpeg
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
gengetopt,
glib,
libconfig,
libnice,
jansson,
boringssl,
zlib,
srtp,
libuv,
libmicrohttpd,
curl,
libwebsockets,
sofia_sip,
libogg,
libopus,
usrsctp,
ffmpeg,
}:

let
Expand All @@ -15,20 +34,38 @@ in

stdenv.mkDerivation rec {
pname = "janus-gateway";
version = "1.2.3";
version = "1.2.4";

src = fetchFromGitHub {
owner = "meetecho";
repo = pname;
rev = "v${version}";
sha256 = "sha256-3o9XxxTlWppq1mFgIUjstUFz6bT44mvBJa4FBgcc4Pc=";
sha256 = "sha256-oUX9PxiNdmrC03p+DAGkxD+mbi2jzuCgwlgd2JZ4Gwo=";
};

nativeBuildInputs = [ autoreconfHook pkg-config gengetopt ];
nativeBuildInputs = [
autoreconfHook
pkg-config
gengetopt
];

buildInputs = [
glib libconfig libnice jansson boringssl zlib srtp libuv libmicrohttpd
curl libwebsockets_janus sofia_sip libogg libopus usrsctp ffmpeg
glib
libconfig
libnice
jansson
boringssl
zlib
srtp
libuv
libmicrohttpd
curl
libwebsockets_janus
sofia_sip
libogg
libopus
usrsctp
ffmpeg
];

enableParallelBuilding = true;
Expand All @@ -44,9 +81,17 @@ stdenv.mkDerivation rec {

makeFlags = [
"BORINGSSL_LIBS=-L${lib.getLib boringssl}/lib"
# Linking with CXX because boringssl static libraries depend on C++ stdlib.
# Upstream issue: https://www.github.com/meetecho/janus-gateway/issues/3456
"CCLD=${stdenv.cc.targetPrefix}c++"
];

outputs = [ "out" "dev" "doc" "man" ];
outputs = [
"out"
"dev"
"doc"
"man"
];

postInstall = ''
moveToOutput share/janus "$doc"
Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24368,8 +24368,6 @@ with pkgs;

ircdHybrid = callPackage ../servers/irc/ircd-hybrid { };

janus-gateway = callPackage ../servers/janus-gateway { };

janusgraph = callPackage ../servers/nosql/janusgraph { };

jboss = callPackage ../servers/http/jboss { };
Expand Down

0 comments on commit 0e33e80

Please sign in to comment.