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: 842867a97f4c
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: 53cad65edcc7
Choose a head ref
  • 9 commits
  • 10 files changed
  • 8 contributors

Commits on Jul 11, 2019

  1. routinator: init at 0.4.0

    0x4A6F committed Jul 11, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    39de81a View commit details
  2. Copy the full SHA
    16f8a17 View commit details
  3. qt512.qtwebengine: darwin patch

    This patch is currently applied to 5.11, allowing it to begin building;
    both packages fail to compile regardless, but it's an improvement.
    arcnmx committed Jul 11, 2019
    Copy the full SHA
    eda2dba View commit details
  4. Merge pull request #63581 from PsyanticY/zabbix-4.0

    zabbix:1.8 -> 4.0 | remove old packages
    matthewbauer authored Jul 11, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    99c04c7 View commit details
  5. swayidle: 1.4 -> 1.5

    primeos committed Jul 11, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    48067b5 View commit details
  6. Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    63a99cc View commit details
  7. i2p: 0.9.39 -> 0.9.41

    suhr authored and FRidh committed Jul 11, 2019
    Copy the full SHA
    253f9cf View commit details
  8. Merge pull request #64637 from arcnmx/darwin-qtwebengine

    qt512.qtwebengine: darwin patch
    ttuegel authored Jul 11, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d22a133 View commit details
  9. Merge pull request #62267 from 0x4A6F/master-routinator

    routinator: init at 0.4.0
    aanderse authored Jul 11, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    53cad65 View commit details
67 changes: 44 additions & 23 deletions nixos/modules/services/monitoring/zabbix-server.nix
Original file line number Diff line number Diff line change
@@ -17,6 +17,8 @@ let

configFile = pkgs.writeText "zabbix_server.conf"
''
ListenPort = ${cfg.listenPort}
LogFile = ${logDir}/zabbix_server
PidFile = ${pidFile}
@@ -25,18 +27,18 @@ let
DBHost = ${cfg.dbServer}
''}
DBName = zabbix
DBName = ${cfg.dbName}
DBUser = zabbix
DBUser = ${cfg.dbUser}
${optionalString (cfg.dbPassword != "") ''
DBPassword = ${cfg.dbPassword}
''}
DBPort = ${cfg.dbPort}
DBPassword = ${cfg.dbPassword}
${config.services.zabbixServer.extraConfig}
'';

useLocalPostgres = cfg.dbServer == "localhost" || cfg.dbServer == "";
useLocalMysql = cfg.dbServer == "localhost" || cfg.dbServer == "";

in

@@ -64,26 +66,49 @@ in
};

services.zabbixServer.dbPassword = mkOption {
default = "";
type = types.str;
description = "Password used to connect to the database server.";
};

services.zabbixServer.dbUser = mkOption {
default = "zabbix";
type = types.str;
description = "User used to connect to the database server.";
};

services.zabbixServer.dbPort = mkOption {
default = "3306";
type = types.str;
description = "Port used to connect to the database server.";
};

services.zabbixServer.dbName = mkOption {
default = "zabbix";
type = types.str;
description = "Port used to connect to the database server.";
};

services.zabbixServer.listenPort = mkOption {
default = "10051";
type = types.str;
description = "Port used to listen to the agent.";
};

services.zabbixServer.extraConfig = mkOption {
default = "";
type = types.lines;
description = ''
Configuration that is injected verbatim into the configuration file.
'';
};

};

###### implementation

config = mkIf cfg.enable {

services.postgresql.enable = useLocalPostgres;
services.mysql.enable = useLocalMysql;
services.mysql.package = pkgs.mysql;

users.users = singleton
{ name = "zabbix";
@@ -95,32 +120,28 @@ in
{ description = "Zabbix Server";

wantedBy = [ "multi-user.target" ];
after = optional useLocalPostgres "postgresql.service";
after = optional useLocalMysql "mysql.service";

preStart =
''
mkdir -m 0755 -p ${stateDir} ${logDir} ${libDir}
chown zabbix ${stateDir} ${logDir} ${libDir}
if ! test -e "${libDir}/db-created"; then
${pkgs.su}/bin/su -s "$SHELL" ${config.services.postgresql.superUser} -c '${pkgs.postgresql}/bin/createuser --no-superuser --no-createdb --no-createrole zabbix' || true
${pkgs.su}/bin/su -s "$SHELL" ${config.services.postgresql.superUser} -c '${pkgs.postgresql}/bin/createdb --owner zabbix zabbix' || true
cat ${pkgs.zabbix.server}/share/zabbix/db/schema/postgresql.sql | ${pkgs.su}/bin/su -s "$SHELL" zabbix -c '${pkgs.postgresql}/bin/psql zabbix'
cat ${pkgs.zabbix.server}/share/zabbix/db/data/images_pgsql.sql | ${pkgs.su}/bin/su -s "$SHELL" zabbix -c '${pkgs.postgresql}/bin/psql zabbix'
cat ${pkgs.zabbix.server}/share/zabbix/db/data/data.sql | ${pkgs.su}/bin/su -s "$SHELL" zabbix -c '${pkgs.postgresql}/bin/psql zabbix'
${lib.optionalString (useLocalMysql) ''
if ! test -e "${libDir}/db-created"; then
${pkgs.sudo}/bin/sudo -u ${config.services.mysql.user} ${pkgs.mysql}/bin/mysql -uroot -e 'CREATE DATABASE ${cfg.dbName}'
${pkgs.sudo}/bin/sudo -u ${config.services.mysql.user} ${pkgs.mysql}/bin/mysql -uroot -e "GRANT ALL ON ${cfg.dbName}.* TO ${cfg.dbUser}@localhost IDENTIFIED BY \"${cfg.dbPassword}\";"
cat ${pkgs.zabbix.server}/share/zabbix/db/schema/mysql.sql | ${pkgs.sudo}/bin/sudo -u zabbix ${pkgs.mysql}/bin/mysql -u${cfg.dbUser} -p${cfg.dbPassword} ${cfg.dbName}
cat ${pkgs.zabbix.server}/share/zabbix/db/data/images.sql | ${pkgs.sudo}/bin/sudo -u zabbix ${pkgs.mysql}/bin/mysql -u${cfg.dbUser} -p${cfg.dbPassword} ${cfg.dbName}
cat ${pkgs.zabbix.server}/share/zabbix/db/data/data.sql | ${pkgs.sudo}/bin/sudo -u zabbix ${pkgs.mysql}/bin/mysql -u${cfg.dbUser} -p${cfg.dbPassword} ${cfg.dbName}
touch "${libDir}/db-created"
fi
fi''}
'';

path = [ pkgs.nettools ];

serviceConfig.ExecStart = "@${pkgs.zabbix.server}/sbin/zabbix_server zabbix_server --config ${configFile}";
serviceConfig.ExecStart = "${pkgs.zabbix.server}/sbin/zabbix_server --config ${configFile}";
serviceConfig.Type = "forking";
serviceConfig.Restart = "always";
serviceConfig.RestartSec = 2;
serviceConfig.PIDFile = pidFile;
};

};

}
6 changes: 3 additions & 3 deletions pkgs/applications/networking/gns3/default.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

let
stableVersion = "2.1.21";
previewVersion = "2.2.0b3";
previewVersion = "2.2.0b4";
addVersion = args:
let version = if args.stable then stableVersion else previewVersion;
branch = if args.stable then "stable" else "preview";
@@ -18,7 +18,7 @@ in {
};
guiPreview = mkGui {
stable = false;
sha256Hash = "1bzy95zqinwrrga7qj6gvpzvz34w4ddhvgmpgq3p1lwzixpqg1w7";
sha256Hash = "03jlg4ncs69gv1dn1zsdm0ipvlg6r0lwf8myxric6vv4ks7qqd3w";
};

serverStable = mkServer {
@@ -27,6 +27,6 @@ in {
};
serverPreview = mkServer {
stable = false;
sha256Hash = "1bq4ww6qhhl0qw6yj7cf7yg54yb4y8mxlnwss6hgbyfv5fz9rxjp";
sha256Hash = "0mzn62649hmmqq8z2vphqvi0w38jwq8ps4zzbl1dqygbf4gadnqa";
};
}
8 changes: 2 additions & 6 deletions pkgs/applications/window-managers/sway/idle.nix
Original file line number Diff line number Diff line change
@@ -5,19 +5,15 @@

stdenv.mkDerivation rec {
name = "swayidle-${version}";
version = "1.4";
version = "1.5";

src = fetchFromGitHub {
owner = "swaywm";
repo = "swayidle";
rev = version;
sha256 = "1fpacy9jwfi3vd94sgsy8qgx5092rm3vsplj2zjbmxkak1gjn56n";
sha256 = "05qi96j58xqxjiighay1d39rfanxcpn6vlynj23mb5dymxvlaq9n";
};

postPatch = ''
sed -iE "s/version: '1\.3',/version: '${version}',/" meson.build
'';

nativeBuildInputs = [ meson ninja pkgconfig scdoc ];
buildInputs = [ wayland wayland-protocols systemd ];

Original file line number Diff line number Diff line change
@@ -19,3 +19,15 @@ diff --git a/mkspecs/features/platform.prf b/mkspecs/features/platform.prf
}
} else {
skipBuild("Unknown platform. Qt WebEngine only supports Linux, Windows, and macOS.")
diff --git a/src/core/config/mac_osx.pri b/src/core/config/mac_osx.pri
--- a/src/core/config/mac_osx.pri
+++ b/src/core/config/mac_osx.pri
@@ -5,8 +5,6 @@ load(functions)
# otherwise query for it.
QMAKE_MAC_SDK_VERSION = $$eval(QMAKE_MAC_SDK.$${QMAKE_MAC_SDK}.SDKVersion)
isEmpty(QMAKE_MAC_SDK_VERSION) {
- QMAKE_MAC_SDK_VERSION = $$system("/usr/bin/xcodebuild -sdk $${QMAKE_MAC_SDK} -version SDKVersion 2>/dev/null")
- isEmpty(QMAKE_MAC_SDK_VERSION): error("Could not resolve SDK version for \'$${QMAKE_MAC_SDK}\'")
}

QMAKE_CLANG_DIR = "/usr"
92 changes: 0 additions & 92 deletions pkgs/servers/monitoring/zabbix/2.0.nix

This file was deleted.

104 changes: 0 additions & 104 deletions pkgs/servers/monitoring/zabbix/2.2.nix

This file was deleted.

Loading