Merge #232237: staging-next 2023-05-16

+104 -35
+16 -3
pkgs/development/interpreters/ruby/default.nix
··· 15 config = import ./config.nix { inherit fetchFromSavannah; }; 16 rubygems = import ./rubygems { inherit stdenv lib fetchurl; }; 17 18 # Contains the ruby version heuristics 19 rubyVersion = import ./ruby-version.nix { inherit lib; }; 20 ··· 84 ++ (op fiddleSupport libffi) 85 ++ (ops cursesSupport [ ncurses readline ]) 86 ++ (op zlibSupport zlib) 87 - ++ (op (!atLeast31 && opensslSupport) openssl_1_1) 88 - ++ (op (atLeast31 && opensslSupport) openssl) 89 ++ (op gdbmSupport gdbm) 90 ++ (op yamlSupport libyaml) 91 # Looks like ruby fails to build on darwin without readline even if curses ··· 113 url = "https://github.com/ruby/ruby/commit/0acc05caf7518cd0d63ab02bfa036455add02346.patch"; 114 sha256 = "sha256-43hI9L6bXfeujgmgKFVmiWhg7OXvshPCCtQ4TxqK1zk="; 115 }) 116 - ] 117 ++ ops (!atLeast30 && rubygemsSupport) [ 118 # We upgrade rubygems to a version that isn't compatible with the 119 # ruby 2.7 installer. Backport the upstream fix. ··· 149 rm -rf $sourceRoot/{lib,test}/rubygems* 150 cp -r ${rubygems}/lib/rubygems* $sourceRoot/lib 151 cp -r ${rubygems}/test/rubygems $sourceRoot/test 152 ''; 153 154 postPatch = ''
··· 15 config = import ./config.nix { inherit fetchFromSavannah; }; 16 rubygems = import ./rubygems { inherit stdenv lib fetchurl; }; 17 18 + openssl3Gem = fetchFromGitHub { 19 + owner = "ruby"; 20 + repo = "openssl"; 21 + rev = "v3.0.2"; 22 + hash = "sha256-KhuKRP1JkMJv7CagGRQ0KKGOd5Oh0FP0fbj0VZ4utGo="; 23 + }; 24 + 25 # Contains the ruby version heuristics 26 rubyVersion = import ./ruby-version.nix { inherit lib; }; 27 ··· 91 ++ (op fiddleSupport libffi) 92 ++ (ops cursesSupport [ ncurses readline ]) 93 ++ (op zlibSupport zlib) 94 + ++ (op (atLeast30 && opensslSupport) openssl) 95 + ++ (op (!atLeast30 && opensslSupport) openssl_1_1) 96 ++ (op gdbmSupport gdbm) 97 ++ (op yamlSupport libyaml) 98 # Looks like ruby fails to build on darwin without readline even if curses ··· 120 url = "https://github.com/ruby/ruby/commit/0acc05caf7518cd0d63ab02bfa036455add02346.patch"; 121 sha256 = "sha256-43hI9L6bXfeujgmgKFVmiWhg7OXvshPCCtQ4TxqK1zk="; 122 }) 123 + ] 124 ++ ops (!atLeast30 && rubygemsSupport) [ 125 # We upgrade rubygems to a version that isn't compatible with the 126 # ruby 2.7 installer. Backport the upstream fix. ··· 156 rm -rf $sourceRoot/{lib,test}/rubygems* 157 cp -r ${rubygems}/lib/rubygems* $sourceRoot/lib 158 cp -r ${rubygems}/test/rubygems $sourceRoot/test 159 + '' + opString (ver.majMin == "3.0" && opensslSupport) '' 160 + # Replace the Gem by a OpenSSL3-compatible one. 161 + echo "Hotpatching the OpenSSL gem with a 3.x series for OpenSSL 3 support..." 162 + cp -vr ${openssl3Gem}/ext/openssl $sourceRoot/ext/ 163 + cp -vr ${openssl3Gem}/lib/ $sourceRoot/ext/openssl/ 164 + cp -vr ${openssl3Gem}/{History.md,openssl.gemspec} $sourceRoot/ext/openssl/ 165 ''; 166 167 postPatch = ''
+2 -2
pkgs/development/interpreters/ruby/rubygems/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "rubygems"; 5 - version = "3.4.12"; 6 7 src = fetchurl { 8 url = "https://rubygems.org/rubygems/rubygems-${version}.tgz"; 9 - sha256 = "sha256-WFCnwvw4DN09pwShznuwSNQtSACTPfULiSAmW1hF4Vs="; 10 }; 11 12 patches = [
··· 2 3 stdenv.mkDerivation rec { 4 pname = "rubygems"; 5 + version = "3.4.13"; 6 7 src = fetchurl { 8 url = "https://rubygems.org/rubygems/rubygems-${version}.tgz"; 9 + sha256 = "sha256-s/7KCbf07zezuASA7E03t83UDY6W/fFw9bljOprXWls="; 10 }; 11 12 patches = [
+2 -2
pkgs/development/libraries/grpc/default.nix
··· 21 22 stdenv.mkDerivation rec { 23 pname = "grpc"; 24 - version = "1.54.0"; # N.B: if you change this, please update: 25 # pythonPackages.grpcio-tools 26 # pythonPackages.grpcio-status 27 ··· 29 owner = "grpc"; 30 repo = "grpc"; 31 rev = "v${version}"; 32 - hash = "sha256-WVH7rYyFx2LyAnctnNbX4KevoJ5KKZujN+SmL0Y6wvw="; 33 fetchSubmodules = true; 34 }; 35
··· 21 22 stdenv.mkDerivation rec { 23 pname = "grpc"; 24 + version = "1.54.2"; # N.B: if you change this, please update: 25 # pythonPackages.grpcio-tools 26 # pythonPackages.grpcio-status 27 ··· 29 owner = "grpc"; 30 repo = "grpc"; 31 rev = "v${version}"; 32 + hash = "sha256-OIRqH+h8Kjbw3X5slpdCfNN0f027WuvHG3q7KUuSWo8="; 33 fetchSubmodules = true; 34 }; 35
+2 -2
pkgs/development/libraries/libcamera/default.nix
··· 21 22 stdenv.mkDerivation rec { 23 pname = "libcamera"; 24 - version = "0.0.3"; 25 26 src = fetchgit { 27 url = "https://git.libcamera.org/libcamera/libcamera.git"; 28 rev = "v${version}"; 29 - hash = "sha256-0/wvH07bJRKFwYnOARRJNzH8enIX3TNnWQnJdfpfvgE="; 30 }; 31 32 outputs = [ "out" "dev" "doc" ];
··· 21 22 stdenv.mkDerivation rec { 23 pname = "libcamera"; 24 + version = "0.0.5"; 25 26 src = fetchgit { 27 url = "https://git.libcamera.org/libcamera/libcamera.git"; 28 rev = "v${version}"; 29 + hash = "sha256-rd1YIEosg4+H/FJBYCoxdQlV9F0evU5fckHJrSdVPOE="; 30 }; 31 32 outputs = [ "out" "dev" "doc" ];
+26
pkgs/development/libraries/pipewire/0060-libjack-path.patch
···
··· 1 + diff --git a/src/modules/meson.build b/src/modules/meson.build 2 + index 5d2dc9984..35f5773aa 100644 3 + --- a/src/modules/meson.build 4 + +++ b/src/modules/meson.build 5 + @@ -169,6 +169,7 @@ if build_module_jack_tunnel 6 + install_dir : modules_install_dir, 7 + install_rpath: modules_install_dir, 8 + dependencies : [mathlib, dl_lib, pipewire_dep], 9 + + c_args: '-DNIXPKGS_LIBJACK_PATH="@0@"'.format(jack_dep.get_variable('libdir')) 10 + ) 11 + build_module_jackdbus_detect = dbus_dep.found() 12 + if build_module_jackdbus_detect 13 + diff --git a/src/modules/module-jack-tunnel/weakjack.h b/src/modules/module-jack-tunnel/weakjack.h 14 + index 42580f798..e7aadd3cc 100644 15 + --- a/src/modules/module-jack-tunnel/weakjack.h 16 + +++ b/src/modules/module-jack-tunnel/weakjack.h 17 + @@ -164,8 +164,7 @@ static inline int weakjack_load(struct weakjack *jack, const char *lib) 18 + 19 + search_dirs = getenv("LIBJACK_PATH"); 20 + if (!search_dirs) 21 + - search_dirs = PREFIX "/lib64/:" PREFIX "/lib/:" 22 + - "/usr/lib64/:/usr/lib/:" LIBDIR; 23 + + search_dirs = NIXPKGS_LIBJACK_PATH; 24 + 25 + while ((p = pw_split_walk(search_dirs, ":", &len, &state))) { 26 + int pathlen;
+4 -2
pkgs/development/libraries/pipewire/default.nix
··· 73 74 self = stdenv.mkDerivation rec { 75 pname = "pipewire"; 76 - version = "0.3.70"; 77 78 outputs = [ 79 "out" ··· 91 owner = "pipewire"; 92 repo = "pipewire"; 93 rev = version; 94 - sha256 = "sha256-xhJzE6JcfNcLMm+TqTIPaBEnEthEqUZiTqhWz1fO5Ng="; 95 }; 96 97 patches = [ ··· 99 ./0040-alsa-profiles-use-libdir.patch 100 # Change the path of the pipewire-pulse binary in the service definition. 101 ./0050-pipewire-pulse-path.patch 102 # Move installed tests into their own output. 103 ./0070-installed-tests-path.patch 104 # Add option for changing the config install directory
··· 73 74 self = stdenv.mkDerivation rec { 75 pname = "pipewire"; 76 + version = "0.3.71"; 77 78 outputs = [ 79 "out" ··· 91 owner = "pipewire"; 92 repo = "pipewire"; 93 rev = version; 94 + sha256 = "sha256-NPYWl+WeI/z70gNHX1BAKslGFX634D7XrV04vuJgGOo="; 95 }; 96 97 patches = [ ··· 99 ./0040-alsa-profiles-use-libdir.patch 100 # Change the path of the pipewire-pulse binary in the service definition. 101 ./0050-pipewire-pulse-path.patch 102 + # Load libjack from a known location 103 + ./0060-libjack-path.patch 104 # Move installed tests into their own output. 105 ./0070-installed-tests-path.patch 106 # Add option for changing the config install directory
+2 -2
pkgs/development/python-modules/grpcio-status/default.nix
··· 9 10 buildPythonPackage rec { 11 pname = "grpcio-status"; 12 - version = "1.54.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 inherit pname version; 19 - hash = "sha256-tQMF1SwN9haUk8yl8uObm013Oz8w1Kemtt18GMuJAHw="; 20 }; 21 22 postPatch = ''
··· 9 10 buildPythonPackage rec { 11 pname = "grpcio-status"; 12 + version = "1.54.2"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 inherit pname version; 19 + hash = "sha256-MlXL7Ft8cGyqPU3VhGBsCA5kFeFWMbsvYhXitwBVg20="; 20 }; 21 22 postPatch = ''
+2 -2
pkgs/development/python-modules/grpcio-tools/default.nix
··· 2 3 buildPythonPackage rec { 4 pname = "grpcio-tools"; 5 - version = "1.54.0"; 6 format = "setuptools"; 7 8 src = fetchPypi { 9 inherit pname version; 10 - hash = "sha256-33msv1mZcBjhMXE7cWov3bVVbhhA6fud5MpzvyBZWQ4="; 11 }; 12 13 postPatch = ''
··· 2 3 buildPythonPackage rec { 4 pname = "grpcio-tools"; 5 + version = "1.54.2"; 6 format = "setuptools"; 7 8 src = fetchPypi { 9 inherit pname version; 10 + hash = "sha256-4RwsKu5T80CZLo5NalkXLLu9AZPxNR3pjE+BClBB1co="; 11 }; 12 13 postPatch = ''
+2 -2
pkgs/development/python-modules/sqlalchemy/default.nix
··· 41 42 buildPythonPackage rec { 43 pname = "SQLAlchemy"; 44 - version = "2.0.9"; 45 format = "pyproject"; 46 47 disabled = pythonOlder "3.7"; ··· 50 owner = "sqlalchemy"; 51 repo = "sqlalchemy"; 52 rev = "refs/tags/rel_${lib.replaceStrings [ "." ] [ "_" ] version}"; 53 - hash = "sha256-0WlRZ7Kv6owtZB+PDFKk+8dxEL4p3QQrRPq8eQd2PqM="; 54 }; 55 56 nativeBuildInputs =[
··· 41 42 buildPythonPackage rec { 43 pname = "SQLAlchemy"; 44 + version = "2.0.13"; 45 format = "pyproject"; 46 47 disabled = pythonOlder "3.7"; ··· 50 owner = "sqlalchemy"; 51 repo = "sqlalchemy"; 52 rev = "refs/tags/rel_${lib.replaceStrings [ "." ] [ "_" ] version}"; 53 + hash = "sha256-tKxzKv0Ng0saybeFJNleCN5D8gOFw4z9m858OeddJH0="; 54 }; 55 56 nativeBuildInputs =[
+8
pkgs/development/python-modules/wrapt/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pytestCheckHook 5 }: 6 7 buildPythonPackage rec { 8 pname = "wrapt"; 9 version = "1.14.1"; 10 format = "setuptools"; 11 12 src = fetchFromGitHub { ··· 18 19 nativeCheckInputs = [ 20 pytestCheckHook 21 ]; 22 23 pythonImportsCheck = [
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , pytestCheckHook 5 + , sphinxHook 6 + , sphinx-rtd-theme 7 }: 8 9 buildPythonPackage rec { 10 pname = "wrapt"; 11 version = "1.14.1"; 12 + outputs = [ "out" "doc" ]; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { ··· 21 22 nativeCheckInputs = [ 23 pytestCheckHook 24 + ]; 25 + 26 + nativeBuildInputs = [ 27 + sphinxHook 28 + sphinx-rtd-theme 29 ]; 30 31 pythonImportsCheck = [
+2 -2
pkgs/development/ruby-modules/bundler/default.nix
··· 4 inherit ruby; 5 name = "${gemName}-${version}"; 6 gemName = "bundler"; 7 - version = "2.4.12"; 8 - source.sha256 = "sha256-y1VM1Pi/Rx0XeTff5vUv7mCtcLtKr3ENcnD6SiTezk0="; 9 dontPatchShebangs = true; 10 11 postFixup = ''
··· 4 inherit ruby; 5 name = "${gemName}-${version}"; 6 gemName = "bundler"; 7 + version = "2.4.13"; 8 + source.sha256 = "sha256-EWU6pa5QfG29Vb9+m+iSbZmvrJtsDAjToZOK/rPnWos="; 9 dontPatchShebangs = true; 10 11 postFixup = ''
+2
pkgs/development/tools/misc/pahole/default.nix
··· 26 musl-obstack 27 ]; 28 29 # Put libraries in "lib" subdirectory, not top level of $out 30 cmakeFlags = [ "-D__LIB=lib" "-DLIBBPF_EMBEDDED=OFF" ]; 31
··· 26 musl-obstack 27 ]; 28 29 + patches = [ ./threading-reproducibility.patch ]; 30 + 31 # Put libraries in "lib" subdirectory, not top level of $out 32 cmakeFlags = [ "-D__LIB=lib" "-DLIBBPF_EMBEDDED=OFF" ]; 33
+18
pkgs/development/tools/misc/pahole/threading-reproducibility.patch
···
··· 1 + diff --git a/pahole.c b/pahole.c 2 + index 6fc4ed6..a4e306f 100644 3 + --- a/pahole.c 4 + +++ b/pahole.c 5 + @@ -1687,8 +1687,11 @@ static error_t pahole__options_parser(int key, char *arg, 6 + class_name = arg; break; 7 + case 'j': 8 + #if _ELFUTILS_PREREQ(0, 178) 9 + - conf_load.nr_jobs = arg ? atoi(arg) : 10 + - sysconf(_SC_NPROCESSORS_ONLN) * 1.1; 11 + + // Force single thread if reproducibility is desirable. 12 + + if (!getenv("SOURCE_DATE_EPOCH")) { 13 + + conf_load.nr_jobs = arg ? atoi(arg) : 14 + + sysconf(_SC_NPROCESSORS_ONLN) * 1.1; 15 + + } 16 + #else 17 + fputs("pahole: Multithreading requires elfutils >= 0.178. Continuing with a single thread...\n", stderr); 18 + #endif
+2 -2
pkgs/os-specific/linux/alsa-project/alsa-ucm-conf/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "alsa-ucm-conf"; 5 - version = "1.2.8"; 6 7 src = fetchurl { 8 url = "mirror://alsa/lib/${pname}-${version}.tar.bz2"; 9 - hash = "sha256-/uSnN4MP0l+WnYPaRqKyMb6whu/ZZvzAfSJeeCMmCug="; 10 }; 11 12 dontBuild = true;
··· 2 3 stdenv.mkDerivation rec { 4 pname = "alsa-ucm-conf"; 5 + version = "1.2.9"; 6 7 src = fetchurl { 8 url = "mirror://alsa/lib/${pname}-${version}.tar.bz2"; 9 + hash = "sha256-N09oM7/XfQpGdeSqK/t53v6FDlpGpdRUKkWWL0ueJyo="; 10 }; 11 12 dontBuild = true;
+10 -10
pkgs/servers/sql/postgresql/default.nix
··· 290 291 mkPackages = self: { 292 postgresql_11 = self.callPackage generic { 293 - version = "11.19"; 294 psqlSchema = "11.1"; # should be 11, but changing it is invasive 295 - hash = "sha256-ExCeK3HxE5QFwnIB2jczphrOcu4cIo2cnwMg4GruFMI="; 296 this = self.postgresql_11; 297 thisAttr = "postgresql_11"; 298 inherit self; 299 }; 300 301 postgresql_12 = self.callPackage generic { 302 - version = "12.14"; 303 psqlSchema = "12"; 304 - hash = "sha256-eFYQI304LIQtNW40cTjljAb/6uJA5swLUqxevMMNBD4="; 305 this = self.postgresql_12; 306 thisAttr = "postgresql_12"; 307 inherit self; 308 }; 309 310 postgresql_13 = self.callPackage generic { 311 - version = "13.10"; 312 psqlSchema = "13"; 313 - hash = "sha256-W7z1pW2FxE86iwWPtGhi/0nLyRg00H4pXQLm3jwhbfI="; 314 this = self.postgresql_13; 315 thisAttr = "postgresql_13"; 316 inherit self; 317 }; 318 319 postgresql_14 = self.callPackage generic { 320 - version = "14.7"; 321 psqlSchema = "14"; 322 - hash = "sha256-zvYPAJj6gQHBVG9CVORbcir1QxM3lFs3ryBwB2MNszE="; 323 this = self.postgresql_14; 324 thisAttr = "postgresql_14"; 325 inherit self; 326 }; 327 328 postgresql_15 = self.callPackage generic { 329 - version = "15.2"; 330 psqlSchema = "15"; 331 - hash = "sha256-maIXH8PWtbX1a3V6ejy4XVCaOOQnOAXe8jlB7SuEaMc="; 332 this = self.postgresql_15; 333 thisAttr = "postgresql_15"; 334 inherit self;
··· 290 291 mkPackages = self: { 292 postgresql_11 = self.callPackage generic { 293 + version = "11.20"; 294 psqlSchema = "11.1"; # should be 11, but changing it is invasive 295 + hash = "sha256-PXyIgvZKfphTSgRCV9/uerrXelt9oSUI2F1yK5i1rM4="; 296 this = self.postgresql_11; 297 thisAttr = "postgresql_11"; 298 inherit self; 299 }; 300 301 postgresql_12 = self.callPackage generic { 302 + version = "12.15"; 303 psqlSchema = "12"; 304 + hash = "sha256-u1IG4oZMHEV5k4uW6mCW0VXyKr8tLMKqV1cePEyxKzY="; 305 this = self.postgresql_12; 306 thisAttr = "postgresql_12"; 307 inherit self; 308 }; 309 310 postgresql_13 = self.callPackage generic { 311 + version = "13.11"; 312 psqlSchema = "13"; 313 + hash = "sha256-SZL/ZHIDVmtnDU5U3FMXSZomhWyTV20OqVG99r7lC/s="; 314 this = self.postgresql_13; 315 thisAttr = "postgresql_13"; 316 inherit self; 317 }; 318 319 postgresql_14 = self.callPackage generic { 320 + version = "14.8"; 321 psqlSchema = "14"; 322 + hash = "sha256-OdOPADBzftA4Nd6+7+47N9M1RizkmV4kl7w41iHr5Fo="; 323 this = self.postgresql_14; 324 thisAttr = "postgresql_14"; 325 inherit self; 326 }; 327 328 postgresql_15 = self.callPackage generic { 329 + version = "15.3"; 330 psqlSchema = "15"; 331 + hash = "sha256-/8fUiR8A/79cP06rf7vO2EYLjA7mPFpRZxM7nmWZ2TI="; 332 this = self.postgresql_15; 333 thisAttr = "postgresql_15"; 334 inherit self;
+3 -3
pkgs/servers/x11/xorg/default.nix
··· 1453 # THIS IS A GENERATED FILE. DO NOT EDIT! 1454 libxcvt = callPackage ({ stdenv, pkg-config, fetchurl, meson, ninja }: stdenv.mkDerivation { 1455 pname = "libxcvt"; 1456 - version = "0.1.1"; 1457 builder = ./builder.sh; 1458 src = fetchurl { 1459 - url = "mirror://xorg/individual/lib/libxcvt-0.1.1.tar.xz"; 1460 - sha256 = "0acc7vrj5kfb19zvyl7f29rnsvx383dvwc19k70r8prm1lccxsr7"; 1461 }; 1462 hardeningDisable = [ "bindnow" "relro" ]; 1463 strictDeps = true;
··· 1453 # THIS IS A GENERATED FILE. DO NOT EDIT! 1454 libxcvt = callPackage ({ stdenv, pkg-config, fetchurl, meson, ninja }: stdenv.mkDerivation { 1455 pname = "libxcvt"; 1456 + version = "0.1.2"; 1457 builder = ./builder.sh; 1458 src = fetchurl { 1459 + url = "mirror://xorg/individual/lib/libxcvt-0.1.2.tar.xz"; 1460 + sha256 = "0f6vf47lay9y288n8yg9ckjgz5ypn2hnp03ipp7javkr8h2njq85"; 1461 }; 1462 hardeningDisable = [ "bindnow" "relro" ]; 1463 strictDeps = true;
+1 -1
pkgs/servers/x11/xorg/tarballs.list
··· 180 mirror://xorg/individual/lib/libxcb-1.14.tar.xz 181 mirror://xorg/individual/lib/libXcomposite-0.4.5.tar.bz2 182 mirror://xorg/individual/lib/libXcursor-1.2.0.tar.bz2 183 - mirror://xorg/individual/lib/libxcvt-0.1.1.tar.xz 184 mirror://xorg/individual/lib/libXdamage-1.1.5.tar.bz2 185 mirror://xorg/individual/lib/libXdmcp-1.1.3.tar.bz2 186 mirror://xorg/individual/lib/libXext-1.3.4.tar.bz2
··· 180 mirror://xorg/individual/lib/libxcb-1.14.tar.xz 181 mirror://xorg/individual/lib/libXcomposite-0.4.5.tar.bz2 182 mirror://xorg/individual/lib/libXcursor-1.2.0.tar.bz2 183 + mirror://xorg/individual/lib/libxcvt-0.1.2.tar.xz 184 mirror://xorg/individual/lib/libXdamage-1.1.5.tar.bz2 185 mirror://xorg/individual/lib/libXdmcp-1.1.3.tar.bz2 186 mirror://xorg/individual/lib/libXext-1.3.4.tar.bz2