uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
47
pkgs/servers/jicofo/default.nix
Normal file
47
pkgs/servers/jicofo/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib, stdenv, fetchurl, dpkg, jre_headless, nixosTests }:
|
||||
|
||||
let
|
||||
pname = "jicofo";
|
||||
version = "1.0-832";
|
||||
src = fetchurl {
|
||||
url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb";
|
||||
sha256 = "ZSzxD4RCsIkNtB4agBRZkzbJOi6ttzlc4Qw5n0t5syc=";
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
inherit pname version src;
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
unpackCmd = "${dpkg}/bin/dpkg-deb -x $src debcontents";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
substituteInPlace usr/share/jicofo/jicofo.sh \
|
||||
--replace "exec java" "exec ${jre_headless}/bin/java"
|
||||
|
||||
mkdir -p $out/{share,bin}
|
||||
mv usr/share/jicofo $out/share/
|
||||
mv etc $out/
|
||||
cp ${./logging.properties-journal} $out/etc/jitsi/jicofo/logging.properties-journal
|
||||
ln -s $out/share/jicofo/jicofo.sh $out/bin/jicofo
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.tests = {
|
||||
single-node-smoke-test = nixosTests.jitsi-meet;
|
||||
};
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A server side focus component used in Jitsi Meet conferences";
|
||||
longDescription = ''
|
||||
JItsi COnference FOcus is a server side focus component used in Jitsi Meet conferences.
|
||||
'';
|
||||
homepage = "https://github.com/jitsi/jicofo";
|
||||
license = licenses.asl20;
|
||||
maintainers = teams.jitsi.members;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
10
pkgs/servers/jicofo/logging.properties-journal
Normal file
10
pkgs/servers/jicofo/logging.properties-journal
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
handlers = java.util.logging.ConsoleHandler
|
||||
java.util.logging.ConsoleHandler.level = ALL
|
||||
java.util.logging.ConsoleHandler.formatter = net.java.sip.communicator.util.ScLogFormatter
|
||||
.level = INFO
|
||||
net.sf.level = SEVERE
|
||||
net.java.sip.communicator.plugin.reconnectplugin.level = FINE
|
||||
org.ice4j.level = SEVERE
|
||||
org.jitsi.impl.neomedia.level = SEVERE
|
||||
net.java.sip.communicator.service.resources.AbstractResourcesService.level = SEVERE
|
||||
net.java.sip.communicator.util.ScLogFormatter.disableTimestamp = true
|
||||
12
pkgs/servers/jicofo/update.sh
Executable file
12
pkgs/servers/jicofo/update.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p curl pup common-updater-scripts
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
version="$(curl https://download.jitsi.org/stable/ | \
|
||||
pup 'a[href] text{}' | \
|
||||
awk -F'[_-]' '/jicofo/ {printf $2"-"$3"\n"}' | \
|
||||
sort -u | \
|
||||
tail -n 1)"
|
||||
|
||||
update-source-version jicofo "$version"
|
||||
Loading…
Add table
Add a link
Reference in a new issue