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: 1c7c1e052956
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: cef68c4580f1
Choose a head ref
  • 11 commits
  • 7 files changed
  • 7 contributors

Commits on Dec 30, 2019

  1. Verified

    This commit was signed with the committer’s verified signature.
    Mic92 Jörg Thalheim
    Copy the full SHA
    c010798 View commit details

Commits on Jan 4, 2020

  1. Copy the full SHA
    44d0aed View commit details
  2. Copy the full SHA
    7fffda0 View commit details
  3. zerotierone: add arm platform

    Tested on raspberry pi 1.
    danielfullmer committed Jan 4, 2020
    Copy the full SHA
    115534c View commit details
  4. texmaker: 5.0.3 -> 5.0.4

    markuskowa committed Jan 4, 2020
    Copy the full SHA
    457b17c View commit details
  5. Merge pull request #76949 from markuskowa/upd-texmaker

    texmaker: 5.0.3 -> 5.0.4
    markuskowa authored Jan 4, 2020
    Copy the full SHA
    947043a View commit details
  6. Merge pull request #76916 from danielfullmer/zerotierone-cross

    zerotierone: fix cross compilation
    zimbatm authored Jan 4, 2020
    Copy the full SHA
    48f461d View commit details
  7. Copy the full SHA
    7766de0 View commit details
  8. pythonPackages.unicorn: redesign to become a wrapper package around u…

    …nicorn-emu
    
    this allows us to easily keep the two in sync and gives a more flexible
    result, also add self as co-maintainer.
    risicle authored and thoughtpolice committed Jan 4, 2020
    Copy the full SHA
    8b3e1e7 View commit details
  9. Merge pull request #76698 from fnords/protonmail-bridge-1.2.3-1-bump

    protonmail-bridge: 1.2.2-1 -> 1.2.3-1
    etu authored Jan 4, 2020
    Copy the full SHA
    4c9e280 View commit details
  10. nixos/nginx: don't hide nginx config errors on nixos-rebuild --switch…

    … with reload enabled (#76179)
    
    nixos/nginx: don't hide nginx config errors on nixos-rebuild --switch
    with reload enabled
    
    Closes NixOS/nixpkgs#73455
    danbst authored Jan 4, 2020
    Copy the full SHA
    cef68c4 View commit details
17 changes: 13 additions & 4 deletions nixos/modules/services/web-servers/nginx/default.nix
Original file line number Diff line number Diff line change
@@ -178,6 +178,8 @@ let
then "/etc/nginx/nginx.conf"
else configFile;

execCommand = "${cfg.package}/bin/nginx -c '${configPath}' -p '${cfg.stateDir}'";

vhosts = concatStringsSep "\n" (mapAttrsToList (vhostName: vhost:
let
onlySSL = vhost.onlySSL || vhost.enableSSL;
@@ -682,10 +684,10 @@ in
stopIfChanged = false;
preStart = ''
${cfg.preStart}
${cfg.package}/bin/nginx -c '${configPath}' -p '${cfg.stateDir}' -t
${execCommand} -t
'';
serviceConfig = {
ExecStart = "${cfg.package}/bin/nginx -c '${configPath}' -p '${cfg.stateDir}'";
ExecStart = execCommand;
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
Restart = "always";
RestartSec = "10s";
@@ -706,11 +708,18 @@ in
};

systemd.services.nginx-config-reload = mkIf cfg.enableReload {
wantedBy = [ "nginx.service" ];
wants = [ "nginx.service" ];
wantedBy = [ "multi-user.target" ];
restartTriggers = [ configFile ];
# commented, because can cause extra delays during activate for this config:
# services.nginx.virtualHosts."_".locations."/".proxyPass = "http://blabla:3000";
# stopIfChanged = false;
serviceConfig.Type = "oneshot";
serviceConfig.TimeoutSec = 60;
script = ''
if ${pkgs.systemd}/bin/systemctl -q is-active nginx.service ; then
${pkgs.systemd}/bin/systemctl reload nginx.service
${execCommand} -t && \
${pkgs.systemd}/bin/systemctl reload nginx.service
fi
'';
serviceConfig.RemainAfterExit = true;
20 changes: 19 additions & 1 deletion nixos/tests/nginx.nix
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
import ./make-test-python.nix ({ pkgs, ... }: {
name = "nginx";
meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ mbbx6spp ];
maintainers = [ mbbx6spp danbst ];
};

nodes = {
@@ -59,6 +59,11 @@ import ./make-test-python.nix ({ pkgs, ... }: {
{
services.nginx.package = pkgs.nginxUnstable;
}

{
services.nginx.package = pkgs.nginxUnstable;
services.nginx.virtualHosts."!@$$(#*%".locations."~@#*$*!)".proxyPass = ";;;";
}
];
};

@@ -68,6 +73,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
etagSystem = "${nodes.webserver.config.system.build.toplevel}/fine-tune/child-1";
justReloadSystem = "${nodes.webserver.config.system.build.toplevel}/fine-tune/child-2";
reloadRestartSystem = "${nodes.webserver.config.system.build.toplevel}/fine-tune/child-3";
reloadWithErrorsSystem = "${nodes.webserver.config.system.build.toplevel}/fine-tune/child-4";
in ''
url = "http://localhost/index.html"
@@ -110,5 +116,17 @@ import ./make-test-python.nix ({ pkgs, ... }: {
)
webserver.wait_for_unit("nginx")
webserver.succeed("journalctl -u nginx | grep -q -i stopped")
with subtest("nixos-rebuild --switch should fail when there are configuration errors"):
webserver.fail(
"${reloadWithErrorsSystem}/bin/switch-to-configuration test >&2"
)
webserver.succeed("[[ $(systemctl is-failed nginx-config-reload) == failed ]]")
webserver.succeed("[[ $(systemctl is-failed nginx) == active ]]")
# just to make sure operation is idempotent. During development I had a situation
# when first time it shows error, but stops showing it on subsequent rebuilds
webserver.fail(
"${reloadWithErrorsSystem}/bin/switch-to-configuration test >&2"
)
'';
})
4 changes: 2 additions & 2 deletions pkgs/applications/editors/texmaker/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

mkDerivation rec {
pname = "texmaker";
version = "5.0.3";
version = "5.0.4";

src = fetchurl {
url = "http://www.xm1math.net/texmaker/${pname}-${version}.tar.bz2";
sha256 = "0vrj9w5lk3vf6138n5bz8phmy3xp5kv4dq1rgirghcf4hbxdyx30";
sha256 = "1qnh5g8zkjpjmw2l8spcynpfgs3wpcfcla5ms2kkgvkbdlzspqqx";
};

buildInputs = [ qtbase qtscript poppler zlib ];
4 changes: 2 additions & 2 deletions pkgs/applications/networking/protonmail-bridge/default.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
, libsecret, libGL, libpulseaudio, glib, wrapQtAppsHook, mkDerivation }:

let
version = "1.2.2-1";
version = "1.2.3-1";

description = ''
An application that runs on your computer in the background and seamlessly encrypts
@@ -16,7 +16,7 @@ in mkDerivation {

src = fetchurl {
url = "https://protonmail.com/download/protonmail-bridge_${version}_amd64.deb";
sha256 = "16hfa07wdqcns79395wjdglg2cjyblqgz1hx8rl15qm7n5f24ckl";
sha256 = "032ggk9fvd19fbsqkzwzwh0hpyg8gpkrin71di7zsx6ias5innw1";
};

sourceRoot = ".";
4 changes: 2 additions & 2 deletions pkgs/development/libraries/unicorn-emu/default.nix
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
};

configurePhase = '' patchShebangs make.sh '';
buildPhase = '' ./make.sh '';
buildPhase = '' ./make.sh '' + stdenv.lib.optionalString stdenv.isDarwin "macos-universal-no";
installPhase = '' env PREFIX=$out ./make.sh install '';

nativeBuildInputs = [ pkgconfig python ];
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
description = "Lightweight multi-platform CPU emulator library";
homepage = "http://www.unicorn-engine.org";
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
};
}
22 changes: 11 additions & 11 deletions pkgs/development/python-modules/unicorn/default.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{ stdenv, buildPackages, buildPythonPackage, fetchPypi }:
{ stdenv, buildPythonPackage, setuptools, unicorn-emu }:

buildPythonPackage rec {
pname = "unicorn";
version = "1.0.1";
version = stdenv.lib.getVersion unicorn-emu;

src = fetchPypi {
inherit pname version;
sha256 = "0a5b4vh734b3wfkgapzzf8x18rimpmzvwwkly56da84n27wfw9bg";
};
src = unicorn-emu.src;
sourceRoot = "unicorn-${version}/bindings/python";

# needs python2 at build time
PYTHON=buildPackages.python2.interpreter;
prePatch = ''
ln -s ${unicorn-emu}/lib/libunicorn${stdenv.targetPlatform.extensions.sharedLibrary} prebuilt/
ln -s ${unicorn-emu}/lib/libunicorn.a prebuilt/
'';

setupPyBuildFlags = [ "--plat-name" "linux" ];
propagatedBuildInputs = [ setuptools ];

meta = with stdenv.lib; {
description = "Unicorn CPU emulator engine";
description = "Python bindings for Unicorn CPU emulator engine";
homepage = "http://www.unicorn-engine.org/";
license = [ licenses.gpl2 ];
maintainers = [ maintainers.bennofs ];
maintainers = with maintainers; [ bennofs ris ];
};
}
15 changes: 9 additions & 6 deletions pkgs/tools/networking/zerotierone/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, openssl, lzo, zlib, iproute, which, ronn }:
{ stdenv, buildPackages, fetchFromGitHub, openssl, lzo, zlib, iproute, ronn }:

stdenv.mkDerivation rec {
pname = "zerotierone";
@@ -20,11 +20,14 @@ stdenv.mkDerivation rec {
patchShebangs ./doc/build.sh
substituteInPlace ./doc/build.sh \
--replace '/usr/bin/ronn' '${ronn}/bin/ronn' \
--replace 'ronn -r' '${ronn}/bin/ronn -r'
--replace '/usr/bin/ronn' '${buildPackages.ronn}/bin/ronn' \
'';

buildInputs = [ openssl lzo zlib iproute which ronn ];

nativeBuildInputs = [ ronn ];
buildInputs = [ openssl lzo zlib iproute ];

enableParallelBuilding = true;

installPhase = ''
install -Dt "$out/bin/" zerotier-one
@@ -43,7 +46,7 @@ stdenv.mkDerivation rec {
description = "Create flat virtual Ethernet networks of almost unlimited size";
homepage = https://www.zerotier.com;
license = licenses.bsl11;
maintainers = with maintainers; [ sjmackenzie zimbatm ehmry obadz ];
platforms = platforms.x86_64 ++ platforms.aarch64;
maintainers = with maintainers; [ sjmackenzie zimbatm ehmry obadz danielfullmer ];
platforms = with platforms; x86_64 ++ aarch64 ++ arm;
};
}