From 29e6e27d4f02b9d3ccf58900427fca793faab68f Mon Sep 17 00:00:00 2001 From: Timothy Klim Date: Fri, 28 May 2021 10:26:15 +0700 Subject: [PATCH 01/30] nvidia-x11: 465.27 -> 465.31 --- pkgs/os-specific/linux/nvidia-x11/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/nvidia-x11/default.nix b/pkgs/os-specific/linux/nvidia-x11/default.nix index 92f6bd90625..8fc439aeb3c 100644 --- a/pkgs/os-specific/linux/nvidia-x11/default.nix +++ b/pkgs/os-specific/linux/nvidia-x11/default.nix @@ -27,10 +27,10 @@ rec { else legacy_390; beta = generic { - version = "465.27"; - sha256_64bit = "fmn/qFve5qqqa26n4dsoOwGZ+ash5Bon3JBI8kncMXE="; - settingsSha256 = "3BFLCx0dcrQY4Mv1joMsiVPwTPyufgsNT5pFgp1Mk/A="; - persistencedSha256 = "HtoFGTiBnAeQyRTOMlve5poaQh63LHRD+DHJxZO+c90="; + version = "465.31"; + sha256_64bit = "YAjQAckzWGMEnDOOe6arlkBvT3rzFCeqjBjG0ncnLNo="; + settingsSha256 = "33zHXxfG/t6REbHqhYjzBhtuus7jP34r2wK90sBT9vE="; + persistencedSha256 = "1r/QqjOxg6836mQ46hNsPscKliNAtpN9xW6M++02woY="; }; # Vulkan developer beta driver From 1629efe28644e4c2eaa7cdb9ba68b70d350b67a9 Mon Sep 17 00:00:00 2001 From: Andrew Childs Date: Thu, 27 May 2021 17:13:36 +0900 Subject: [PATCH 02/30] (darwin) openjdk8: 8.0.202 -> 8.0.292 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also adds aarch64-darwin support (cherry picked from commit 00090e0fa438010344e76766aad7d8852940afa6) Signed-off-by: Domen Kožar --- .../compilers/openjdk/darwin/8.nix | 34 ++++++++++++++----- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/pkgs/development/compilers/openjdk/darwin/8.nix b/pkgs/development/compilers/openjdk/darwin/8.nix index a5cd15817e9..0941aa728ea 100644 --- a/pkgs/development/compilers/openjdk/darwin/8.nix +++ b/pkgs/development/compilers/openjdk/darwin/8.nix @@ -1,25 +1,43 @@ -{ lib, stdenv, fetchurl, unzip, setJavaClassPath, freetype }: +{ lib, stdenv, fetchurl, unzip, setJavaClassPath }: let + # Details from https://www.azul.com/downloads/?version=java-8-lts&os=macos&package=jdk + # Note that the latest build may differ by platform + dist = { + x86_64-darwin = { + arch = "x64"; + zuluVersion = "8.54.0.21"; + jdkVersion = "8.0.292"; + sha256 = "1pgl0bir4r5v349gkxk54k6v62w241q7vw4gjxhv2g6pfq6hv7in"; + }; + + aarch64-darwin = { + arch = "aarch64"; + zuluVersion = "8.54.0.21"; + jdkVersion = "8.0.292"; + sha256 = "05w89wfjlfbpqfjnv6wisxmaf13qb28b2223f9264jyx30qszw1c"; + }; + }."${stdenv.hostPlatform.system}"; + jce-policies = fetchurl { # Ugh, unversioned URLs... I hope this doesn't change often enough to cause pain before we move to a Darwin source build of OpenJDK! url = "http://cdn.azul.com/zcek/bin/ZuluJCEPolicies.zip"; sha256 = "0nk7m0lgcbsvldq2wbfni2pzq8h818523z912i7v8hdcij5s48c0"; }; - jdk = stdenv.mkDerivation { + jdk = stdenv.mkDerivation rec { # @hlolli: Later version than 1.8.0_202 throws error when building jvmci. # dyld: lazy symbol binding failed: Symbol not found: _JVM_BeforeHalt # Referenced from: ../libjava.dylib Expected in: .../libjvm.dylib - name = "zulu1.8.0_202-8.36.0.1"; + pname = "zulu${dist.zuluVersion}-ca-jdk"; + version = dist.jdkVersion; src = fetchurl { - url = "https://cdn.azul.com/zulu/bin/zulu8.36.0.1-ca-jdk8.0.202-macosx_x64.zip"; - sha256 = "0s92l1wlf02vjx8dvrsla2kq7qwxnmgh325b38mgqy872016jm9p"; - curlOpts = "-H Referer:https://www.azul.com/downloads/zulu/zulu-linux/"; + url = "https://cdn.azul.com/zulu/bin/zulu${dist.zuluVersion}-ca-jdk${dist.jdkVersion}-macosx_${dist.arch}.tar.gz"; + inherit (dist) sha256; + curlOpts = "-H Referer:https://www.azul.com/downloads/zulu/"; }; nativeBuildInputs = [ unzip ]; - buildInputs = [ freetype ]; installPhase = '' mkdir -p $out @@ -44,8 +62,6 @@ let mkdir -p $out/nix-support printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs - install_name_tool -change /usr/X11/lib/libfreetype.6.dylib ${freetype}/lib/libfreetype.6.dylib $out/jre/lib/libfontmanager.dylib - # Set JAVA_HOME automatically. cat <> $out/nix-support/setup-hook if [ -z "\''${JAVA_HOME-}" ]; then export JAVA_HOME=$out; fi From a5b2f798eb1e7333b4686b233143f3a481b619af Mon Sep 17 00:00:00 2001 From: Andrew Childs Date: Thu, 27 May 2021 16:40:54 +0900 Subject: [PATCH 03/30] (darwin) openjdk11: 11.0.9 -> 11.0.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also adds aarch64-darwin support (cherry picked from commit 1b006e331cd4f9ef21c2ed81d095f2e2dd502cc0) Signed-off-by: Domen Kožar --- .../compilers/openjdk/darwin/11.nix | 32 ++++++++++++++----- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/pkgs/development/compilers/openjdk/darwin/11.nix b/pkgs/development/compilers/openjdk/darwin/11.nix index 6bcd79b274b..5dd979e5521 100644 --- a/pkgs/development/compilers/openjdk/darwin/11.nix +++ b/pkgs/development/compilers/openjdk/darwin/11.nix @@ -1,5 +1,23 @@ -{ lib, stdenv, fetchurl, unzip, setJavaClassPath, freetype }: +{ lib, stdenv, fetchurl, unzip, setJavaClassPath }: let + # Details from https://www.azul.com/downloads/?version=java-11-lts&os=macos&package=jdk + # Note that the latest build may differ by platform + dist = { + x86_64-darwin = { + arch = "x64"; + zuluVersion = "11.48.21"; + jdkVersion = "11.0.11"; + sha256 = "0v0n7h7i04pvna41wpdq2k9qiy70sbbqzqzvazfdvgm3gb22asw6"; + }; + + aarch64-darwin = { + arch = "aarch64"; + zuluVersion = "11.48.21"; + jdkVersion = "11.0.11"; + sha256 = "066whglrxx81c95grv2kxdbvyh32728ixhml2v44ildh549n4lhc"; + }; + }."${stdenv.hostPlatform.system}"; + jce-policies = fetchurl { # Ugh, unversioned URLs... I hope this doesn't change often enough to cause pain before we move to a Darwin source build of OpenJDK! url = "http://cdn.azul.com/zcek/bin/ZuluJCEPolicies.zip"; @@ -7,16 +25,16 @@ let }; jdk = stdenv.mkDerivation rec { - name = "zulu11.43.21-ca-jdk11.0.9"; + pname = "zulu${dist.zuluVersion}-ca-jdk"; + version = dist.jdkVersion; src = fetchurl { - url = "https://cdn.azul.com/zulu/bin/${name}-macosx_x64.tar.gz"; - sha256 = "1j19fb5mwdkfn6y8wfsnvxsz6wfpcab4xv439fqssxy520n6q4zs"; - curlOpts = "-H Referer:https://www.azul.com/downloads/zulu/zulu-mac/"; + url = "https://cdn.azul.com/zulu/bin/zulu${dist.zuluVersion}-ca-jdk${dist.jdkVersion}-macosx_${dist.arch}.tar.gz"; + inherit (dist) sha256; + curlOpts = "-H Referer:https://www.azul.com/downloads/zulu/"; }; nativeBuildInputs = [ unzip ]; - buildInputs = [ freetype ]; installPhase = '' mkdir -p $out @@ -41,8 +59,6 @@ let mkdir -p $out/nix-support printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs - install_name_tool -change /usr/X11/lib/libfreetype.6.dylib ${freetype}/lib/libfreetype.6.dylib $out/lib/libfontmanager.dylib - # Set JAVA_HOME automatically. cat <> $out/nix-support/setup-hook if [ -z "\''${JAVA_HOME-}" ]; then export JAVA_HOME=$out; fi From ccb99f68e5d13c4630eb6b5b56af542a06cbf2e7 Mon Sep 17 00:00:00 2001 From: Andrew Childs Date: Thu, 27 May 2021 17:18:42 +0900 Subject: [PATCH 04/30] (darwin) openjdk: 16.0.0 -> 16.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also adds aarch64-darwin support (cherry picked from commit 4288adb8f66d9bb80a28f281ade07e4ca529bf31) Signed-off-by: Domen Kožar --- .../compilers/openjdk/darwin/default.nix | 31 ++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/pkgs/development/compilers/openjdk/darwin/default.nix b/pkgs/development/compilers/openjdk/darwin/default.nix index 731ff4d56de..509d1ab5522 100644 --- a/pkgs/development/compilers/openjdk/darwin/default.nix +++ b/pkgs/development/compilers/openjdk/darwin/default.nix @@ -1,5 +1,23 @@ -{ lib, stdenv, fetchurl, unzip, setJavaClassPath, freetype }: +{ lib, stdenv, fetchurl, unzip, setJavaClassPath }: let + # Details from https://www.azul.com/downloads/?version=java-16-sts&os=macos&package=jdk + # Note that the latest build may differ by platform + dist = { + x86_64-darwin = { + arch = "x64"; + zuluVersion = "16.30.15"; + jdkVersion = "16.0.1"; + sha256 = "1jihn125dmxr9y5h9jq89zywm3z6rbwv5q7msfzsf2wzrr13jh0z"; + }; + + aarch64-darwin = { + arch = "aarch64"; + zuluVersion = "16.30.19"; + jdkVersion = "16.0.1"; + sha256 = "1i0bcjx3acb5dhslf6cabdcnd6mrz9728vxw9hb4al5y3f5fll4w"; + }; + }."${stdenv.hostPlatform.system}"; + jce-policies = fetchurl { # Ugh, unversioned URLs... I hope this doesn't change often enough to cause pain before we move to a Darwin source build of OpenJDK! url = "http://cdn.azul.com/zcek/bin/ZuluJCEPolicies.zip"; @@ -7,17 +25,16 @@ let }; jdk = stdenv.mkDerivation rec { - pname = "zulu16.28.11-ca-jdk"; - version = "16.0.0"; + pname = "zulu${dist.zuluVersion}-ca-jdk"; + version = dist.jdkVersion; src = fetchurl { - url = "https://cdn.azul.com/zulu/bin/${pname}${version}-macosx_x64.tar.gz"; - sha256 = "6d47ef22dc56ce1f5a102ed39e21d9a97320f0bb786818e2c686393109d79bc5"; + url = "https://cdn.azul.com/zulu/bin/zulu${dist.zuluVersion}-ca-jdk${dist.jdkVersion}-macosx_${dist.arch}.tar.gz"; + inherit (dist) sha256; curlOpts = "-H Referer:https://www.azul.com/downloads/zulu/"; }; nativeBuildInputs = [ unzip ]; - buildInputs = [ freetype ]; installPhase = '' mkdir -p $out @@ -42,8 +59,6 @@ let mkdir -p $out/nix-support printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs - install_name_tool -change /usr/X11/lib/libfreetype.6.dylib ${freetype}/lib/libfreetype.6.dylib $out/lib/libfontmanager.dylib - # Set JAVA_HOME automatically. cat <> $out/nix-support/setup-hook if [ -z "\''${JAVA_HOME-}" ]; then export JAVA_HOME=$out; fi From 326eb72c9d083ece498c646d502b783f7ae521da Mon Sep 17 00:00:00 2001 From: be7a Date: Tue, 1 Jun 2021 13:11:59 +0200 Subject: [PATCH 05/30] maintainers: Add Bela Stoyan --- maintainers/maintainer-list.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index a0285a5e6e3..3dfc0c65a51 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -64,6 +64,16 @@ fingerprint = "F466 A548 AD3F C1F1 8C88 4576 8702 7528 B006 D66D"; }]; }; + _0xbe7a = { + email = "nix@be7a.de"; + name = "Bela Stoyan"; + github = "0xbe7a"; + githubId = 6232980; + keys = [{ + longkeyid = "rsa4096/0x6510870A77F49A99"; + fingerprint = "2536 9E86 1AA5 9EB7 4C47 B138 6510 870A 77F4 9A99"; + }]; + }; _1000101 = { email = "b1000101@pm.me"; github = "1000101"; From c48f92cb146ee0bee9d1547aa60870d2c8681cde Mon Sep 17 00:00:00 2001 From: Phillip Seeber Date: Tue, 1 Jun 2021 22:38:04 +0200 Subject: [PATCH 06/30] i-pi: init at 2.4.0 i-pi: better meta description, fixing license i-pi: pname lowercase --- .../python-modules/i-pi/default.nix | 41 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + pkgs/top-level/python-packages.nix | 2 + 3 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/i-pi/default.nix diff --git a/pkgs/development/python-modules/i-pi/default.nix b/pkgs/development/python-modules/i-pi/default.nix new file mode 100644 index 00000000000..5f031197978 --- /dev/null +++ b/pkgs/development/python-modules/i-pi/default.nix @@ -0,0 +1,41 @@ +{ buildPythonPackage, lib, fetchFromGitHub, gfortran +, makeWrapper, numpy, pytest, mock, pytest-mock +} : + +buildPythonPackage rec { + name = "i-pi"; + version = "2.4.0"; + + src = fetchFromGitHub { + owner = "i-pi"; + repo = "i-pi"; + rev = "v${version}"; + sha256 = "0d0ag57aa0fsqjwya27fyj8alimjvlxzgh6hxjqy1k4ap9h3n1cy"; + }; + + nativeBuildInputs = [ + gfortran + makeWrapper + ]; + + propagatedBuildInputs = [ numpy ]; + + checkInputs = [ + pytest + mock + pytest-mock + ]; + + postFixup = '' + wrapProgram $out/bin/i-pi \ + --set IPI_ROOT $out + ''; + + meta = with lib; { + description = "A universal force engine for ab initio and force field driven (path integral) molecular dynamics"; + license = with licenses; [ gpl3Only mit ]; + homepage = "http://ipi-code.org/"; + platforms = platforms.linux; + maintainers = [ maintainers.sheepforce ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 372daa630cc..e54008b8539 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5842,6 +5842,8 @@ in ipget = callPackage ../applications/networking/ipget { }; + i-pi = with python3Packages; toPythonApplication i-pi; + iptsd = callPackage ../applications/misc/iptsd { }; ipmitool = callPackage ../tools/system/ipmitool {}; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6d5de034b50..55f38219ce8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3406,6 +3406,8 @@ in { ipfshttpclient = callPackage ../development/python-modules/ipfshttpclient { }; + i-pi = callPackage ../development/python-modules/i-pi { }; + iptools = callPackage ../development/python-modules/iptools { }; ipy = callPackage ../development/python-modules/IPy { }; From 33e41895757891c84d739da2a60b340ab3ebb4e6 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 2 Jun 2021 04:20:00 +0000 Subject: [PATCH 07/30] ncspot: 0.7.2 -> 0.7.3 https://github.com/hrkfdn/ncspot/releases/tag/v0.7.3 --- pkgs/applications/audio/ncspot/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/audio/ncspot/default.nix b/pkgs/applications/audio/ncspot/default.nix index 416bdfb90d6..aa56c983558 100644 --- a/pkgs/applications/audio/ncspot/default.nix +++ b/pkgs/applications/audio/ncspot/default.nix @@ -14,16 +14,16 @@ let in rustPlatform.buildRustPackage rec { pname = "ncspot"; - version = "0.7.2"; + version = "0.7.3"; src = fetchFromGitHub { owner = "hrkfdn"; repo = "ncspot"; rev = "v${version}"; - sha256 = "0ww7ipyvcdphbkzjpvdqs1s3bqk3rj3jdy1n3bnk76csw9vgn2zi"; + sha256 = "0lfly3d8pag78pabmna4i6xjwzi65dx1mwfmsk7nx64brq3iypbq"; }; - cargoSha256 = "1mrjp5p3iryxzgg6ca9zjwm8n6w0ljs108ll0wkwgfih6rip7ba4"; + cargoSha256 = "0a6d41ll90fza6k3lixjqzwxim98q6zbkqa3zvxvs7q5ydzg8nsp"; cargoBuildFlags = [ "--no-default-features" "--features" "${lib.concatStringsSep "," features}" ]; From 0734f44abaca21fc243690e197ff43bd527999cf Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 2 Jun 2021 04:20:00 +0000 Subject: [PATCH 08/30] zeek: 4.0.1 -> 4.0.2 https://github.com/zeek/zeek/releases/tag/v4.0.2 --- pkgs/applications/networking/ids/zeek/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/ids/zeek/default.nix b/pkgs/applications/networking/ids/zeek/default.nix index 405304f74af..7ee55c45299 100644 --- a/pkgs/applications/networking/ids/zeek/default.nix +++ b/pkgs/applications/networking/ids/zeek/default.nix @@ -21,11 +21,11 @@ stdenv.mkDerivation rec { pname = "zeek"; - version = "4.0.1"; + version = "4.0.2"; src = fetchurl { url = "https://download.zeek.org/zeek-${version}.tar.gz"; - sha256 = "0ficl4i012gfv4mdbdclgvi6gyq338gw9gb6k58k1drw8c7qk6k5"; + sha256 = "15gxxgg7nmfmswlbxhvcp6alq5k9wpvrm5cwyf1qfd7xsfli61sm"; }; nativeBuildInputs = [ cmake flex bison file ]; From 2a4755e1d4be477f00ce6b068a2c45d8212b8ba4 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 11 Mar 2021 00:38:53 +0100 Subject: [PATCH 09/30] nixos/mailman: Fix mailman-settings.service configuration Without this change, mailman-settings.service is not guaranteed to complete before dependent services. This can lead to various errors like: mailman-web-setup.service: Changing to the requested working directory failed: No such file or directory --- nixos/modules/services/mail/mailman.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix index f75d6183c3e..831175d5625 100644 --- a/nixos/modules/services/mail/mailman.nix +++ b/nixos/modules/services/mail/mailman.nix @@ -333,6 +333,7 @@ in { before = [ "mailman.service" "mailman-web-setup.service" "mailman-uwsgi.service" "hyperkitty.service" ]; requiredBy = [ "mailman.service" "mailman-web-setup.service" "mailman-uwsgi.service" "hyperkitty.service" ]; path = with pkgs; [ jq ]; + serviceConfig.Type = "oneshot"; script = '' mailmanDir=/var/lib/mailman mailmanWebDir=/var/lib/mailman-web From 793616b5e65a4682491b28160b6c7aff5694decf Mon Sep 17 00:00:00 2001 From: be7a Date: Tue, 1 Jun 2021 13:26:59 +0200 Subject: [PATCH 10/30] pferd: init at 3.0.1 --- pkgs/tools/misc/pferd/default.nix | 32 +++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/tools/misc/pferd/default.nix diff --git a/pkgs/tools/misc/pferd/default.nix b/pkgs/tools/misc/pferd/default.nix new file mode 100644 index 00000000000..38d7355e946 --- /dev/null +++ b/pkgs/tools/misc/pferd/default.nix @@ -0,0 +1,32 @@ +{ lib +, python3Packages +, fetchFromGitHub +}: + +python3Packages.buildPythonApplication rec { + pname = "pferd"; + version = "3.0.1"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "Garmelon"; + repo = "PFERD"; + rev = "v${version}"; + sha256 = "1s0z8yajy3n194pnlqb48hy2n5qvhkzwbpksrdyds79vfq0b9rdl"; + }; + + propagatedBuildInputs = with python3Packages; [ + aiohttp + beautifulsoup4 + rich + keyring + certifi + ]; + + meta = with lib; { + homepage = "https://github.com/Garmelon/PFERD"; + description = "Tool for downloading course-related files from ILIAS"; + license = licenses.mit; + maintainers = with maintainers; [ _0xbe7a ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 519ed2700ad..8d5e194be1b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -860,6 +860,8 @@ in metapixel = callPackage ../tools/graphics/metapixel { }; + pferd = callPackage ../tools/misc/pferd {}; + quich = callPackage ../tools/misc/quich { } ; tfk8s = callPackage ../tools/misc/tfk8s { }; From 5a589b5ba8941d734e9c3aebbf2be2f50d7c32a5 Mon Sep 17 00:00:00 2001 From: Patrick Hilhorst Date: Wed, 2 Jun 2021 14:19:08 +0200 Subject: [PATCH 11/30] nixos/tests/test-driver: add shell_interact --- nixos/lib/test-driver/test-driver.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/lib/test-driver/test-driver.py b/nixos/lib/test-driver/test-driver.py index e216e566f28..90ae2e558ef 100644 --- a/nixos/lib/test-driver/test-driver.py +++ b/nixos/lib/test-driver/test-driver.py @@ -21,6 +21,7 @@ import shutil import socket import subprocess import sys +import telnetlib import tempfile import time import traceback @@ -455,6 +456,15 @@ class Machine: return (status_code, output) output += chunk + def shell_interact(self) -> None: + """Allows you to interact with the guest shell + + Should only be used during testing, not in the production test.""" + self.connect() + telnet = telnetlib.Telnet() + telnet.sock = self.shell # type: ignore + telnet.interact() + def succeed(self, *commands: str) -> str: """Execute each command and check that it succeeds.""" output = "" From 8bda4a282de9b20b5b72aeaf1f987677936f53b7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 1 Jun 2021 17:15:34 +0200 Subject: [PATCH 12/30] python3Packages.oscrypto: 1.1.1 -> 1.2.1 --- .../python-modules/oscrypto/default.nix | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/oscrypto/default.nix b/pkgs/development/python-modules/oscrypto/default.nix index 6012398db98..cc89f312480 100644 --- a/pkgs/development/python-modules/oscrypto/default.nix +++ b/pkgs/development/python-modules/oscrypto/default.nix @@ -1,25 +1,30 @@ -{ buildPythonPackage +{ lib +, buildPythonPackage , asn1crypto , fetchPypi -, lib , openssl }: buildPythonPackage rec { pname = "oscrypto"; - version = "1.1.1"; + version = "1.2.1"; src = fetchPypi { inherit pname version; - sha256 = "1vlryamwr442w2av8f54ldhls8fqs6678fg60pqbrf5pjy74kg23"; + sha256 = "1546si2bdgkqnbvv4mw1hr4mhh6bq39d9z4wxgv1m7fq6miclb3x"; }; testSources = fetchPypi { inherit version; pname = "oscrypto_tests"; - sha256 = "1crndz647pqdd8148yn3n5l63xwr6qkwa1qarsz59nk3ip0dsyq5"; + sha256 = "1ha68dsrbx6mlra44x0n81vscn17pajbl4yg7cqkk7mq1zfmjwks"; }; + propagatedBuildInputs = [ + asn1crypto + openssl + ]; + preCheck = '' tar -xf ${testSources} mv oscrypto_tests-${version} tests @@ -28,14 +33,11 @@ buildPythonPackage rec { sed -e '/TLSTests/d' -e '/TrustListTests/d' -i tests/__init__.py ''; - propagatedBuildInputs = [ - asn1crypto - openssl - ]; + pythonImportsCheck = [ "oscrypto" ]; meta = with lib; { - description = "A compilation-free, always up-to-date encryption library for Python that works on Windows, OS X, Linux and BSD."; - homepage = "https://www.snowflake.com/"; + description = "Encryption library for Python"; + homepage = "https://github.com/wbond/oscrypto"; license = licenses.mit; }; } From bcc835feedbeb42909c82e661f4cacba404fb002 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 1 Jun 2021 17:17:06 +0200 Subject: [PATCH 13/30] python3Packages.minikerberos: 0.2.11 -> 0.2.14 --- pkgs/development/python-modules/minikerberos/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/minikerberos/default.nix b/pkgs/development/python-modules/minikerberos/default.nix index ee0812eacec..d1e0616cfb6 100644 --- a/pkgs/development/python-modules/minikerberos/default.nix +++ b/pkgs/development/python-modules/minikerberos/default.nix @@ -3,24 +3,27 @@ , asysocks , buildPythonPackage , fetchPypi +, oscrypto }: buildPythonPackage rec { pname = "minikerberos"; - version = "0.2.11"; + version = "0.2.14"; src = fetchPypi { inherit pname version; - sha256 = "sha256-OC+Cnk47GFzK1QaDEDxntRVrakpFiBuNelM/R5t/AUY="; + sha256 = "sha256-MND7r4Gkx9RnEMgEl62QXFYr1NEloihQ2HeU9hyhsx8="; }; propagatedBuildInputs = [ asn1crypto asysocks + oscrypto ]; # no tests are published: https://github.com/skelsec/minikerberos/pull/5 doCheck = false; + pythonImportsCheck = [ "minikerberos" ]; meta = with lib; { From 4215f9c9ec1fe9fe1bc41cfbded25f2c6607bcbf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 1 Jun 2021 17:19:39 +0200 Subject: [PATCH 14/30] python3Packages.aiosmb: 0.2.41 -> 0.2.44 --- pkgs/development/python-modules/aiosmb/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiosmb/default.nix b/pkgs/development/python-modules/aiosmb/default.nix index ce20341eae1..b9c968d63f5 100644 --- a/pkgs/development/python-modules/aiosmb/default.nix +++ b/pkgs/development/python-modules/aiosmb/default.nix @@ -14,12 +14,12 @@ buildPythonPackage rec { pname = "aiosmb"; - version = "0.2.41"; + version = "0.2.44"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-hiLLoFswh0rm5f5TsaX+zyRDkOIyzGXVO0M5J5d/gtQ="; + sha256 = "sha256-xNdrOO0BqV4sD6U39G2RXihDBBf516x8RLiqNLnZyWk="; }; propagatedBuildInputs = [ From 552be16fbfd5050063ae2d9db9b9d28ffa5d9bc6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 1 Jun 2021 17:56:34 +0200 Subject: [PATCH 15/30] python3Packages.msldap: 0.3.29 -> 0.3.30 --- pkgs/development/python-modules/msldap/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/msldap/default.nix b/pkgs/development/python-modules/msldap/default.nix index 12bfb7d7603..649276ef252 100644 --- a/pkgs/development/python-modules/msldap/default.nix +++ b/pkgs/development/python-modules/msldap/default.nix @@ -12,11 +12,11 @@ buildPythonPackage rec { pname = "msldap"; - version = "0.3.29"; + version = "0.3.30"; src = fetchPypi { inherit pname version; - sha256 = "0khwyhylh28qvz35pdckr5fdd82zsybv0xmzlzjbgcv99cyy1a94"; + sha256 = "sha256-fX+W1Bq4F0/6DyxWeA6zvoswFQCdDpSk29g7nq1cYYE="; }; propagatedBuildInputs = [ From 9469433e341f7337308468bb4b9ccfff84b2951b Mon Sep 17 00:00:00 2001 From: Patrick Hilhorst Date: Wed, 2 Jun 2021 14:49:59 +0200 Subject: [PATCH 16/30] nixos/tests/test-driver: document shell_interact --- nixos/doc/manual/development/writing-nixos-tests.xml | 11 +++++++++++ nixos/lib/test-driver/test-driver.py | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/nixos/doc/manual/development/writing-nixos-tests.xml b/nixos/doc/manual/development/writing-nixos-tests.xml index 5a95436915f..c29f2b01064 100644 --- a/nixos/doc/manual/development/writing-nixos-tests.xml +++ b/nixos/doc/manual/development/writing-nixos-tests.xml @@ -436,6 +436,17 @@ machine.systemctl("list-jobs --no-pager", "any-user") # spawns a shell for `any- + + + shell_interact + + + + Allows you to directly interact with the guest shell. + This should only be used during test development, not in production tests. + + + diff --git a/nixos/lib/test-driver/test-driver.py b/nixos/lib/test-driver/test-driver.py index 90ae2e558ef..6669c914f76 100644 --- a/nixos/lib/test-driver/test-driver.py +++ b/nixos/lib/test-driver/test-driver.py @@ -459,7 +459,7 @@ class Machine: def shell_interact(self) -> None: """Allows you to interact with the guest shell - Should only be used during testing, not in the production test.""" + Should only be used during test development, not in the production test.""" self.connect() telnet = telnetlib.Telnet() telnet.sock = self.shell # type: ignore From 287144273162acd869f514f7770a3daae4649d37 Mon Sep 17 00:00:00 2001 From: Patrick Hilhorst Date: Wed, 2 Jun 2021 14:58:51 +0200 Subject: [PATCH 17/30] nixos/tests/test-driver: mention drawback --- nixos/doc/manual/development/writing-nixos-tests.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/doc/manual/development/writing-nixos-tests.xml b/nixos/doc/manual/development/writing-nixos-tests.xml index c29f2b01064..32321deeddf 100644 --- a/nixos/doc/manual/development/writing-nixos-tests.xml +++ b/nixos/doc/manual/development/writing-nixos-tests.xml @@ -444,6 +444,7 @@ machine.systemctl("list-jobs --no-pager", "any-user") # spawns a shell for `any- Allows you to directly interact with the guest shell. This should only be used during test development, not in production tests. + Killing the interactive session with Ctrl-d or Ctrl-c also ends the guest session. From 6cfc181c7f015528cd03bcc51c7adb4e61080ca3 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Wed, 2 Jun 2021 14:47:51 +0000 Subject: [PATCH 18/30] grype: 0.12.1 -> 0.13.0 --- pkgs/tools/security/grype/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/grype/default.nix b/pkgs/tools/security/grype/default.nix index 9d7221cf5d5..613d93747ed 100644 --- a/pkgs/tools/security/grype/default.nix +++ b/pkgs/tools/security/grype/default.nix @@ -6,16 +6,16 @@ buildGoModule rec { pname = "grype"; - version = "0.12.1"; + version = "0.13.0"; src = fetchFromGitHub { owner = "anchore"; repo = pname; rev = "v${version}"; - sha256 = "sha256-NcLXpxPtTwc/ThI/A9wQ9XI2Msxviy1Ipz8TSfcrHbI="; + sha256 = "sha256-nHSnDrvz0EwDnmYch/bDJOZkf1b1Vrf1960d637ZmBs="; }; - vendorSha256 = "sha256-9uKtrKcF950ZEvpxJzmIQMwc/f1IlgHF8du+RIxhtKI="; + vendorSha256 = "sha256-+1XJTr/WJIz/gvvl9KNp68OVEkjHk+KunAd4trd2T/Y="; propagatedBuildInputs = [ docker ]; From 39a94997742d1c47d7880b223a232f1f0c39f994 Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 30 May 2021 21:22:02 +0200 Subject: [PATCH 19/30] frogatto: unstable-2021-05-24 -> unstable-2018-12-18, unbreak --- pkgs/games/frogatto/data.nix | 6 +++--- pkgs/games/frogatto/default.nix | 1 - pkgs/games/frogatto/engine.nix | 12 ++++++++---- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/pkgs/games/frogatto/data.nix b/pkgs/games/frogatto/data.nix index e911709dffc..d31826ad295 100644 --- a/pkgs/games/frogatto/data.nix +++ b/pkgs/games/frogatto/data.nix @@ -2,14 +2,14 @@ stdenv.mkDerivation { pname = "frogatto-data"; - version = "unstable-2018-12-18"; + version = "unstable-2021-05-24"; src = fetchFromGitHub { owner = "frogatto"; repo = "frogatto"; # master branch as of 2020-12-17 - rev = "c1d0813b3b755a4e232369b6791397ad058efc16"; - sha256 = "1fhaidd35392zzavp93r6ihyansgkc3m1ilz71ia1zl4n3fbsxjg"; + rev = "8b0f2bc8f9f172f6225b8e0d806552cb94f35e2a"; + sha256 = "09nrna9l1zj2ma2bazdhdvphwy570kfz4br4xgpwq21rsjrvrqiy"; }; installPhase = '' diff --git a/pkgs/games/frogatto/default.nix b/pkgs/games/frogatto/default.nix index 69d5282aedc..0b53e3d0bea 100644 --- a/pkgs/games/frogatto/default.nix +++ b/pkgs/games/frogatto/default.nix @@ -34,7 +34,6 @@ in buildEnv { ''; meta = with lib; { - broken = true; homepage = "https://frogatto.com"; description = description; license = with licenses; [ cc-by-30 unfree ]; diff --git a/pkgs/games/frogatto/engine.nix b/pkgs/games/frogatto/engine.nix index 4ebf22b46b0..22aab537c21 100644 --- a/pkgs/games/frogatto/engine.nix +++ b/pkgs/games/frogatto/engine.nix @@ -4,17 +4,21 @@ stdenv.mkDerivation { pname = "anura-engine"; - version = "unstable-2018-11-28"; + version = "unstable-2021-05-24"; src = fetchFromGitHub { owner = "anura-engine"; repo = "anura"; - # trunk branch as of 2018-11-28 - rev = "a05f413f255d2854019134be817c253a03da3d9f"; - sha256 = "1hd57q8gbn1zdpibnqd3ma0z1ycayc2f4r9j4m2m9kc6yf4v7w7b"; + rev = "ed50bbfa68a4aa09438d95d39103ec39156d438f"; + sha256 = "0bk0qklk9wwx3jr2kbrmansccn1nj962v5n2vlb5hxsrcv96s3dg"; fetchSubmodules = true; }; + postPatch = '' + substituteInPlace src/sys.cpp \ + --replace mallinfo2 mallinfo + ''; + nativeBuildInputs = [ which pkg-config ]; From e8bc1b2f975b45015691395aa38e31a39a7ea3e4 Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Thu, 3 Jun 2021 01:09:01 +0200 Subject: [PATCH 20/30] python3Pacakges.awscrt: only pull in GCC on aarch64-linux --- pkgs/development/python-modules/awscrt/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/awscrt/default.nix b/pkgs/development/python-modules/awscrt/default.nix index 73679eca1e4..26c4334e319 100644 --- a/pkgs/development/python-modules/awscrt/default.nix +++ b/pkgs/development/python-modules/awscrt/default.nix @@ -11,7 +11,9 @@ buildPythonPackage rec { # https://github.com/NixOS/nixpkgs/issues/39687 hardeningDisable = lib.optional stdenv.cc.isClang "strictoverflow"; - nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.isAarch64 ([ gcc10 perl ]); + nativeBuildInputs = [ cmake ] ++ + # gcc <10 is not supported, LLVM on darwin is just fine + lib.optionals (!stdenv.isDarwin && stdenv.isAarch64) [ gcc10 perl ]; dontUseCmakeConfigure = true; From 16c2003c1fcd62e5252e3bcbf25729a8586d04fe Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 3 Jun 2021 04:39:30 +0200 Subject: [PATCH 21/30] glusterfs: 9.0 -> 9.2 https://docs.gluster.org/en/latest/release-notes/9.1/ https://docs.gluster.org/en/latest/release-notes/9.2/ --- pkgs/tools/filesystems/glusterfs/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/filesystems/glusterfs/default.nix b/pkgs/tools/filesystems/glusterfs/default.nix index 4e8a3a991f5..d7906e5cc23 100644 --- a/pkgs/tools/filesystems/glusterfs/default.nix +++ b/pkgs/tools/filesystems/glusterfs/default.nix @@ -1,6 +1,6 @@ {lib, stdenv, fetchFromGitHub, fuse, bison, flex_2_5_35, openssl, python3, ncurses, readline, autoconf, automake, libtool, pkg-config, zlib, libaio, libxml2, acl, sqlite, - liburcu, attr, makeWrapper, coreutils, gnused, gnugrep, which, + liburcu, liburing, attr, makeWrapper, coreutils, gnused, gnugrep, which, openssh, gawk, findutils, util-linux, lvm2, btrfs-progs, e2fsprogs, xfsprogs, systemd, rsync, glibc, rpcsvc-proto, libtirpc }: @@ -17,6 +17,7 @@ let fuse bison flex_2_5_35 openssl ncurses readline autoconf automake libtool pkg-config zlib libaio libxml2 acl sqlite liburcu attr makeWrapper util-linux libtirpc + liburing (python3.withPackages (pkgs: [ pkgs.flask pkgs.prettytable @@ -54,13 +55,13 @@ let ]; in stdenv.mkDerivation rec { pname = "glusterfs"; - version = "9.0"; + version = "9.2"; src = fetchFromGitHub { owner = "gluster"; repo = pname; rev = "v${version}"; - sha256 = "sha256-pjJQAFEb44yNqvNAOclZsiEDZBgcfIxliD3La1IsKPs="; + sha256 = "00y2xs7nj4d59x4fp6gq7qql3scykq9lppdvx7y3xbgfmkrwixx9"; }; inherit buildInputs propagatedBuildInputs; From 969eb59f2f253112339dac99e429fb01b7a48bf4 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Thu, 3 Jun 2021 04:20:00 +0000 Subject: [PATCH 22/30] nodejs-16_x: 16.2.0 -> 16.3.0 https://github.com/nodejs/node/releases/tag/v16.3.0 --- pkgs/development/web/nodejs/v16.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/web/nodejs/v16.nix b/pkgs/development/web/nodejs/v16.nix index dec02ad22f5..a97f3383a6b 100644 --- a/pkgs/development/web/nodejs/v16.nix +++ b/pkgs/development/web/nodejs/v16.nix @@ -8,6 +8,6 @@ let in buildNodejs { inherit enableNpm; - version = "16.2.0"; - sha256 = "1krm3cnpbnqg4mfl3cpp8x2i1rr6hba9qbl60wyg5f5g8ac3pyfh"; + version = "16.3.0"; + sha256 = "0pxcdy9i1iyxp4afmpaz30ajlwrj74y64jl3n9rjqw0r5jw4gavs"; } From 26666f4ab7c58aac550be23ca4bc8c8b6525dd07 Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Thu, 3 Jun 2021 12:31:13 +0800 Subject: [PATCH 23/30] janet: 1.15.5 -> 1.16.0 --- pkgs/development/interpreters/janet/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/janet/default.nix b/pkgs/development/interpreters/janet/default.nix index b55c4b613a2..4c836264017 100644 --- a/pkgs/development/interpreters/janet/default.nix +++ b/pkgs/development/interpreters/janet/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "janet"; - version = "1.15.5"; + version = "1.16.0"; src = fetchFromGitHub { owner = "janet-lang"; repo = pname; rev = "v${version}"; - sha256 = "sha256-szqH2Qqc+AKTuoZjYHhTmiHcFQ+PMsljh0RSD/q4gD4="; + sha256 = "sha256-Wrr2zie251oB+uhsLMmkPBV0b3MwTmcPTgNJOsgCems="; }; nativeBuildInputs = [ meson ninja ]; From 7e4c4da3dff7edb61573b557f5f216fd879ec492 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 3 Jun 2021 15:06:28 +1000 Subject: [PATCH 24/30] conmon: 2.0.28 -> 2.0.29 https://github.com/containers/conmon/releases/tag/v2.0.29 --- pkgs/applications/virtualization/conmon/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/virtualization/conmon/default.nix b/pkgs/applications/virtualization/conmon/default.nix index 2736d28f839..b560b02d435 100644 --- a/pkgs/applications/virtualization/conmon/default.nix +++ b/pkgs/applications/virtualization/conmon/default.nix @@ -10,13 +10,13 @@ stdenv.mkDerivation rec { pname = "conmon"; - version = "2.0.28"; + version = "2.0.29"; src = fetchFromGitHub { owner = "containers"; repo = pname; rev = "v${version}"; - sha256 = "sha256-lwR+XoB1LoW/pLjmvExUJKGnAqFhvcDs3sEKkw6pv48="; + sha256 = "sha256-Idt+bN9Lf6GEjdGC/sM9Ln1ohXhUy78CrmJxSDA2Y0o="; }; nativeBuildInputs = [ pkg-config ]; From f914eb78cdcc4bbd5730256c5a9acd6d133f1b26 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 3 Jun 2021 10:02:57 +0200 Subject: [PATCH 25/30] python3Packages.hstspreload: 2021.5.24 -> 2021.5.31 --- pkgs/development/python-modules/hstspreload/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/hstspreload/default.nix b/pkgs/development/python-modules/hstspreload/default.nix index 7c2c7d66350..e30435c568c 100644 --- a/pkgs/development/python-modules/hstspreload/default.nix +++ b/pkgs/development/python-modules/hstspreload/default.nix @@ -6,14 +6,14 @@ buildPythonPackage rec { pname = "hstspreload"; - version = "2021.5.24"; + version = "2021.5.31"; disabled = isPy27; src = fetchFromGitHub { owner = "sethmlarson"; repo = pname; rev = version; - sha256 = "sha256-Z1v2p8kn0IO38Cgr4tUp2n3zAiQntkskS7kYPUakC5U="; + sha256 = "sha256-qTOzhPET2uj/ST28pzeckFTYYfyPgErvG4HB9zMMB2w="; }; # tests require network connection From 9c162827e78aa5663ba76fea7e19ed2088a6f8ad Mon Sep 17 00:00:00 2001 From: Phillip Seeber Date: Thu, 3 Jun 2021 10:19:30 +0200 Subject: [PATCH 26/30] qcelemental: backport upstream patch Qcelemental constructs binary search paths wrong and therefore discards intended results silently. See https://github.com/MolSSI/QCElemental/pull/265 qcelemental: use fetchpatch to get patches --- .../python-modules/qcelemental/default.nix | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/qcelemental/default.nix b/pkgs/development/python-modules/qcelemental/default.nix index 52cd264a005..7d1dcdeb1c7 100644 --- a/pkgs/development/python-modules/qcelemental/default.nix +++ b/pkgs/development/python-modules/qcelemental/default.nix @@ -1,5 +1,5 @@ -{ buildPythonPackage, lib, fetchPypi, numpy, pydantic, pint, - networkx, pytestrunner, pytestcov, pytest +{ buildPythonPackage, lib, fetchPypi, fetchpatch, numpy +, pydantic, pint, networkx, pytestrunner, pytestcov, pytest } : buildPythonPackage rec { @@ -14,10 +14,25 @@ buildPythonPackage rec { sha256 = "141vw36fmacj897q26kq2bl9l0d23lyqjfry6q46aa9087dcs7ni"; }; + # FIXME: Fixed upstream but not released yet. Nevertheless critical for correct behaviour. + # See https://github.com/MolSSI/QCElemental/pull/265 + patches = [ + (fetchpatch { + name = "SearchPath1.patch"; + url = "https://github.com/MolSSI/QCElemental/commit/2211a4e59690bcb14265a60f199a5efe74fe44db.diff"; + sha256 = "1ibjvmdrc103jdj79xrr11y5yji5hc966rm4ihfhfzgbvfkbjg2l"; + }) + (fetchpatch { + name = "SearchPath2.patch"; + url = "https://github.com/MolSSI/QCElemental/commit/5a32ce33e8142047b0a00d0036621fe2750e872a.diff"; + sha256 = "0gmg70vdps7k6alqclwdlxkli9d8s1fphbdvyl8wy8xrh46jw6rk"; + }) + ]; + doCheck = true; meta = with lib; { - description = "Periodic table, physical constants, and molecule parsing for quantum chemistry."; + description = "Periodic table, physical constants, and molecule parsing for quantum chemistry"; homepage = "http://docs.qcarchive.molssi.org/projects/qcelemental/en/latest/"; license = licenses.bsd3; platforms = platforms.linux; From 9e6417f2a4e0431dc1c9cb86bd38161c4f0f53a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Tue, 1 Jun 2021 11:19:52 +0200 Subject: [PATCH 27/30] fix tarball job evaluation for aarch64-darwin --- .../adoptopenjdk-bin/jdk-darwin-base.nix | 2 ++ .../compilers/llvm/11/clang/default.nix | 5 ++++ .../development/compilers/llvm/11/default.nix | 24 +++++++++++++++---- .../darwin/apple-sdk-11.0/apple_sdk.nix | 18 ++++++++++++++ .../apple-sdk-11.0/private-frameworks.nix | 1 + pkgs/servers/irc/inspircd/default.nix | 2 +- pkgs/tools/networking/acme-client/default.nix | 3 +-- pkgs/top-level/all-packages.nix | 2 +- 8 files changed, 48 insertions(+), 9 deletions(-) diff --git a/pkgs/development/compilers/adoptopenjdk-bin/jdk-darwin-base.nix b/pkgs/development/compilers/adoptopenjdk-bin/jdk-darwin-base.nix index 71a55c68290..bcd3309fc39 100644 --- a/pkgs/development/compilers/adoptopenjdk-bin/jdk-darwin-base.nix +++ b/pkgs/development/compilers/adoptopenjdk-bin/jdk-darwin-base.nix @@ -6,6 +6,8 @@ , setJavaClassPath }: +assert (stdenv.isDarwin && stdenv.isx86_64); + let cpuName = stdenv.hostPlatform.parsed.cpu.name; result = stdenv.mkDerivation { name = if sourcePerArch.packageType == "jdk" diff --git a/pkgs/development/compilers/llvm/11/clang/default.nix b/pkgs/development/compilers/llvm/11/clang/default.nix index f23394a8b75..74078c1ac66 100644 --- a/pkgs/development/compilers/llvm/11/clang/default.nix +++ b/pkgs/development/compilers/llvm/11/clang/default.nix @@ -2,6 +2,7 @@ , buildLlvmTools , fixDarwinDylibNames , enableManpages ? false +, enablePolly ? false }: let @@ -39,8 +40,12 @@ let ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ "-DLLVM_TABLEGEN_EXE=${buildLlvmTools.llvm}/bin/llvm-tblgen" "-DCLANG_TABLEGEN=${buildLlvmTools.libclang.dev}/bin/clang-tblgen" + ] ++ lib.optionals enablePolly [ + "-DWITH_POLLY=ON" + "-DLINK_POLLY_INTO_TOOLS=ON" ]; + patches = [ ./purity.patch # https://reviews.llvm.org/D51899 diff --git a/pkgs/development/compilers/llvm/11/default.nix b/pkgs/development/compilers/llvm/11/default.nix index 3c6d767561e..1aad123fba9 100644 --- a/pkgs/development/compilers/llvm/11/default.nix +++ b/pkgs/development/compilers/llvm/11/default.nix @@ -68,16 +68,30 @@ let # we need to reintroduce `outputUnspecified` to get the expected behavior e.g. of lib.get* llvm = tools.libllvm.out // { outputUnspecified = true; }; + libllvm-polly = callPackage ./llvm { + inherit llvm_meta; + enablePolly = true; + }; + + llvm-polly = tools.libllvm-polly.lib // { outputUnspecified = true; }; + libclang = callPackage ./clang { inherit clang-tools-extra_src llvm_meta; }; clang-unwrapped = tools.libclang.out // { outputUnspecified = true; }; - # disabled until recommonmark supports sphinx 3 - #Llvm-manpages = lowPrio (tools.libllvm.override { - # enableManpages = true; - # python3 = pkgs.python3; # don't use python-boot - #}); + + clang-polly-unwrapped = callPackage ./clang { + inherit llvm_meta; + inherit clang-tools-extra_src; + libllvm = tools.libllvm-polly; + enablePolly = true; + }; + + llvm-manpages = lowPrio (tools.libllvm.override { + enableManpages = true; + python3 = pkgs.python3; # don't use python-boot + }); clang-manpages = lowPrio (tools.libclang.override { enableManpages = true; diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/apple_sdk.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/apple_sdk.nix index a4242405b41..14945380e20 100644 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/apple_sdk.nix +++ b/pkgs/os-specific/darwin/apple-sdk-11.0/apple_sdk.nix @@ -119,6 +119,20 @@ in rec { ''; }; + sandbox = stdenv.mkDerivation { + name = "apple-lib-sandbox"; + + dontUnpack = true; + dontBuild = true; + + installPhase = '' + mkdir -p $out/include $out/lib + ln -s "${MacOSX-SDK}/usr/include/sandbox.h" $out/include/sandbox.h + cp "${MacOSX-SDK}/usr/lib/libsandbox.1.tbd" $out/lib + ln -s libsandbox.1.tbd $out/lib/libsandbox.tbd + ''; + }; + libDER = stdenv.mkDerivation { name = "apple-lib-libDER"; dontUnpack = true; @@ -133,6 +147,10 @@ in rec { CoreFoundation = lib.overrideDerivation super.CoreFoundation (drv: { setupHook = ./cf-setup-hook.sh; }); + + # This framework doesn't exist in newer SDKs (somewhere around 10.13), but + # there are references to it in nixpkgs. + QuickTime = throw "QuickTime framework not available"; }; bareFrameworks = ( diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/private-frameworks.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/private-frameworks.nix index 48b373bbd22..bb4300d623a 100644 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/private-frameworks.nix +++ b/pkgs/os-specific/darwin/apple-sdk-11.0/private-frameworks.nix @@ -14,4 +14,5 @@ URLFormatting = {}; SignpostMetrics = {}; PassKitCore = {}; + SkyLight = {}; } diff --git a/pkgs/servers/irc/inspircd/default.nix b/pkgs/servers/irc/inspircd/default.nix index 561151bfa75..59fb4d4e769 100644 --- a/pkgs/servers/irc/inspircd/default.nix +++ b/pkgs/servers/irc/inspircd/default.nix @@ -23,7 +23,7 @@ let # checking, only whitelist licenses used by notable # libcs in nixpkgs (musl and glibc). compatible = lib: drv: - lib.any (lic: lic == drv.meta.license) [ + lib.any (lic: lic == (drv.meta.license or {})) [ lib.licenses.mit # musl lib.licenses.lgpl2Plus # glibc ]; diff --git a/pkgs/tools/networking/acme-client/default.nix b/pkgs/tools/networking/acme-client/default.nix index 728fde4b1e4..f20d4eefb47 100644 --- a/pkgs/tools/networking/acme-client/default.nix +++ b/pkgs/tools/networking/acme-client/default.nix @@ -1,6 +1,5 @@ { lib, stdenv , fetchurl -, apple_sdk ? null , libbsd , libressl , pkg-config @@ -18,7 +17,7 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ libbsd libressl ] ++ optional stdenv.isDarwin apple_sdk.sdk; + buildInputs = [ libbsd libressl ]; makeFlags = [ "PREFIX=${placeholder "out"}" ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9f46af73ea7..4ceb48488c7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -786,7 +786,7 @@ in aescrypt = callPackage ../tools/misc/aescrypt { }; - acme-client = callPackage ../tools/networking/acme-client { inherit (darwin) apple_sdk; stdenv = gccStdenv; }; + acme-client = callPackage ../tools/networking/acme-client { stdenv = gccStdenv; }; amass = callPackage ../tools/networking/amass { }; From fd739c4dee12fbe57199f73c44ec22db2355028e Mon Sep 17 00:00:00 2001 From: Patrick Hilhorst Date: Thu, 3 Jun 2021 11:20:26 +0200 Subject: [PATCH 28/30] nixos/tests/test-driver: make it clear when shell is ready MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Domen Kožar --- nixos/lib/test-driver/test-driver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/lib/test-driver/test-driver.py b/nixos/lib/test-driver/test-driver.py index 6669c914f76..fd5b91e6e4d 100644 --- a/nixos/lib/test-driver/test-driver.py +++ b/nixos/lib/test-driver/test-driver.py @@ -461,6 +461,7 @@ class Machine: Should only be used during test development, not in the production test.""" self.connect() + self.log("Terminal is ready (there is no prompt):") telnet = telnetlib.Telnet() telnet.sock = self.shell # type: ignore telnet.interact() From 7b6aa2b7047001867de723df5f7162ecf5e0d41f Mon Sep 17 00:00:00 2001 From: Adam Griffiths Date: Thu, 3 Jun 2021 21:22:09 +1000 Subject: [PATCH 29/30] raylib: 3.5.0 -> 3.7.0 (#124244) * raylib: 3.5.0 -> 3.7.0 * Update pkgs/development/libraries/raylib/default.nix Co-authored-by: Sandro --- pkgs/development/libraries/raylib/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/raylib/default.nix b/pkgs/development/libraries/raylib/default.nix index 47d8fdb040b..16f6c324a7a 100644 --- a/pkgs/development/libraries/raylib/default.nix +++ b/pkgs/development/libraries/raylib/default.nix @@ -3,25 +3,26 @@ libX11, libXi, libXcursor, libXrandr, libXinerama, alsaSupport ? stdenv.hostPlatform.isLinux, alsaLib, pulseSupport ? stdenv.hostPlatform.isLinux, libpulseaudio, + sharedLib ? true, includeEverything ? true }: stdenv.mkDerivation rec { pname = "raylib"; - version = "3.5.0"; + version = "3.7.0"; src = fetchFromGitHub { owner = "raysan5"; repo = pname; rev = version; - sha256 = "0syvd5js1lbx3g4cddwwncqg95l6hb3fdz5nsh5pqy7fr6v84kwj"; + sha256 = "1w8v747hqy0ils6zmy8sm056f24ybjhn9bamqzlxvbqhvh9vvly1"; }; patches = [ - # fixes examples not compiling in 3.5.0 + # fixes incorrect version being set by cmake (fetchpatch { - url = "https://patch-diff.githubusercontent.com/raw/raysan5/raylib/pull/1470.patch"; - sha256 = "1ff5l839wl8dxwrs2bwky7kqa8kk9qmsflg31sk5vbil68dzbzg0"; + url = "https://github.com/raysan5/raylib/commit/204aa4c46fdd6986aa0130eeba658562c540759f.patch"; + sha256 = "10pl7828iy4kadach0wy4fs95vr7k08z3mxw90j8dm9xak1ri8fz"; }) ]; @@ -34,9 +35,9 @@ stdenv.mkDerivation rec { # https://github.com/raysan5/raylib/wiki/CMake-Build-Options cmakeFlags = [ "-DUSE_EXTERNAL_GLFW=ON" - "-DSHARED=ON" "-DBUILD_EXAMPLES=OFF" - ] ++ lib.optional includeEverything "-DINCLUDE_EVERYTHING=ON"; + ] ++ lib.optional includeEverything "-DINCLUDE_EVERYTHING=ON" + ++ lib.optional sharedLib "-DBUILD_SHARED_LIBS=ON"; # fix libasound.so/libpulse.so not being found preFixup = '' From bd683bb1ef7a96fbf2fb2e7d45e667009bd99791 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 26 May 2021 18:59:26 +0200 Subject: [PATCH 30/30] gnaural: reinit at 20110606 http://gnaural.sourceforge.net/ --- pkgs/applications/audio/gnaural/default.nix | 33 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/applications/audio/gnaural/default.nix diff --git a/pkgs/applications/audio/gnaural/default.nix b/pkgs/applications/audio/gnaural/default.nix new file mode 100644 index 00000000000..10c199d94b6 --- /dev/null +++ b/pkgs/applications/audio/gnaural/default.nix @@ -0,0 +1,33 @@ +{ lib, stdenv, fetchurl, pkg-config, libsndfile, portaudio, gtk2 }: + +stdenv.mkDerivation rec { + pname = "gnaural"; + version = "20110606"; + + src = fetchurl { + url = "mirror://sourceforge/${pname}/${pname}_${version}.tar.xz"; + hash = "sha256-0a09DUMfHEIGYuIYSBGJalBiIHIgejr/KVDXCFgKBb8="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ gtk2 libsndfile portaudio ]; + + postInstall = '' + mkdir -p $out/share/applications + substitute \ + $out/share/gnome/apps/Multimedia/gnaural.desktop \ + $out/share/applications/gnaural.desktop \ + --replace \ + "/usr/share/gnaural/pixmaps/gnaural-icon.png" \ + "$out/share/gnaural/pixmaps/gnaural-icon.png" \ + + rm -rf $out/share/gnome + ''; + + meta = with lib; { + description = "Programmable auditory binaural-beat synthesizer"; + homepage = "http://gnaural.sourceforge.net/"; + maintainers = with maintainers; [ ehmry ]; + license = with licenses; [ gpl2Only ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 33088d76646..9e35b0a197a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24016,6 +24016,8 @@ in gmu = callPackage ../applications/audio/gmu { }; + gnaural = callPackage ../applications/audio/gnaural { }; + gnome_mplayer = callPackage ../applications/video/gnome-mplayer { }; gnumeric = callPackage ../applications/office/gnumeric { };