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: a99ceffcb637
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: 41ba255e23c0
Choose a head ref
  • 17 commits
  • 16 files changed
  • 11 contributors

Commits on Jun 20, 2020

  1. Copy the full SHA
    433f227 View commit details
  2. nixos: add test for sslh

    symphorien committed Jun 20, 2020
    Copy the full SHA
    4593482 View commit details

Commits on Jun 21, 2020

  1. zziplib: convert back to autotools build

    The cmake support in the v0.13.x branch is not very good. It heavily
    relies on add_custom_command and is fragile.
    
    The specific problem we ran into is that the install phase would not
    create some of the symlinks on darwin. This breaks reverse
    dependencies (e.g. texlive).
    
    Fixes: 4f701dd ('zziplib: 0.13.69 → 0.13.71')
    veprbl committed Jun 21, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    veprbl Dmitry Kalinkin
    Copy the full SHA
    06e4bb1 View commit details

Commits on Jun 23, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    eadwu Edmund Wu
    Copy the full SHA
    12b0644 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    eadwu Edmund Wu
    Copy the full SHA
    ba09be4 View commit details
  3. Verified

    This commit was signed with the committer’s verified signature.
    eadwu Edmund Wu
    Copy the full SHA
    d1795bb View commit details
  4. buku: 4.3 -> 4.4

    eadwu committed Jun 23, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    eadwu Edmund Wu
    Copy the full SHA
    af36ff2 View commit details

Commits on Jun 24, 2020

  1. Copy the full SHA
    46f11f5 View commit details
  2. Copy the full SHA
    9b6a64a View commit details
  3. Merge pull request #91390 from eadwu/buku/4.4

    buku: 4.3 -> 4.4
    Ma27 authored Jun 24, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0c47a81 View commit details
  4. gns3-gui: Add the missing qt5Full runtime dependency

    qt5Full may not be installed on users' systems and the gns3-gui depends
    on it explicitly.
    Note: This also fixes e.g. "nix-shell -p gns3-gui --pure" (at the cost
    of an increased closure size).
    Atemu authored and primeos committed Jun 24, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    0eaec4d View commit details
  5. Merge pull request #91392 from thefloweringash/chromium

    chromium: 83.0.4103.106 -> 83.0.4103.116
    primeos authored Jun 24, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a7fa6f6 View commit details
  6. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a0c0a00 View commit details
  7. Merge pull request #91260 from veprbl/pr/zziplib_no_cmake

    zziplib: convert back to autotools build
    veprbl authored Jun 24, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a9e15a6 View commit details
  8. tdesktop: 2.1.12 -> 2.1.13

    primeos committed Jun 24, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    10b11fe View commit details
  9. Copy the full SHA
    b53777c View commit details
  10. Merge pull request #77982 from symphorien/sshl_ipv6

    nixos/sslh: make it possible (and the default) to listen on ipv6, plus regression test
    timokau authored Jun 24, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    41ba255 View commit details
18 changes: 13 additions & 5 deletions nixos/modules/services/networking/sslh.nix
Original file line number Diff line number Diff line change
@@ -15,7 +15,11 @@ let
listen:
(
{ host: "${cfg.listenAddress}"; port: "${toString cfg.port}"; }
${
concatMapStringsSep ",\n"
(addr: ''{ host: "${addr}"; port: "${toString cfg.port}"; }'')
cfg.listenAddresses
}
);
${cfg.appendConfig}
@@ -33,6 +37,10 @@ let
'';
in
{
imports = [
(mkRenamedOptionModule [ "services" "sslh" "listenAddress" ] [ "services" "sslh" "listenAddresses" ])
];

options = {
services.sslh = {
enable = mkEnableOption "sslh";
@@ -55,10 +63,10 @@ in
description = "Will the services behind sslh (Apache, sshd and so on) see the external IP and ports as if the external world connected directly to them";
};

listenAddress = mkOption {
type = types.str;
default = "0.0.0.0";
description = "Listening address or hostname.";
listenAddresses = mkOption {
type = types.coercedTo types.str singleton (types.listOf types.str);
default = [ "0.0.0.0" "[::]" ];
description = "Listening addresses or hostnames.";
};

port = mkOption {
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
@@ -307,6 +307,7 @@ in
spacecookie = handleTest ./spacecookie.nix {};
spike = handleTest ./spike.nix {};
sonarr = handleTest ./sonarr.nix {};
sslh = handleTest ./sslh.nix {};
strongswan-swanctl = handleTest ./strongswan-swanctl.nix {};
sudo = handleTest ./sudo.nix {};
switchTest = handleTest ./switch-test.nix {};
83 changes: 83 additions & 0 deletions nixos/tests/sslh.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
import ./make-test-python.nix {
name = "sslh";

nodes = {
server = { pkgs, lib, ... }: {
networking.firewall.allowedTCPPorts = [ 443 ];
networking.interfaces.eth1.ipv6.addresses = [
{
address = "fe00:aa:bb:cc::2";
prefixLength = 64;
}
];
# sslh is really slow when reverse dns does not work
networking.hosts = {
"fe00:aa:bb:cc::2" = [ "server" ];
"fe00:aa:bb:cc::1" = [ "client" ];
};
services.sslh = {
enable = true;
transparent = true;
appendConfig = ''
protocols:
(
{ name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; probe: "builtin"; },
{ name: "http"; host: "localhost"; port: "80"; probe: "builtin"; },
);
'';
};
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keyFiles = [ ./initrd-network-ssh/id_ed25519.pub ];
services.nginx = {
enable = true;
virtualHosts."localhost" = {
addSSL = false;
default = true;
root = pkgs.runCommand "testdir" {} ''
mkdir "$out"
echo hello world > "$out/index.html"
'';
};
};
};
client = { ... }: {
networking.interfaces.eth1.ipv6.addresses = [
{
address = "fe00:aa:bb:cc::1";
prefixLength = 64;
}
];
networking.hosts."fe00:aa:bb:cc::2" = [ "server" ];
environment.etc.sshKey = {
source = ./initrd-network-ssh/id_ed25519; # dont use this anywhere else
mode = "0600";
};
};
};

testScript = ''
start_all()
server.wait_for_unit("sslh.service")
server.wait_for_unit("nginx.service")
server.wait_for_unit("sshd.service")
server.wait_for_open_port(80)
server.wait_for_open_port(443)
server.wait_for_open_port(22)
for arg in ["-6", "-4"]:
client.wait_until_succeeds(f"ping {arg} -c1 server")
# check that ssh through sslh works
client.succeed(
f"ssh {arg} -p 443 -i /etc/sshKey -o StrictHostKeyChecking=accept-new server 'echo $SSH_CONNECTION > /tmp/foo{arg}'"
)
# check that 1/ the above ssh command had an effect 2/ transparent proxying really works
ip = "fe00:aa:bb:cc::1" if arg == "-6" else "192.168.1."
server.succeed(f"grep '{ip}' /tmp/foo{arg}")
# check that http through sslh works
assert client.succeed(f"curl {arg} http://server:443").strip() == "hello world"
'';
}
46 changes: 46 additions & 0 deletions pkgs/applications/audio/tuijam/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ buildPythonApplication
, fetchFromGitHub
, lib
, python3Packages
, youtube-dl
}:

buildPythonApplication rec {
pname = "tuijam";
version = "unstable-2020-06-05";

src = fetchFromGitHub {
owner = "cfangmeier";
repo = pname;
rev = "7baec6f6e80ee90da0d0363b430dd7d5695ff03b";
sha256 = "1l0s88jvj99jkxnczw5nfj78m8vihh29g815n4mg9jblad23mgx5";
};

buildInputs = [ python3Packages.Babel ];

# the package has no tests
doCheck = false;

propagatedBuildInputs = with python3Packages; [
gmusicapi
google_api_python_client
mpv
pydbus
pygobject3
pyyaml
requests
rsa
urwid
];

meta = with lib; {
description = "A fancy TUI client for Google Play Music";
longDescription = ''
TUIJam seeks to make a simple, attractive, terminal-based interface to
listening to music for Google Play Music All-Access subscribers.
'';
homepage = "https://github.com/cfangmeier/tuijam";
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
};
}
5 changes: 3 additions & 2 deletions pkgs/applications/misc/buku/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{ stdenv, python3, fetchFromGitHub }:

with python3.pkgs; buildPythonApplication rec {
version = "4.3";
version = "4.4";
pname = "buku";

src = fetchFromGitHub {
owner = "jarun";
repo = "buku";
rev = "v${version}";
sha256 = "1cq508ymak3g5fhi1n4bdiiqkc86s2l3k4dvzw842vv2x0441cac";
sha256 = "10r5f1n0vcxxmqqqsgmlvibwg1xffijrr2id6r140rgiyhprz556";
};

checkInputs = [
@@ -38,6 +38,7 @@ with python3.pkgs; buildPythonApplication rec {
click
html5lib
vcrpy
toml
];

postPatch = ''
18 changes: 9 additions & 9 deletions pkgs/applications/networking/browsers/chromium/upstream-info.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# This file is autogenerated from update.sh in the same directory.
{
beta = {
sha256 = "0wsqxq8xxcafmjxsjkagysrcbr6qryiyqn6m3ysp256aam7z3d88";
sha256bin64 = "03jff1sdv05hbn37cw0ij0r4rils0q11lnnhxg52igg633jzwyc1";
version = "84.0.4147.45";
sha256 = "1s49qxg0gfmhm1lf5big6hprral21dbzjx0f1cp3xfvag9y61i7h";
sha256bin64 = "1sjvi3qmpwpr51442324a853k6s0k59k4809k8j5sjv7h6arw0sm";
version = "84.0.4147.56";
};
dev = {
sha256 = "16rmzyzjmxmhmr5yqbzqbwf5sq94iqcwlm04fkafiwcycd17nyhs";
sha256bin64 = "0wjmc1wdmwiq9d1f5gk4c9jkj1p116kaz9nb0hvhjf01iv07xl2m";
version = "85.0.4168.2";
sha256 = "1gxa0jg7xff87z7wvllp84a3ii1ypgy4vfzgxs4k7kzg5x0412vi";
sha256bin64 = "0swmn37rmvjvvdcrd002qg1wcvna06y14s3kx34bfr4zxhqk3lby";
version = "85.0.4173.0";
};
stable = {
sha256 = "0bvy17ymlih87n4ymnzvyn0m34ghmr1yasvy7gxv02qbw6i57lfg";
sha256bin64 = "00hjr5y0cczs6h2pxrigpmjiv24456948v32q7mr7x5ysr5kxpn6";
version = "83.0.4103.106";
sha256 = "1hravbi1lazmab2mih465alfzji1kzy38zya1visbwz9zs6pw35v";
sha256bin64 = "1ggyv2b50sclnqph0r40lb8p9h3pq9aq4fj1wdszhwc4rb0cj746";
version = "83.0.4103.116";
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/networking/gns3/gui.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{ stable, branch, version, sha256Hash, mkOverride, commonOverrides }:

{ lib, stdenv, python3, fetchFromGitHub }:
{ lib, stdenv, python3, pkgs, fetchFromGitHub }:

let
# TODO: This package requires qt5Full to launch
defaultOverrides = commonOverrides ++ [
(mkOverride "jsonschema" "3.2.0"
"0ykr61yiiizgvm3bzipa3l73rvj49wmrybbfwhvpgk3pscl5pa68")
@@ -27,6 +26,7 @@ in python.pkgs.buildPythonPackage rec {
raven psutil jsonschema # tox for check
# Runtime dependencies
sip (pyqt5.override { withWebSockets = true; }) distro setuptools
pkgs.qt5Full
];

doCheck = false; # Failing
Original file line number Diff line number Diff line change
@@ -19,12 +19,12 @@ with lib;

mkDerivation rec {
pname = "telegram-desktop";
version = "2.1.12";
version = "2.1.13";

# Telegram-Desktop with submodules
src = fetchurl {
url = "https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz";
sha256 = "1b9kgib9dxjcfnw2zdbqd12ikcswkl35nwy9m47x5jvy3glxg6m8";
sha256 = "0mq3f7faxn1hfkhv5n37y5iajjnm38s2in631046m0q7c4w3lrfi";
};

postPatch = ''
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+alpha2";
sha256 = "131ixp5kkgk9y42vrprhc2x0gpxhkapmdmb26pwkyl58vrbr8xqg";
patch_version = "0+alpha3";
sha256 = "0c2g8ncq15nx9pdl14hnsc9342j80s7i1bsyiw98cvgic5miyw9b";
}
16 changes: 2 additions & 14 deletions pkgs/development/libraries/zziplib/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ stdenv
, cmake
, perl
, pkg-config
, ninja
, fetchFromGitHub
, fetchpatch
, zip
@@ -23,12 +22,6 @@ stdenv.mkDerivation rec {
};

patches = [
# Fix ninja parsing
(fetchpatch {
url = "https://github.com/gdraheim/zziplib/commit/75e22f3c365b62acbad8d8645d5404242800dfba.patch";
sha256 = "IB0am3K0x4+Ug1CKvowTtkS8JD6zHJJ247A7guJOw80=";
})

# Install man pages
(fetchpatch {
url = "https://github.com/gdraheim/zziplib/commit/5583ccc7a247ee27556ede344e93d3ac1dc72e9b.patch";
@@ -44,9 +37,8 @@ stdenv.mkDerivation rec {
];

nativeBuildInputs = [
cmake
perl
pkg-config
ninja # make fails, unable to find test2.zip
zip
python3
xmlto
@@ -60,10 +52,6 @@ stdenv.mkDerivation rec {
unzip
];

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
];

# tests are broken (https://github.com/gdraheim/zziplib/issues/20),
# and test/zziptests.py requires network access
# (https://github.com/gdraheim/zziplib/issues/24)
15 changes: 12 additions & 3 deletions pkgs/development/python-modules/flask-admin/default.nix
Original file line number Diff line number Diff line change
@@ -8,12 +8,16 @@
, wtf-peewee
, sqlalchemy
, sqlalchemy-citext
, sqlalchemy-utils
, flask-mongoengine
, flask_sqlalchemy
, flask-babelex
, shapely
, geoalchemy2
, psycopg2
, arrow
, colour
, email_validator
, flask
, wtforms
, isPy27
@@ -22,12 +26,12 @@

buildPythonPackage rec {
pname = "flask-admin";
version = "1.5.3";
version = "1.5.6";

src = fetchPypi {
pname = "Flask-Admin";
inherit version;
sha256 = "ca0be6ec11a6913b73f656c65c444ae5be416c57c75638dd3199376ce6bc7422";
sha256 = "1f31vzc0p2xni5mh1wvjk9jxf4ddlx2fj4r0f3vv2n9db3c63iv8";
};

checkInputs = [
@@ -38,12 +42,16 @@ buildPythonPackage rec {
wtf-peewee
sqlalchemy
sqlalchemy-citext
sqlalchemy-utils
flask-mongoengine
flask_sqlalchemy
flask-babelex
shapely
geoalchemy2
psycopg2
arrow
colour
email_validator
];

propagatedBuildInputs = [
@@ -52,13 +60,14 @@ buildPythonPackage rec {
] ++ lib.optionals isPy27 [ enum34 ];

checkPhase = ''
# disable tests that require mongodb, postresql
# disable tests that require mongodb, postresql, or network
nosetests \
-e "mongoengine" \
-e "pymongo" \
-e "test_form_upload" \
-e "test_postgres" \
-e "geoa" \
-e "test_ajax_fk" \
flask_admin/tests
'';

Loading