From 70de7b5b453f7bf4ef0e889a48b00c009338030d Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Thu, 26 Aug 2021 20:29:13 +0300 Subject: [PATCH 01/17] pipewire: 0.3.33 -> 0.3.34 --- .../pipewire/bluez-hardware.conf.json | 11 ++++++++ .../pipewire/pipewire-pulse.conf.json | 1 + .../libraries/pipewire/default.nix | 28 +++++++++++++------ 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/nixos/modules/services/desktops/pipewire/bluez-hardware.conf.json b/nixos/modules/services/desktops/pipewire/bluez-hardware.conf.json index cae9e1bdba06..46697ece4483 100644 --- a/nixos/modules/services/desktops/pipewire/bluez-hardware.conf.json +++ b/nixos/modules/services/desktops/pipewire/bluez-hardware.conf.json @@ -196,6 +196,17 @@ "msbc-alt1" ] }, + { + "sysname": "Linux", + "release": "~^5\\.10\\.(1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50)($|[^0-9])" + }, + { + "sysname": "Linux", + "release": "~^5\\.10\\.", + "no-features": [ + "msbc-alt1" + ] + }, { "sysname": "Linux", "release": "~^5\\.12\\.(1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17)($|[^0-9])" diff --git a/nixos/modules/services/desktops/pipewire/pipewire-pulse.conf.json b/nixos/modules/services/desktops/pipewire/pipewire-pulse.conf.json index 17bbbdef1179..3ed994f11145 100644 --- a/nixos/modules/services/desktops/pipewire/pipewire-pulse.conf.json +++ b/nixos/modules/services/desktops/pipewire/pipewire-pulse.conf.json @@ -37,5 +37,6 @@ } } ], + "context.exec": [], "stream.properties": {} } diff --git a/pkgs/development/libraries/pipewire/default.nix b/pkgs/development/libraries/pipewire/default.nix index d23a7b8e7f5d..ed22eb6c6838 100644 --- a/pkgs/development/libraries/pipewire/default.nix +++ b/pkgs/development/libraries/pipewire/default.nix @@ -27,20 +27,29 @@ , callPackage , nixosTests , withMediaSession ? true -, gstreamerSupport ? true, gst_all_1 ? null -, ffmpegSupport ? true, ffmpeg ? null -, bluezSupport ? true, bluez ? null, sbc ? null, libfreeaptx ? null, ldacbt ? null, fdk_aac ? null +, gstreamerSupport ? true +, gst_all_1 ? null +, ffmpegSupport ? true +, ffmpeg ? null +, bluezSupport ? true +, bluez ? null +, sbc ? null +, libfreeaptx ? null +, ldacbt ? null +, fdk_aac ? null , nativeHspSupport ? true , nativeHfpSupport ? true , ofonoSupport ? true , hsphfpdSupport ? true -, pulseTunnelSupport ? true, libpulseaudio ? null -, zeroconfSupport ? true, avahi ? null +, pulseTunnelSupport ? true +, libpulseaudio ? null +, zeroconfSupport ? true +, avahi ? null }: let fontsConf = makeFontsConf { - fontDirectories = []; + fontDirectories = [ ]; }; mesonEnable = b: if b then "enabled" else "disabled"; @@ -48,7 +57,7 @@ let self = stdenv.mkDerivation rec { pname = "pipewire"; - version = "0.3.33"; + version = "0.3.34"; outputs = [ "out" @@ -66,7 +75,7 @@ let owner = "pipewire"; repo = "pipewire"; rev = version; - sha256 = "sha256-HP2HcGjrLw0+8pO1upvJQk32v+bifYpi5Rtod0TbBis="; + sha256 = "sha256-ZFARA7YuDnpObGLWbgy1Rk+wzmAxHEMuHQkb6tWD0s0="; }; patches = [ @@ -213,4 +222,5 @@ let }; }; -in self +in +self From 87e41eca9c2408d692538db323b5f0ed0fdec842 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 28 Aug 2021 00:04:20 +0000 Subject: [PATCH 02/17] python39Packages.youtube-search-python: init at 1.4.7 --- .../youtube-search-python/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/youtube-search-python/default.nix diff --git a/pkgs/development/python-modules/youtube-search-python/default.nix b/pkgs/development/python-modules/youtube-search-python/default.nix new file mode 100644 index 000000000000..818baf6b36f9 --- /dev/null +++ b/pkgs/development/python-modules/youtube-search-python/default.nix @@ -0,0 +1,27 @@ +{ lib, buildPythonPackage, pythonOlder, fetchPypi, httpx }: + +buildPythonPackage rec { + pname = "youtube-search-python"; + version = "1.4.7"; + + disabled = pythonOlder "3.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "7f93d9ecfd9b965dc93782d8174b1c1888f8900e2a303254037ba34e1d0ebed4"; + }; + + propagatedBuildInputs = [ httpx ]; + + pythonImportsCheck = [ "youtubesearchpython" ]; + + # project has no tests + doCheck = false; + + meta = with lib; { + description = "Search for YouTube videos, channels & playlists & get video information using link WITHOUT YouTube Data API v3"; + homepage = "https://github.com/alexmercerind/youtube-search-python"; + license = licenses.mit; + maintainers = [ maintainers.marsam ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2ef3b52af0a4..19ca4df0d28d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9610,6 +9610,8 @@ in { youtube-search = callPackage ../development/python-modules/youtube-search { }; + youtube-search-python = callPackage ../development/python-modules/youtube-search-python { }; + youtube-transcript-api = callPackage ../development/python-modules/youtube-transcript-api { }; yowsup = callPackage ../development/python-modules/yowsup { }; From 55db199650890badc1ad322ebdf59208784b11ff Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 28 Aug 2021 00:04:20 +0000 Subject: [PATCH 03/17] akku: init at 1.1.0 --- .../tools/package-management/akku/default.nix | 41 +++++++++++++++++++ .../akku/hardcode-libcurl.patch | 18 ++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 61 insertions(+) create mode 100644 pkgs/tools/package-management/akku/default.nix create mode 100644 pkgs/tools/package-management/akku/hardcode-libcurl.patch diff --git a/pkgs/tools/package-management/akku/default.nix b/pkgs/tools/package-management/akku/default.nix new file mode 100644 index 000000000000..e1baf2e0b1eb --- /dev/null +++ b/pkgs/tools/package-management/akku/default.nix @@ -0,0 +1,41 @@ +{ lib, stdenv, fetchFromGitLab, autoreconfHook, pkg-config, guile, curl, substituteAll }: + +stdenv.mkDerivation rec { + pname = "akku"; + version = "1.1.0"; + + src = fetchFromGitLab { + owner = "akkuscm"; + repo = "akku"; + rev = "v${version}"; + sha256 = "1pi18aamg1fd6f9ynfl7zx92052xzf0zwmhi2pwcwjs1kbah19f5"; + }; + + patches = [ + # substitute libcurl path + (substituteAll { + src = ./hardcode-libcurl.patch; + libcurl = "${curl.out}/lib/libcurl${stdenv.hostPlatform.extensions.sharedLibrary}"; + }) + ]; + + nativeBuildInputs = [ autoreconfHook pkg-config ]; + + buildInputs = [ guile ]; + + # Use a dummy package index to boostrap Akku + preBuild = '' + touch bootstrap.db + ''; + + makeFlags = [ "GUILE_AUTO_COMPILE=0" ]; + + meta = with lib; { + homepage = "https://akkuscm.org/"; + description = "Language package manager for Scheme"; + changelog = "https://gitlab.com/akkuscm/akku/-/raw/v${version}/NEWS.md"; + platforms = platforms.all; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ marsam ]; + }; +} diff --git a/pkgs/tools/package-management/akku/hardcode-libcurl.patch b/pkgs/tools/package-management/akku/hardcode-libcurl.patch new file mode 100644 index 000000000000..7c5b8b50c320 --- /dev/null +++ b/pkgs/tools/package-management/akku/hardcode-libcurl.patch @@ -0,0 +1,18 @@ +--- old/private/http.scm ++++ new/private/http.scm +@@ -101,14 +101,7 @@ + ;; shouldn't, but it's an old issue. + (log/error "Could not load libcurl. Please install the curl development(!) package.") + (exit 1))) +- (case (os-name) +- ((darwin) (set! libcurl (open-shared-object "libcurl.dylib"))) +- ((msys) (set! libcurl (open-shared-object "msys-curl-4"))) +- (else +- (guard (exn +- (else +- (set! libcurl (open-shared-object "libcurl.so.3")))) +- (set! libcurl (open-shared-object "libcurl.so.4")))))) ++ (set! libcurl (open-shared-object "@libcurl@"))) + (letrec () + (define %curl_global_init (foreign-procedure libcurl int curl_global_init (long))) + (call %curl_global_init #b11))) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 16abc141d983..6f512d7be9f1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -865,6 +865,8 @@ with pkgs; inherit (plasma5Packages) kdialog; }; + akku = callPackage ../tools/package-management/akku { }; + albert = libsForQt5.callPackage ../applications/misc/albert {}; arch-install-scripts = callPackage ../tools/misc/arch-install-scripts {}; From d3a7131d7d1d507393ce71f5d6ddd9f290aaa567 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 28 Aug 2021 00:04:20 +0000 Subject: [PATCH 04/17] ytmdl: 2021.06.26 -> 2021.08.01 --- pkgs/tools/misc/ytmdl/default.nix | 37 +++++++++++-------------------- 1 file changed, 13 insertions(+), 24 deletions(-) diff --git a/pkgs/tools/misc/ytmdl/default.nix b/pkgs/tools/misc/ytmdl/default.nix index 43f46bc05231..90a0590b8d95 100644 --- a/pkgs/tools/misc/ytmdl/default.nix +++ b/pkgs/tools/misc/ytmdl/default.nix @@ -1,44 +1,32 @@ { lib -, fetchFromGitHub -, python3 -, fetchpatch +, python3Packages , ffmpeg }: -python3.pkgs.buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "ytmdl"; - version = "2021.06.26"; + version = "2021.08.01"; - src = fetchFromGitHub { - owner = "deepjyoti30"; - repo = pname; - rev = version; - sha256 = "1jpd5zhqg2m9vjjjw4mgzb594q1v1pq1yl65py6kw42bq9w5yl5p"; + src = python3Packages.fetchPypi { + inherit pname; + version = builtins.replaceStrings [ ".0" ] [ "." ] version; + sha256 = "f5ef23dcba89aaf2307baf4ffc2326dc5c02324f646e5e5748219ed328202af4"; }; - patches = [ - # Fixes https://github.com/deepjyoti30/ytmdl/issues/188 - # Only needed until the next major release after 2021.06.26 - (fetchpatch { - url = "https://github.com/deepjyoti30/ytmdl/commit/37ba821d9692249c1fa563505cf60bd11b8e209e.patch"; - includes = [ "bin/ytmdl" ]; - sha256 = "sha256-VqtthpUL0Oub3DK7tSvAnemOzPPTcLvXXeebZIGOgdc="; - }) - ]; - postPatch = '' substituteInPlace setup.py \ - --replace "bs4" "beautifulsoup4" + --replace "bs4" "beautifulsoup4" \ + --replace "/etc/bash_completion.d" "share/bash-completion/completions" \ + --replace "/usr/share/zsh/functions/Completion/Unix" "share/zsh/site-functions" ''; - - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = with python3Packages; [ ffmpeg-python musicbrainzngs rich simber pydes - youtube-search + youtube-search-python unidecode pyxdg downloader-cli @@ -48,6 +36,7 @@ python3.pkgs.buildPythonApplication rec { pysocks youtube-dl ytmusicapi + spotipy ]; makeWrapperArgs = [ From baa2707d2a4fdbbd93a6bd7a79e59a0bb9f77e2a Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 28 Aug 2021 00:04:20 +0000 Subject: [PATCH 05/17] pgcli: 3.1.0 -> 3.2.0 https://github.com/dbcli/pgcli/raw/v3.2.0/changelog.rst --- pkgs/development/tools/database/pgcli/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/database/pgcli/default.nix b/pkgs/development/tools/database/pgcli/default.nix index 62db92380ae2..bb8e983fa715 100644 --- a/pkgs/development/tools/database/pgcli/default.nix +++ b/pkgs/development/tools/database/pgcli/default.nix @@ -20,13 +20,13 @@ buildPythonApplication rec { pname = "pgcli"; - version = "3.1.0"; + version = "3.2.0"; disabled = !isPy3k; src = fetchPypi { inherit pname version; - sha256 = "d5b2d803f7e4e7fe679306a000bde5d14d15ec590ddd108f3dc4c0ecad169d2b"; + sha256 = "6cde97e71996bf910a40b579e5285483c10ea04962a08def01c12433d5f7c6b7"; }; propagatedBuildInputs = [ @@ -55,7 +55,7 @@ buildPythonApplication rec { syntax highlighting. ''; homepage = "https://pgcli.com"; - changelog = "https://github.com/dbcli/pgcli/blob/v${version}/changelog.rst"; + changelog = "https://github.com/dbcli/pgcli/raw/v${version}/changelog.rst"; license = licenses.bsd3; maintainers = with maintainers; [ dywedir ]; }; From 749421a47b2d6b6d21d4da2cd1fbe504a72cf3ed Mon Sep 17 00:00:00 2001 From: "Alexander V. Nikolaev" Date: Sun, 29 Aug 2021 15:39:32 +0300 Subject: [PATCH 06/17] wine{Unstable,Staging}: 6.15 -> 6.16 --- pkgs/misc/emulators/wine/sources.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/misc/emulators/wine/sources.nix b/pkgs/misc/emulators/wine/sources.nix index 59a24c106654..212a3222b7c6 100644 --- a/pkgs/misc/emulators/wine/sources.nix +++ b/pkgs/misc/emulators/wine/sources.nix @@ -44,9 +44,9 @@ in rec { unstable = fetchurl rec { # NOTE: Don't forget to change the SHA256 for staging as well. - version = "6.15"; + version = "6.16"; url = "https://dl.winehq.org/wine/source/6.x/wine-${version}.tar.xz"; - sha256 = "sha256-Yf1lo2WDKmK656eEKScMB2+yop8cf0YlldHzVDZRd5s="; + sha256 = "sha256-aVCSBQ2YoSnE1/MVPLDkkjJIuuXz2SBjn6SrGnP4+ug="; inherit (stable) gecko32 gecko64; ## see http://wiki.winehq.org/Mono @@ -65,7 +65,7 @@ in rec { staging = fetchFromGitHub rec { # https://github.com/wine-staging/wine-staging/releases inherit (unstable) version; - sha256 = "sha256-zT77xmc2gD8xNSk19OPYVJB6nZmh+g6TYRhVW674RFI="; + sha256 = "sha256-TvTx3vSOyudyC7aravQGcj5KGqI8uHkgHroIJww5buQ="; owner = "wine-staging"; repo = "wine-staging"; rev = "v${version}"; From d30ce301107248f30f24808708d3957dcc8cb219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 30 Aug 2021 15:22:12 -0700 Subject: [PATCH 07/17] libdeltachat: 1.59.0 -> 1.60.0 https://github.com/deltachat/deltachat-core-rust/blob/1.60.0/CHANGELOG.md --- pkgs/development/libraries/libdeltachat/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/libdeltachat/default.nix b/pkgs/development/libraries/libdeltachat/default.nix index c61636bfb95f..e8fdad61b2af 100644 --- a/pkgs/development/libraries/libdeltachat/default.nix +++ b/pkgs/development/libraries/libdeltachat/default.nix @@ -16,13 +16,13 @@ stdenv.mkDerivation rec { pname = "libdeltachat"; - version = "1.59.0"; + version = "1.60.0"; src = fetchFromGitHub { owner = "deltachat"; repo = "deltachat-core-rust"; rev = version; - sha256 = "1lwck5gb2kys7wxg08q3pnb8cqhzwwqy6nxcf2yc030gmnwm4sya"; + sha256 = "1agm5xyaib4ynmw4mhgmkhh4lnxs91wv0q9i1zfihv2vkckfm2s2"; }; patches = [ @@ -37,7 +37,7 @@ stdenv.mkDerivation rec { cargoDeps = rustPlatform.fetchCargoTarball { inherit src; name = "${pname}-${version}"; - sha256 = "13zzc8c50cy6fknrxzw5gf6rcclsn5bcb2bi3z9mmzsl29ga32gx"; + sha256 = "09d3mw2hb1gmqg7smaqwnfm7izw40znl0h1dz7s2imms2cnkjws1"; }; nativeBuildInputs = [ From 9f0d327b661b24d0c1a99a39bf53040967331408 Mon Sep 17 00:00:00 2001 From: James Landrein Date: Tue, 31 Aug 2021 17:42:11 +0200 Subject: [PATCH 08/17] tea: 0.7.0 -> 0.7.1 --- pkgs/tools/misc/tea/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/tea/default.nix b/pkgs/tools/misc/tea/default.nix index a7af4fec7ba4..c968b57c60ad 100644 --- a/pkgs/tools/misc/tea/default.nix +++ b/pkgs/tools/misc/tea/default.nix @@ -2,14 +2,14 @@ buildGoModule rec { pname = "tea"; - version = "0.7.0"; + version = "0.7.1"; src = fetchFromGitea { domain = "gitea.com"; owner = "gitea"; repo = "tea"; rev = "v${version}"; - sha256 = "sha256-Kq+A6YELfBJ04t7pPnX8Ulh4NSMFn3AHggplLD9J8MY="; + sha256 = "sha256-Y/Znj8vVjVt+rs+n8JRQsptq5u17G2D7r98PDxPLyd4="; }; vendorSha256 = null; From 3c0cf469a12814b361f03ebcfafa96da43b6e50a Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 6 Sep 2020 17:21:53 +0100 Subject: [PATCH 09/17] elasticmq-server-bin: 0.14.6 -> 0.15.7 --- pkgs/servers/elasticmq-server-bin/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/elasticmq-server-bin/default.nix b/pkgs/servers/elasticmq-server-bin/default.nix index c10ea7dd1806..9688fa729b74 100644 --- a/pkgs/servers/elasticmq-server-bin/default.nix +++ b/pkgs/servers/elasticmq-server-bin/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "elasticmq-server"; - version = "0.14.6"; + version = "0.15.7"; src = fetchurl { url = "https://s3-eu-west-1.amazonaws.com/softwaremill-public/${pname}-${version}.jar"; - sha256 = "1cp2pmkc6gx7gr6109jlcphlky5rr6s1wj528r6hyhzdc01sjhhz"; + sha256 = "01jmb6rwh570f2y30b2if5fhcbpdnb2vkxylp9xa09c0x7a2vv4q"; }; # don't do anything? From 9c773516d7abb4c394ecda92b44dd1f80b4e0f6e Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 6 Sep 2020 17:18:46 +0100 Subject: [PATCH 10/17] elasticmq-server-bin: add passthru.tests.elasticmqTest simply starts an elasticmq server with a queue "foobar", attempts to put a message to it from python then checks it arrives --- pkgs/servers/elasticmq-server-bin/default.nix | 66 ++++++++++--------- .../elasticmq-server-bin/elasticmq-test.nix | 47 +++++++++++++ 2 files changed, 83 insertions(+), 30 deletions(-) create mode 100644 pkgs/servers/elasticmq-server-bin/elasticmq-test.nix diff --git a/pkgs/servers/elasticmq-server-bin/default.nix b/pkgs/servers/elasticmq-server-bin/default.nix index 9688fa729b74..1b44eb2383ec 100644 --- a/pkgs/servers/elasticmq-server-bin/default.nix +++ b/pkgs/servers/elasticmq-server-bin/default.nix @@ -1,34 +1,40 @@ -{ lib, stdenv, fetchurl, jdk, jre, makeWrapper }: +{ lib, stdenv, fetchurl, jdk, jre, makeWrapper, runCommand, python3Packages, writeText }: -stdenv.mkDerivation rec { - pname = "elasticmq-server"; - version = "0.15.7"; +let + elasticmq-server = stdenv.mkDerivation rec { + pname = "elasticmq-server"; + version = "0.15.7"; - src = fetchurl { - url = "https://s3-eu-west-1.amazonaws.com/softwaremill-public/${pname}-${version}.jar"; - sha256 = "01jmb6rwh570f2y30b2if5fhcbpdnb2vkxylp9xa09c0x7a2vv4q"; + src = fetchurl { + url = "https://s3-eu-west-1.amazonaws.com/softwaremill-public/${pname}-${version}.jar"; + sha256 = "01jmb6rwh570f2y30b2if5fhcbpdnb2vkxylp9xa09c0x7a2vv4q"; + }; + + # don't do anything? + unpackPhase = "${jdk}/bin/jar xf $src favicon.png"; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir -p $out/bin $out/share/elasticmq-server + + cp $src $out/share/elasticmq-server/elasticmq-server.jar + + # TODO: how to add extraArgs? current workaround is to use JAVA_TOOL_OPTIONS environment to specify properties + makeWrapper ${jre}/bin/java $out/bin/elasticmq-server \ + --add-flags "-jar $out/share/elasticmq-server/elasticmq-server.jar" + ''; + + meta = with lib; { + homepage = "https://github.com/softwaremill/elasticmq"; + description = "Message queueing system with Java, Scala and Amazon SQS-compatible interfaces"; + license = licenses.asl20; + platforms = platforms.unix; + maintainers = with maintainers; [ peterromfeldhk ]; + }; }; - - # don't do anything? - unpackPhase = "${jdk}/bin/jar xf $src favicon.png"; - - nativeBuildInputs = [ makeWrapper ]; - - installPhase = '' - mkdir -p $out/bin $out/share/elasticmq-server - - cp $src $out/share/elasticmq-server/elasticmq-server.jar - - # TODO: how to add extraArgs? current workaround is to use JAVA_TOOL_OPTIONS environment to specify properties - makeWrapper ${jre}/bin/java $out/bin/elasticmq-server \ - --add-flags "-jar $out/share/elasticmq-server/elasticmq-server.jar" - ''; - - meta = with lib; { - homepage = "https://github.com/softwaremill/elasticmq"; - description = "Message queueing system with Java, Scala and Amazon SQS-compatible interfaces"; - license = licenses.asl20; - platforms = platforms.unix; - maintainers = with maintainers; [ peterromfeldhk ]; +in elasticmq-server.overrideAttrs (_: { + passthru.tests.elasticmqTest = import ./elasticmq-test.nix { + inherit elasticmq-server runCommand python3Packages writeText; }; -} +}) diff --git a/pkgs/servers/elasticmq-server-bin/elasticmq-test.nix b/pkgs/servers/elasticmq-server-bin/elasticmq-test.nix new file mode 100644 index 000000000000..044b74508982 --- /dev/null +++ b/pkgs/servers/elasticmq-server-bin/elasticmq-test.nix @@ -0,0 +1,47 @@ +{ elasticmq-server, python3Packages, runCommand, writeText}: + +runCommand "${elasticmq-server.name}-tests" (let + commonPy = '' + import boto3 + client = boto3.resource( + "sqs", + endpoint_url="http://localhost:9324", + region_name="elasticmq", + aws_secret_access_key="x", + aws_access_key_id="x", + use_ssl=False, + ) + queue = client.get_queue_by_name(QueueName="foobar") + ''; +in { + buildInputs = with python3Packages; [ python boto3 ]; + emqConfig = writeText "emq-test.conf" '' + generate-node-address = true + + queues { + foobar {} + } + ''; + putMessagePy = writeText "put_message.py" '' + ${commonPy} + queue.send_message(MessageBody="bazqux") + ''; + checkMessagePy = writeText "check_message.py" '' + ${commonPy} + messages = queue.receive_messages() + print(f"Received {messages!r}") + assert len(messages) == 1 + assert messages[0].body == "bazqux" + ''; +}) '' + JAVA_TOOL_OPTIONS="-Dconfig.file=$emqConfig" ${elasticmq-server}/bin/elasticmq-server & + SERVER_PID=$! + sleep 10 + + python $putMessagePy + python $checkMessagePy + touch $out + + # needed on darwin + kill $SERVER_PID +'' From 0fec93a3a55be9940f63400cfab2b1b0292a0102 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Tue, 31 Aug 2021 22:39:40 +0100 Subject: [PATCH 11/17] elasticmq-server-bin: 0.15.7 -> 1.2.0 --- pkgs/servers/elasticmq-server-bin/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/elasticmq-server-bin/default.nix b/pkgs/servers/elasticmq-server-bin/default.nix index 1b44eb2383ec..bc599ebbc2c8 100644 --- a/pkgs/servers/elasticmq-server-bin/default.nix +++ b/pkgs/servers/elasticmq-server-bin/default.nix @@ -3,11 +3,11 @@ let elasticmq-server = stdenv.mkDerivation rec { pname = "elasticmq-server"; - version = "0.15.7"; + version = "1.2.0"; src = fetchurl { url = "https://s3-eu-west-1.amazonaws.com/softwaremill-public/${pname}-${version}.jar"; - sha256 = "01jmb6rwh570f2y30b2if5fhcbpdnb2vkxylp9xa09c0x7a2vv4q"; + sha256 = "06bn5ixz0pvvhfvavr6njv8c2i9pgd6gj32wnp2f0fn0z1kypn1f"; }; # don't do anything? From 832e3f971ebf25da6a4979888ff0c951bcd34414 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Sat, 28 Aug 2021 22:08:57 +0200 Subject: [PATCH 12/17] gnome.baobab: use strictDeps --- pkgs/desktops/gnome/core/baobab/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/desktops/gnome/core/baobab/default.nix b/pkgs/desktops/gnome/core/baobab/default.nix index 8d0f9459c3b0..8455b3d57727 100644 --- a/pkgs/desktops/gnome/core/baobab/default.nix +++ b/pkgs/desktops/gnome/core/baobab/default.nix @@ -27,25 +27,30 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ + desktop-file-utils + gettext + glib + itstool + libxml2 meson ninja pkg-config - vala - gettext - itstool - libxml2 - desktop-file-utils - wrapGAppsHook python3 + vala + wrapGAppsHook + # Prevents “error: Package `libhandy-1' not found in specified Vala API + # directories or GObject-Introspection GIR directories”, even though it + # should only be a runtime dependency. + libhandy ]; buildInputs = [ gtk3 libhandy glib - gnome.adwaita-icon-theme ]; + strictDeps = true; doCheck = true; passthru = { From d04f44f7e8d6f475e91e5539becf156676caff5c Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Wed, 1 Sep 2021 12:52:54 +0200 Subject: [PATCH 13/17] chromium: 92.0.4515.159 -> 93.0.4577.63 https://chromereleases.googleblog.com/2021/08/stable-channel-update-for-desktop_31.html This update includes 27 security fixes. CVEs: CVE-2021-30606 CVE-2021-30607 CVE-2021-30608 CVE-2021-30609 CVE-2021-30610 CVE-2021-30611 CVE-2021-30612 CVE-2021-30613 CVE-2021-30614 CVE-2021-30615 CVE-2021-30616 CVE-2021-30617 CVE-2021-30618 CVE-2021-30619 CVE-2021-30620 CVE-2021-30621 CVE-2021-30622 CVE-2021-30623 CVE-2021-30624 --- .../browsers/chromium/upstream-info.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/upstream-info.json b/pkgs/applications/networking/browsers/chromium/upstream-info.json index 7ea337660014..5d8d4afeece8 100644 --- a/pkgs/applications/networking/browsers/chromium/upstream-info.json +++ b/pkgs/applications/networking/browsers/chromium/upstream-info.json @@ -1,20 +1,20 @@ { "stable": { - "version": "92.0.4515.159", - "sha256": "04gxgimg5ygzx6nvfws5y9dppdfjg1fhyl8zbykmksbh1myk6zfr", - "sha256bin64": "0lxnqsvqr1kw6swvkhhz475j0xvaa58ha8r1gq8zxmk48mp41985", + "version": "93.0.4577.63", + "sha256": "0ls8r77la6p7474j84wchvs4rvnxwfv7c8xvbxjm8h7jqak4zwza", + "sha256bin64": "1kv742arnv710mhakm2v59dwfypg7j01k7rd5if8h0s49yzdw3qc", "deps": { "gn": { - "version": "2021-05-07", + "version": "2021-07-08", "url": "https://gn.googlesource.com/gn", - "rev": "39a87c0b36310bdf06b692c098f199a0d97fc810", - "sha256": "0x63jr5hssm9dl6la4q5ahy669k4gxvbapqxi5w32vv107jrj8v4" + "rev": "24e2f7df92641de0351a96096fb2c490b2436bb8", + "sha256": "1lwkyhfhw0zd7daqz466n7x5cddf0danr799h4jg3s0yvd4galjl" } }, "chromedriver": { - "version": "92.0.4515.107", - "sha256_linux": "12yckzjhlhxp14j7aphnvlw4xv713vllj44h5pba181ivxavmky3", - "sha256_darwin": "0gm0zazwy053rip9h0ma2s53rc65b8pzy57x48ch0fpq7rrsbycp" + "version": "93.0.4577.15", + "sha256_linux": "11wcimkcgaiz740k9xibi5hq1kd4zgy1vk6bd6cp31wjw4y21x5f", + "sha256_darwin": "0cxf3cg5pg9rigq7wmbap6wvmgpdr6v44bndisyaqhlw7s2hhndn" } }, "beta": { From 7458f66f63efe11eb7616e9c15bac2595434025f Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 1 Sep 2021 07:31:20 -0500 Subject: [PATCH 14/17] fstar: 2021.07.31 -> 2021.08.27 (#136215) --- pkgs/development/compilers/fstar/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/fstar/default.nix b/pkgs/development/compilers/fstar/default.nix index fec71dc46fdc..0ef2e89f123a 100644 --- a/pkgs/development/compilers/fstar/default.nix +++ b/pkgs/development/compilers/fstar/default.nix @@ -17,13 +17,13 @@ in stdenv.mkDerivation rec { pname = "fstar"; - version = "2021.07.31"; + version = "2021.08.27"; src = fetchFromGitHub { owner = "FStarLang"; repo = "FStar"; rev = "v${version}"; - sha256 = "KZTmphpt8nYpOd8EReAZ6iIkS4uY3ZziKQ3A70BL/90="; + sha256 = "1bf5hrv2nv0ljvdf6jhk59lw1ds3j5qkkcylgxwakylw30g8rxqb"; }; nativeBuildInputs = [ makeWrapper installShellFiles ]; @@ -72,6 +72,7 @@ stdenv.mkDerivation rec { description = "ML-like functional programming language aimed at program verification"; homepage = "https://www.fstar-lang.org"; license = licenses.asl20; + changelog = "https://github.com/FStarLang/FStar/raw/v${version}/CHANGES.md"; platforms = with platforms; darwin ++ linux; maintainers = with maintainers; [ gebner ]; }; From 6cc260cfd60f094500b79e279069b499806bf6d8 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Wed, 1 Sep 2021 14:51:06 +0200 Subject: [PATCH 15/17] Partially revert "gnome.baobab: use strictDeps" Introduced in 832e3f971ebf25da6a4979888ff0c951bcd34414, strictDeps interferes with wrapping setup hooks. --- pkgs/desktops/gnome/core/baobab/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/desktops/gnome/core/baobab/default.nix b/pkgs/desktops/gnome/core/baobab/default.nix index 8455b3d57727..40ff8e201543 100644 --- a/pkgs/desktops/gnome/core/baobab/default.nix +++ b/pkgs/desktops/gnome/core/baobab/default.nix @@ -39,8 +39,8 @@ stdenv.mkDerivation rec { vala wrapGAppsHook # Prevents “error: Package `libhandy-1' not found in specified Vala API - # directories or GObject-Introspection GIR directories”, even though it - # should only be a runtime dependency. + # directories or GObject-Introspection GIR directories” with strictDeps, + # even though it should only be a runtime dependency. libhandy ]; @@ -50,7 +50,6 @@ stdenv.mkDerivation rec { glib ]; - strictDeps = true; doCheck = true; passthru = { From db0560c0f2a700d39528c44e84c6c6ca8be0857e Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Wed, 1 Sep 2021 08:54:32 -0400 Subject: [PATCH 16/17] nixos/nvidia: fix missing variable reference --- nixos/modules/hardware/video/nvidia.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix index 73d3451c71c3..7c6ebdd9a2f0 100644 --- a/nixos/modules/hardware/video/nvidia.nix +++ b/nixos/modules/hardware/video/nvidia.nix @@ -23,6 +23,7 @@ let offloadCfg = pCfg.offload; primeEnabled = syncCfg.enable || offloadCfg.enable; nvidiaPersistencedEnabled = cfg.nvidiaPersistenced; + nvidiaSettings = cfg.nvidiaSettings; in { From 6aaccdcbc854e107da21e8766426e4d8ba8ef8be Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Wed, 1 Sep 2021 08:57:33 -0400 Subject: [PATCH 17/17] nixos/nvidia: remove extra space --- nixos/modules/hardware/video/nvidia.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix index 7c6ebdd9a2f0..cf87ca5377dd 100644 --- a/nixos/modules/hardware/video/nvidia.nix +++ b/nixos/modules/hardware/video/nvidia.nix @@ -23,7 +23,7 @@ let offloadCfg = pCfg.offload; primeEnabled = syncCfg.enable || offloadCfg.enable; nvidiaPersistencedEnabled = cfg.nvidiaPersistenced; - nvidiaSettings = cfg.nvidiaSettings; + nvidiaSettings = cfg.nvidiaSettings; in {