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: 57614a9ccd91
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: b780aefc621d
Choose a head ref
  • 8 commits
  • 7 files changed
  • 4 contributors

Commits on Mar 6, 2020

  1. python3Packages.django_compat: fix tests and re-enable

    (cherry picked from commit 75087d8)
    Signed-off-by: Lancelot SIX <lsix@lancelotsix.com>
    lsix committed Mar 6, 2020

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    grahamc Graham Christensen
    Copy the full SHA
    8a526e4 View commit details
  2. python3akcages.django_compat: improve test fix

    (cherry picked from commit e8d5bdb)
    Signed-off-by: Lancelot SIX <lsix@lancelotsix.com>
    lsix committed Mar 6, 2020
    Copy the full SHA
    6ec1e63 View commit details
  3. python3Pakcages.django_compat: fix

    (cherry picked from commit df15563)
    Signed-off-by: Lancelot SIX <lsix@lancelotsix.com>
    lsix committed Mar 6, 2020
    Copy the full SHA
    06652b2 View commit details
  4. nixos/wireguard: Fix typo in error message

    generatePrivateKey -> generatePrivateKeyFile
    
    (cherry picked from commit b19c485)
    Signed-off-by: Lancelot SIX <lsix@lancelotsix.com>
    atlaua authored and lsix committed Mar 6, 2020
    Copy the full SHA
    1818155 View commit details
  5. libreswan: 3.29 -> 3.30

    (cherry picked from commit f4b1d11)
    r-ryantm authored and lsix committed Mar 6, 2020
    Copy the full SHA
    9b9106b View commit details
  6. libreswan: 3.30 -> 3.31

    (cherry picked from commit bce33c5)
    r-ryantm authored and lsix committed Mar 6, 2020
    Copy the full SHA
    df5c76b View commit details
  7. riot-web: 1.5.10 -> 1.5.12

    (cherry picked from commit 1884821)
    pacien authored and Ma27 committed Mar 6, 2020
    Copy the full SHA
    44d322f View commit details
  8. riot-desktop: 1.5.10 -> 1.5.12

    (cherry picked from commit abc58dc)
    pacien authored and Ma27 committed Mar 6, 2020
    Copy the full SHA
    b780aef View commit details
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/wireguard.nix
Original file line number Diff line number Diff line change
@@ -428,7 +428,7 @@ in
++ (attrValues (
mapAttrs (name: value: {
assertion = value.generatePrivateKeyFile -> (value.privateKey == null);
message = "networking.wireguard.interfaces.${name}.generatePrivateKey must not be set if networking.wireguard.interfaces.${name}.privateKey is set.";
message = "networking.wireguard.interfaces.${name}.generatePrivateKeyFile must not be set if networking.wireguard.interfaces.${name}.privateKey is set.";
}) cfg.interfaces))
++ map ({ interfaceName, peer, ... }: {
assertion = (peer.presharedKey == null) || (peer.presharedKeyFile == null);
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
"name": "riot-web",
"productName": "Riot",
"main": "src/electron-main.js",
"version": "1.5.9",
"version": "1.5.12",
"description": "A feature-rich client for Matrix.org",
"author": "New Vector Ltd.",
"dependencies": {
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{ pkgs, stdenv, fetchFromGitHub, makeWrapper, makeDesktopItem, electron_5, riot-web, mkYarnPackage }:
{ pkgs, stdenv, fetchFromGitHub, makeWrapper, makeDesktopItem, electron_7, riot-web, mkYarnPackage }:

# Notes for maintainers:
# * versions of `riot-web` and `riot-desktop` should be kept in sync.
# * the Yarn dependency expression must be updated with `./update-riot-desktop.sh <git release tag>`

let
executableName = "riot-desktop";
version = "1.5.9";
version = "1.5.12";
riot-web-src = fetchFromGitHub {
owner = "vector-im";
repo = "riot-web";
rev = "v${version}";
sha256 = "13bskp8nj1h44y7x4dibnfa8sdnzl744x4xckcw5lxnlkccfr69m";
sha256 = "1qz3n2dlklhbi6rbhv2v769xbr4rcp9s6pm2cc9r33ak6axn4aym";
};
electron = electron_7;

in mkYarnPackage rec {
name = "riot-desktop-${version}";
@@ -45,7 +46,7 @@ in mkYarnPackage rec {
ln -s "${desktopItem}/share/applications" "$out/share/applications"
# executable wrapper
makeWrapper '${electron_5}/bin/electron' "$out/bin/${executableName}" \
makeWrapper '${electron}/bin/electron' "$out/bin/${executableName}" \
--add-flags "$out/share/riot/electron"
'';

@@ -78,6 +79,6 @@ in mkYarnPackage rec {
homepage = https://about.riot.im/;
license = licenses.asl20;
maintainers = with maintainers; [ pacien worldofpeace ];
inherit (electron_5.meta) platforms;
inherit (electron.meta) platforms;
};
}
Original file line number Diff line number Diff line change
@@ -12,11 +12,11 @@ let

in stdenv.mkDerivation rec {
pname = "riot-web";
version = "1.5.10";
version = "1.5.12";

src = fetchurl {
url = "https://github.com/vector-im/riot-web/releases/download/v${version}/riot-v${version}.tar.gz";
sha256 = "1c11x8903p38c0f9k3ff4pnpb3n7hzs4pj6g65a4cvp6jgg1zfnn";
sha256 = "064zghrsl348ydzngwxhwjn0d0gkkf3nkzq03v5gad2f11qwnwb6";
};

installPhase = ''
4 changes: 4 additions & 0 deletions pkgs/development/python-modules/django-compat/default.nix
Original file line number Diff line number Diff line change
@@ -16,6 +16,10 @@ buildPythonPackage rec {
sha256 = "1pr6v38ahrsvxlgmcx69s4b5q5082f44gzi4h3c32sccdc4pwqxp";
};

patches = [
./fix-tests.diff
];

checkPhase = ''
runHook preCheck
56 changes: 56 additions & 0 deletions pkgs/development/python-modules/django-compat/fix-tests.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
diff -ur a/compat/tests/settings.py b/compat/tests/settings.py
--- a/compat/tests/settings.py 2020-03-06 15:32:07.548482597 +0100
+++ b/compat/tests/settings.py 2020-03-06 22:19:25.422934249 +0100
@@ -16,11 +16,12 @@
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
+ 'django.contrib.messages',
'compat',
'compat.tests.test_app',
]

-MIDDLEWARE_CLASSES = (
+MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
@@ -43,6 +44,7 @@
'django.template.context_processors.i18n',
'django.template.context_processors.tz',
'django.template.context_processors.request',
+ 'django.contrib.messages.context_processors.messages',
],
'loaders': [
'django.template.loaders.filesystem.Loader',
diff -ur a/compat/tests/test_compat.py b/compat/tests/test_compat.py
--- a/compat/tests/test_compat.py 2020-03-06 15:32:07.548482597 +0100
+++ b/compat/tests/test_compat.py 2020-03-06 15:37:39.202835075 +0100
@@ -9,7 +9,7 @@
from django.core.serializers.json import DjangoJSONEncoder
from django.test import TestCase, SimpleTestCase
from django.test.client import RequestFactory
-from django.contrib.auth.views import logout
+from django.contrib.auth.views import auth_logout
try:
from django.urls import NoReverseMatch
except ImportError:
@@ -103,7 +103,7 @@
Tests that passing a view name to ``resolve_url`` will result in the
URL path mapping to that view name.
"""
- resolved_url = resolve_url(logout)
+ resolved_url = resolve_url(auth_logout)
self.assertEqual('/accounts/logout/', resolved_url)

'''
diff -ur a/compat/tests/urls.py b/compat/tests/urls.py
--- a/compat/tests/urls.py 2020-03-06 15:32:07.548482597 +0100
+++ b/compat/tests/urls.py 2020-03-06 15:34:25.962377799 +0100
@@ -2,5 +2,5 @@
from django.contrib.auth import views

urlpatterns = [
- url(r'^accounts/logout/$', views.logout, name='logout'),
+ url(r'^accounts/logout/$', views.auth_logout, name='logout'),
]
6 changes: 3 additions & 3 deletions pkgs/tools/networking/libreswan/default.nix
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@

let
optional = stdenv.lib.optional;
version = "3.29";
version = "3.31";
name = "libreswan-${version}";
binPath = stdenv.lib.makeBinPath [
bash iproute iptables procps coreutils gnused gawk nss.tools which python
@@ -22,7 +22,7 @@ stdenv.mkDerivation {

src = fetchurl {
url = "https://download.libreswan.org/${name}.tar.gz";
sha256 = "0gmbb1m5in5dvnbk1n31r8myrdankzvi6yk9gcqbcwijyih423nn";
sha256 = "1wxqsv11nqgfj5and5xzfgh6ayqvl47midcghd5ryynh60mp7naa";
};

# These flags were added to compile v3.18. Try to lift them when updating.
@@ -83,7 +83,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true;

meta = with stdenv.lib; {
homepage = https://libreswan.org;
homepage = "https://libreswan.org";
description = "A free software implementation of the VPN protocol based on IPSec and the Internet Key Exchange";
platforms = platforms.linux ++ platforms.darwin ++ platforms.freebsd;
license = licenses.gpl2;