Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5adadd146634
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 36adeebde6cc
Choose a head ref

Commits on Jul 5, 2020

  1. Copy the full SHA
    3fef7f3 View commit details
  2. Copy the full SHA
    36e166f View commit details
  3. Copy the full SHA
    851467e View commit details

Commits on Jul 14, 2020

  1. python3Packages.pytest-black: 0.3.9 -> 0.3.10

    Jonathan Ringer committed Jul 14, 2020
    Copy the full SHA
    9cd4fcb View commit details

Commits on Jul 16, 2020

  1. strawberry: 0.6.12 -> 0.6.13

    r-ryantm committed Jul 16, 2020
    Copy the full SHA
    09f8c74 View commit details
  2. prometheus-modemmanager-exporter: init at 0.1.0

    Signed-off-by: Matt Layher <mdlayher@gmail.com>
    mdlayher committed Jul 16, 2020
    Copy the full SHA
    703c75f View commit details
  3. metals: 0.9.1 -> 0.9.2

    Tomahna committed Jul 16, 2020
    Copy the full SHA
    8a58662 View commit details

Commits on Jul 17, 2020

  1. icewm: 1.6.6 -> 1.7.0

    r-ryantm committed Jul 17, 2020
    Copy the full SHA
    3b8cffb View commit details
  2. commitIdFromGitRepo: fix stackoverflow if many branches are used.

    If many branches are created than builtins.match stack overflows because
    of a bug in libstdc++: see NixOS/nix#2147
    Mic92 committed Jul 17, 2020
    Copy the full SHA
    d7e89fa View commit details
  3. Copy the full SHA
    5525938 View commit details
  4. nixos/prometheus-modemmanager-exporter: new module

    Signed-off-by: Matt Layher <mdlayher@gmail.com>
    mdlayher committed Jul 17, 2020
    Copy the full SHA
    a58346a View commit details
  5. Merge pull request #93291 from mdlayher/mdl-mmexporter

    prometheus-modemmanager-exporter: init at 0.1.0, add NixOS module
    WilliButz authored Jul 17, 2020
    Copy the full SHA
    c8a29f6 View commit details
  6. oven-media-engine: init at 0.10.4

    lukegb authored and Profpatsch committed Jul 17, 2020
    Copy the full SHA
    5ecf942 View commit details
  7. Copy the full SHA
    a5c9a7c View commit details
  8. Merge pull request #93304 from Tomahna/metals

    metals: 0.9.1 -> 0.9.2
    danieldk authored Jul 17, 2020
    Copy the full SHA
    1bef2f1 View commit details
  9. Copy the full SHA
    3487b6e View commit details
  10. Merge pull request #93326 from r-ryantm/auto-update/icewm

    icewm: 1.6.6 -> 1.7.0
    Ma27 authored Jul 17, 2020
    Copy the full SHA
    adf8295 View commit details
  11. Copy the full SHA
    2d357db View commit details
  12. Copy the full SHA
    e3bd95b View commit details
  13. Merge pull request #93250 from r-ryantm/auto-update/strawberry

    strawberry: 0.6.12 -> 0.6.13
    lsix authored Jul 17, 2020
    Copy the full SHA
    ab81739 View commit details
  14. Merge pull request #93352 from primeos/python-google-api-client

    python3Packages.google_api_python_client: 1.9.3 -> 1.10.0
    primeos authored Jul 17, 2020
    Copy the full SHA
    f7e1481 View commit details
  15. Merge pull request #93088 from jonringer/bump-pytest-black

    python3Packages.pytest-black: 0.3.9 -> 0.3.10
    lsix authored Jul 17, 2020
    Copy the full SHA
    36adeeb View commit details
10 changes: 7 additions & 3 deletions lib/sources.nix
Original file line number Diff line number Diff line change
@@ -145,10 +145,14 @@ rec {
# packed-refs file, so we have to grep through it:
then
let fileContent = readFile packedRefsName;
matchRef = match (".*\n([^\n ]*) " + file + "\n.*") fileContent;
in if matchRef == null
matchRef = builtins.match "([a-z0-9]+) ${file}";
isRef = s: builtins.isString s && (matchRef s) != null;
# there is a bug in libstdc++ leading to stackoverflow for long strings:
# https://github.com/NixOS/nix/issues/2147#issuecomment-659868795
refs = builtins.filter isRef (builtins.split "\n" fileContent);
in if refs == []
then throw ("Could not find " + file + " in " + packedRefsName)
else lib.head matchRef
else lib.head (matchRef (lib.head refs))

else throw ("Not a .git directory: " + path);
in readCommitFromFile "HEAD";
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -4803,6 +4803,12 @@
githubId = 34683288;
name = "Luke Bentley-Fox";
};
lukegb = {
email = "nix@lukegb.com";
github = "lukegb";
githubId = 246745;
name = "Luke Granger-Brown";
};
lukego = {
email = "luke@snabb.co";
github = "lukego";
1 change: 1 addition & 0 deletions nixos/modules/services/monitoring/prometheus/exporters.nix
Original file line number Diff line number Diff line change
@@ -34,6 +34,7 @@ let
"mail"
"mikrotik"
"minio"
"modemmanager"
"nextcloud"
"nginx"
"node"
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ config, lib, pkgs, options }:

with lib;

let
cfg = config.services.prometheus.exporters.modemmanager;
in
{
port = 9539;
extraOpts = {
refreshRate = mkOption {
type = types.str;
default = "5s";
description = ''
How frequently ModemManager will refresh the extended signal quality
information for each modem. The duration should be specified in seconds
("5s"), minutes ("1m"), or hours ("1h").
'';
};
};
serviceOpts = {
serviceConfig = {
# Required in order to authenticate with ModemManager via D-Bus.
SupplementaryGroups = "networkmanager";
ExecStart = ''
${pkgs.prometheus-modemmanager-exporter}/bin/modemmanager_exporter \
-addr ${cfg.listenAddress}:${toString cfg.port} \
-rate ${cfg.refreshRate} \
${concatStringsSep " \\\n " cfg.extraFlags}
'';
};
};
}
25 changes: 25 additions & 0 deletions nixos/tests/prometheus-exporters.nix
Original file line number Diff line number Diff line change
@@ -363,6 +363,31 @@ let
'';
};

modemmanager = {
exporterConfig = {
enable = true;
refreshRate = "10s";
};
metricProvider = {
# ModemManager is installed when NetworkManager is enabled. Ensure it is
# started and is wanted by NM and the exporter to start everything up
# in the right order.
networking.networkmanager.enable = true;
systemd.services.ModemManager = {
enable = true;
wantedBy = [ "NetworkManager.service" "prometheus-modemmanager-exporter.service" ];
};
};
exporterTest = ''
wait_for_unit("ModemManager.service")
wait_for_unit("prometheus-modemmanager-exporter.service")
wait_for_open_port(9539)
succeed(
"curl -sSf http://localhost:9539/metrics | grep -q 'modemmanager_info'"
)
'';
};

nextcloud = {
exporterConfig = {
enable = true;
4 changes: 2 additions & 2 deletions pkgs/applications/audio/strawberry/default.nix
Original file line number Diff line number Diff line change
@@ -35,13 +35,13 @@

mkDerivation rec {
pname = "strawberry";
version = "0.6.12";
version = "0.6.13";

src = fetchFromGitHub {
owner = "jonaski";
repo = pname;
rev = version;
sha256 = "0p09xp7andfg0gvarzc979pwglr0xjj1c0cziqj0c9z7p1v0fkws";
sha256 = "1v0334aivqyqx611cmhgshknzmrgyynbmxcg70qzrs2lyybw2fc1";
};

buildInputs = [
4 changes: 2 additions & 2 deletions pkgs/applications/window-managers/icewm/default.nix
Original file line number Diff line number Diff line change
@@ -9,13 +9,13 @@
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "icewm";
version = "1.6.6";
version = "1.7.0";

src = fetchFromGitHub {
owner = "bbidulock";
repo = "icewm";
rev = version;
sha256 = "05jg2gs5cdxn2kfm2y6yrqxpza5s1zsgb52168psmzhb4nakpv42";
sha256 = "0x6axhwfwxxgnljf3201hvrwa90yacf3ln24lsywrk1bxq9am74b";
};

nativeBuildInputs = [ cmake pkgconfig perl asciidoc ];
4 changes: 2 additions & 2 deletions pkgs/development/compilers/ocaml/4.11.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ./generic.nix {
major_version = "4";
minor_version = "11";
patch_version = "0+beta1";
sha256 = "1xhkwprbnd3wp6bi3k74f42l1mff1ngn7gl4rgad9dk4ly0yzfdr";
patch_version = "0+beta2";
sha256 = "1n39qfwvpwlhp9m73zi9hrk9ny9g6spy9apc36n2ydpf5dn7pg75";
}
26 changes: 17 additions & 9 deletions pkgs/development/perl-modules/Percona-Toolkit/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
{ lib, fetchFromGitHub, buildPerlPackage, DBDmysql, DBI, IOSocketSSL, TermReadKey, shortenPerlShebang }:
{ stdenv, fetchFromGitHub, buildPerlPackage, shortenPerlShebang
, DBDmysql, DBI, IOSocketSSL, TermReadKey
}:

buildPerlPackage {
buildPerlPackage rec {
pname = "Percona-Toolkit";
version = "3.0.12";
version = "3.2.0";

src = fetchFromGitHub {
owner = "percona";
repo = "percona-toolkit";
rev = "3.0.12";
sha256 = "0xk4h4dzl80kf97lbx0nznx9ajrb6kkg7k3iwca3rj6f3rqggv9y";
rev = "v${version}";
sha256 = "084ldpskvlfm32lfss5qqzm5y9b8hf029aa4i5pcnzgb53xaxkqx";
};

outputs = [ "out" ];

nativeBuildInputs = [ shortenPerlShebang ];

buildInputs = [ DBDmysql DBI IOSocketSSL TermReadKey ];

postInstall = ''
shortenPerlShebang $(grep -l "/bin/env perl" $out/bin/*)
'';
meta = {

meta = with stdenv.lib; {
description = ''Collection of advanced command-line tools to perform a variety of MySQL and system tasks.'';
homepage = "http://www.percona.com/software/percona-toolkit";
license = with lib.licenses; [ gpl2 ];
maintainers = with lib.maintainers; [ izorkin ];
homepage = "https://www.percona.com/software/database-tools/percona-toolkit";
license = with licenses; [ gpl2 ];
maintainers = with maintainers; [ izorkin ];
};
}
Original file line number Diff line number Diff line change
@@ -4,11 +4,11 @@

buildPythonPackage rec {
pname = "google-api-python-client";
version = "1.9.3";
version = "1.10.0";

src = fetchPypi {
inherit pname version;
sha256 = "220349ce189a85229fc46875d467101318495a4a735c0ff2f165b9bdbc7511a0";
sha256 = "01zzlr21rgl1skl7ayppp0qwn6s883i50xcvxs8jxzr4c5zz097s";
};

# No tests included in archive
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/pytest-black/default.nix
Original file line number Diff line number Diff line change
@@ -7,17 +7,19 @@

buildPythonPackage rec {
pname = "pytest-black";
version = "0.3.9";
version = "0.3.10";

src = fetchPypi {
inherit pname version;
sha256 = "c743dfeffe6b2cb25c0ed1a84cc306dff4b504b713b5a6d1bc3824fa73a7d693";
sha256 = "0dvlfic7nvfj97rg5fwj7ahw83n9yj3jjbp5m60n47mlx7z0qg2z";
};

nativeBuildInputs = [ setuptools_scm ];

propagatedBuildInputs = [ black pytest toml ];

pythonImportsCheck = [ "pytest_black" ];

meta = with lib; {
description = "A pytest plugin to enable format checking with black";
homepage = "https://github.com/shopkeep/pytest-black";
24 changes: 24 additions & 0 deletions pkgs/development/tools/bazel-kazel/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ buildGoModule, fetchFromGitHub, lib }:

buildGoModule rec {
pname = "bazel-kazel";
version = "0.0.7";

src = fetchFromGitHub {
owner = "kubernetes";
repo = "repo-infra";
rev = "v${version}";
sha256 = "0g4lgz5xgmxabaa8pygmdnrnslfrcb84vgr6bninl9v5zz4wajbm";
};

vendorSha256 = "1lizvg9r7cck1cgk20np2syv4ljbc0zj1kydiiajf7y5x7d3lwha";

subPackages = [ "cmd/kazel" ];

meta = with lib; {
description = "kazel - a BUILD file generator for go and bazel";
homepage = "https://github.com/kubernetes/repo-infra";
license = licenses.asl20;
maintainers = with maintainers; [ kalbasit ];
};
}
14 changes: 6 additions & 8 deletions pkgs/development/tools/metals/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{ stdenv, lib, coursier, jdk, jre, makeWrapper }:

let
baseName = "metals";
version = "0.9.1";
stdenv.mkDerivation rec {
pname = "metals";
version = "0.9.2";

deps = stdenv.mkDerivation {
name = "${baseName}-deps-${version}";
name = "${pname}-deps-${version}";
buildCommand = ''
export COURSIER_CACHE=$(pwd)
${coursier}/bin/coursier fetch org.scalameta:metals_2.12:${version} \
@@ -15,11 +16,8 @@ let
'';
outputHashMode = "recursive";
outputHashAlgo = "sha256";
outputHash = "1pa84y7jrfl8p7lwz2pjlv70fqg1wmcz98npqq5i443smf7r9v4f";
outputHash = "1gnf2p578nk1ygx3cc4mb7fa690c51nbdwvc2qz2805m4xg3x7zv";
};
in
stdenv.mkDerivation rec {
name = "${baseName}-${version}";

nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jdk deps ];
69 changes: 69 additions & 0 deletions pkgs/servers/misc/oven-media-engine/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{ stdenv
, fetchFromGitHub
, srt
, ffmpeg_3_4
, bc
, pkgconfig
, perl
, openssl
, zlib
, ffmpeg
, libvpx
, libopus
, srtp
, jemalloc
, ... }:

let
ffmpeg = ffmpeg_3_4.overrideAttrs (super: {
pname = "${super.pname}-ovenmediaengine";
src = fetchFromGitHub {
owner = "Airensoft";
repo = "FFmpeg";
rev = "142b4bb64b64e337f80066e6af935a68627fedae"; # ome/3.4
sha256 = "0fla3940q3z0c0ik2xzkbvdfvrdg06ban7wi6y94y8mcipszpp11";
};
});
in
stdenv.mkDerivation rec {
pname = "oven-media-engine";
version = "0.10.4";

src = fetchFromGitHub {
owner = "AirenSoft";
repo = "OvenMediaEngine";
rev = "v${version}";
sha256 = "15lrlynsldlpa21ryzccf5skgiih6y5fc9qg0bfqh557wnnmml6w";
};

sourceRoot = "source/src";
makeFlags = "release CONFIG_LIBRARY_PATHS= CONFIG_PKG_PATHS= GLOBAL_CC=$(CC) GLOBAL_CXX=$(CXX) GLOBAL_LD=$(CXX) SHELL=${stdenv.shell}";
enableParallelBuilding = true;

nativeBuildInputs = [ bc pkgconfig perl ];
buildInputs = [ openssl srt zlib ffmpeg libvpx libopus srtp jemalloc ];

preBuild = ''
patchShebangs core/colorg++
patchShebangs core/colorgcc
patchShebangs projects/main/update_git_info.sh
sed -i -e '/^CC =/d' -e '/^CXX =/d' -e '/^AR =/d' projects/third_party/pugixml-1.9/scripts/pugixml.make
'';

installPhase = ''
install -Dm0755 bin/RELEASE/OvenMediaEngine $out/bin/OvenMediaEngine
install -Dm0644 ../misc/conf_examples/Origin.xml $out/share/examples/origin_conf/Server.xml
install -Dm0644 ../misc/conf_examples/Logger.xml $out/share/examples/origin_conf/Logger.xml
install -Dm0644 ../misc/conf_examples/Edge.xml $out/share/examples/edge_conf/Server.xml
install -Dm0644 ../misc/conf_examples/Logger.xml $out/share/examples/edge_conf/Logger.xml
'';

meta = with stdenv.lib; {
description = "Open-source streaming video service with sub-second latency";
homepage = "https://ovenmediaengine.com";
license = licenses.gpl2;
maintainers = with maintainers; [ lukegb ];
platforms = [ "x86_64-linux" ];
};
}
24 changes: 24 additions & 0 deletions pkgs/servers/monitoring/prometheus/modemmanager-exporter.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:

buildGoModule rec {
pname = "modemmanager-exporter";
version = "0.1.0";

src = fetchFromGitHub {
owner = "mdlayher";
repo = "modemmanager_exporter";
rev = "v${version}";
sha256 = "0d8z7qzk5j5jj0ixkwpi8dw9kki78mxrajdlzzcj2rcgbnwair91";
};

vendorSha256 = "0f6v97cvzdz7wygswpm87wf8r169x5rw28908vqhmqk644hli4zy";

passthru.tests = { inherit (nixosTests.prometheus-exporters) modemmanager; };

meta = with stdenv.lib; {
homepage = "https://github.com/mdlayher/modemmanager_exporter";
description = "Prometheus exporter for ModemManager and its devices.";
license = licenses.mit;
maintainers = with maintainers; [ mdlayher ];
};
}
6 changes: 6 additions & 0 deletions pkgs/tools/backup/percona-xtrabackup/2_4.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{ callPackage, ... } @ args:

callPackage ./generic.nix (args // {
version = "2.4.20";
sha256 = "0awdpkcgvx2aq7pwxy8jyzkin6cyrrh3d576x9ldm851kis9n5ii";
})
14 changes: 14 additions & 0 deletions pkgs/tools/backup/percona-xtrabackup/8_0.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{ callPackage, ... } @ args:

callPackage ./generic.nix (args // {
version = "8.0.13";
sha256 = "0cj0fnjimv22ykfl0yk6w29wcjvqp8y8j2g1c6gcml65qazrswyr";

extraPatches = [
./../../../servers/sql/mysql/abi-check.patch
];

extraPostInstall = ''
rm -r "$out"/docs
'';
})
Loading