lol

Merge #144730: branch 'staging-next'

+2000 -1976
+36 -7
doc/languages-frameworks/rust.section.md
··· 186 186 `lib.fakeHash` as a stub hash. Building the package (and thus the 187 187 vendored dependencies) will then inform you of the correct hash. 188 188 189 + ### Cargo features {#cargo-features} 190 + 191 + You can disable default features using `buildNoDefaultFeatures`, and 192 + extra features can be added with `buildFeatures`. 193 + 194 + If you want to use different features for check phase, you can use 195 + `checkNoDefaultFeatures` and `checkFeatures`. They are only passed to 196 + `cargo test` and not `cargo build`. If left unset, they default to 197 + `buildNoDefaultFeatures` and `buildFeatures`. 198 + 199 + For example: 200 + 201 + ```nix 202 + rustPlatform.buildRustPackage rec { 203 + pname = "myproject"; 204 + version = "1.0.0"; 205 + 206 + buildNoDefaultFeatures = true; 207 + buildFeatures = [ "color" "net" ]; 208 + 209 + # disable network features in tests 210 + checkFeatures = [ "color" ]; 211 + 212 + # ... 213 + } 214 + ``` 215 + 189 216 ### Cross compilation {#cross-compilation} 190 217 191 218 By default, Rust packages are compiled for the host platform, just like any ··· 261 288 Please note that the code will be compiled twice here: once in `release` mode 262 289 for the `buildPhase`, and again in `debug` mode for the `checkPhase`. 263 290 264 - Test flags, e.g., `--features xxx/yyy`, can be passed to `cargo test` via the 291 + Test flags, e.g., `--package foo`, can be passed to `cargo test` via the 265 292 `cargoTestFlags` attribute. 266 293 267 294 Another attribute, called `checkFlags`, is used to pass arguments to the test ··· 421 448 * `cargoBuildHook`: use Cargo to build a crate. If the crate to be 422 449 built is a crate in e.g. a Cargo workspace, the relative path to the 423 450 crate to build can be set through the optional `buildAndTestSubdir` 424 - environment variable. Additional Cargo build flags can be passed 425 - through `cargoBuildFlags`. 451 + environment variable. Features can be specified with 452 + `cargoBuildNoDefaultFeatures` and `cargoBuildFeatures`. Additional 453 + Cargo build flags can be passed through `cargoBuildFlags`. 426 454 * `maturinBuildHook`: use [Maturin](https://github.com/PyO3/maturin) 427 455 to build a Python wheel. Similar to `cargoBuildHook`, the optional 428 456 variable `buildAndTestSubdir` can be used to build a crate in a 429 457 Cargo workspace. Additional Maturin flags can be passed through 430 458 `maturinBuildFlags`. 431 459 * `cargoCheckHook`: run tests using Cargo. The build type for checks 432 - can be set using `cargoCheckType`. Additional flags can be passed to 433 - the tests using `checkFlags` and `checkFlagsArray`. By default, 434 - tests are run in parallel. This can be disabled by setting 435 - `dontUseCargoParallelTests`. 460 + can be set using `cargoCheckType`. Features can be specified with 461 + `cargoCheckNoDefaultFeaatures` and `cargoCheckFeatures`. Additional 462 + flags can be passed to the tests using `checkFlags` and 463 + `checkFlagsArray`. By default, tests are run in parallel. This can 464 + be disabled by setting `dontUseCargoParallelTests`. 436 465 * `cargoInstallHook`: install binaries and static/shared libraries 437 466 that were built using `cargoBuildHook`. 438 467
+8
nixos/doc/manual/from_md/release-notes/rl-2111.section.xml
··· 1317 1317 </listitem> 1318 1318 <listitem> 1319 1319 <para> 1320 + The <literal>fluidsynth_1</literal> attribute has been 1321 + removed, as this legacy version is no longer needed in 1322 + nixpkgs. The actively maintained 2.x series is available as 1323 + <literal>fluidsynth</literal> unchanged. 1324 + </para> 1325 + </listitem> 1326 + <listitem> 1327 + <para> 1320 1328 Nextcloud 20 (<literal>pkgs.nextcloud20</literal>) has been 1321 1329 dropped because it was EOLed by upstream in 2021-10. 1322 1330 </para>
+2
nixos/doc/manual/release-notes/rl-2111.section.md
··· 393 393 - The `services.mosquitto` module has been rewritten to support multiple listeners and per-listener configuration. 394 394 Module configurations from previous releases will no longer work and must be updated. 395 395 396 + - The `fluidsynth_1` attribute has been removed, as this legacy version is no longer needed in nixpkgs. The actively maintained 2.x series is available as `fluidsynth` unchanged. 397 + 396 398 - Nextcloud 20 (`pkgs.nextcloud20`) has been dropped because it was EOLed by upstream in 2021-10. 397 399 398 400 - The `virtualisation.pathsInNixDB` option was renamed
+46
nixos/modules/security/pam.nix
··· 197 197 ''; 198 198 }; 199 199 200 + ttyAudit = { 201 + enable = mkOption { 202 + type = types.bool; 203 + default = false; 204 + description = '' 205 + Enable or disable TTY auditing for specified users 206 + ''; 207 + }; 208 + 209 + enablePattern = mkOption { 210 + type = types.nullOr types.str; 211 + default = null; 212 + description = '' 213 + For each user matching one of comma-separated 214 + glob patterns, enable TTY auditing 215 + ''; 216 + }; 217 + 218 + disablePattern = mkOption { 219 + type = types.nullOr types.str; 220 + default = null; 221 + description = '' 222 + For each user matching one of comma-separated 223 + glob patterns, disable TTY auditing 224 + ''; 225 + }; 226 + 227 + openOnly = mkOption { 228 + type = types.bool; 229 + default = false; 230 + description = '' 231 + Set the TTY audit flag when opening the session, 232 + but do not restore it when closing the session. 233 + Using this option is necessary for some services 234 + that don't fork() to run the authenticated session, 235 + such as sudo. 236 + ''; 237 + }; 238 + }; 239 + 200 240 forwardXAuth = mkOption { 201 241 default = false; 202 242 type = types.bool; ··· 482 522 "session ${ 483 523 if config.boot.isContainer then "optional" else "required" 484 524 } pam_loginuid.so"} 525 + ${optionalString cfg.ttyAudit.enable 526 + "session required ${pkgs.pam}/lib/security/pam_tty_audit.so 527 + open_only=${toString cfg.ttyAudit.openOnly} 528 + ${optionalString (cfg.ttyAudit.enablePattern != null) "enable=${cfg.ttyAudit.enablePattern}"} 529 + ${optionalString (cfg.ttyAudit.disablePattern != null) "disable=${cfg.ttyAudit.disablePattern}"} 530 + "} 485 531 ${optionalString cfg.makeHomeDir 486 532 "session required ${pkgs.pam}/lib/security/pam_mkhomedir.so silent skel=${config.security.pam.makeHomeDir.skelDirectory} umask=0077"} 487 533 ${optionalString cfg.updateWtmp
+1
nixos/tests/all-tests.nix
··· 219 219 kerberos = handleTest ./kerberos/default.nix {}; 220 220 kernel-generic = handleTest ./kernel-generic.nix {}; 221 221 kernel-latest-ath-user-regd = handleTest ./kernel-latest-ath-user-regd.nix {}; 222 + kexec = handleTest ./kexec.nix {}; 222 223 keycloak = discoverTests (import ./keycloak.nix); 223 224 keymap = handleTest ./keymap.nix {}; 224 225 knot = handleTest ./knot.nix {};
+3 -6
nixos/tests/kexec.nix
··· 4 4 name = "kexec"; 5 5 meta = with lib.maintainers; { 6 6 maintainers = [ eelco ]; 7 - # Currently hangs forever; last output is: 8 - # machine # [ 10.239914] dhcpcd[707]: eth0: adding default route via fe80::2 9 - # machine: waiting for the VM to finish booting 10 - # machine # Cannot find the ESP partition mount point. 11 - # machine # [ 28.681197] nscd[692]: 692 checking for monitored file `/etc/netgroup': No such file or directory 12 - broken = true; 13 7 }; 14 8 15 9 machine = { ... }: ··· 18 12 testScript = 19 13 '' 20 14 machine.wait_for_unit("multi-user.target") 15 + machine.succeed('kexec --load /run/current-system/kernel --initrd /run/current-system/initrd --command-line "$(</proc/cmdline)"') 21 16 machine.execute("systemctl kexec >&2 &", check_return=False) 22 17 machine.connected = False 18 + machine.connect() 23 19 machine.wait_for_unit("multi-user.target") 20 + machine.shutdown() 24 21 ''; 25 22 })
+9
pkgs/applications/audio/cdparanoia/default.nix
··· 35 35 cp ${gnu-config}/config.guess configure.guess 36 36 ''; 37 37 38 + # Build system reuses the same object file names for shared and static 39 + # library. Occasionally fails in the middle: 40 + # gcc -O2 -fsigned-char -g -O2 -c scan_devices.c 41 + # rm -f *.o core *~ *.out 42 + # gcc -O2 -fsigned-char -g -O2 -fpic -c scan_devices.c 43 + # gcc -fpic -shared -o libcdda_interface.so.0.10.2 ... scan_devices.o ... 44 + # scan_devices.o: file not recognized: file format not recognized 45 + enableParallelBuilding = false; 46 + 38 47 meta = with lib; { 39 48 homepage = "https://xiph.org/paranoia"; 40 49 description = "A tool and library for reading digital audio from CDs";
+6
pkgs/applications/audio/espeak-ng/default.nix
··· 35 35 "--with-mbrola=${if mbrolaSupport then "yes" else "no"}" 36 36 ]; 37 37 38 + # Current release lacks dependencies on local espeak-ng: 39 + # cd dictsource && ESPEAK_DATA_PATH=/build/espeak-ng LD_LIBRARY_PATH=../src: ../src/espeak-ng --compile=yue && cd .. 40 + # bash: line 1: ../src/espeak-ng: No such file or directory 41 + # Should be fixed in next release: https://github.com/espeak-ng/espeak-ng/pull/1029 42 + enableParallelBuilding = false; 43 + 38 44 postInstall = lib.optionalString stdenv.isLinux '' 39 45 patchelf --set-rpath "$(patchelf --print-rpath $out/bin/espeak-ng)" $out/bin/speak-ng 40 46 '';
+5 -21
pkgs/applications/audio/fluidsynth/default.nix
··· 1 1 { stdenv, lib, fetchFromGitHub, pkg-config, cmake 2 2 , alsa-lib, glib, libjack2, libsndfile, libpulseaudio 3 3 , AudioUnit, CoreAudio, CoreMIDI, CoreServices 4 - , version ? "2" 5 4 }: 6 5 7 - let 8 - versionMap = { 9 - "1" = { 10 - fluidsynthVersion = "1.1.11"; 11 - sha256 = "0n75jq3xgq46hfmjkaaxz3gic77shs4fzajq40c8gk043i84xbdh"; 12 - }; 13 - "2" = { 14 - fluidsynthVersion = "2.2.3"; 15 - sha256 = "0x5808d03ym23np17nl8gfbkx3c4y3d7jyyr2222wn2prswbb6x3"; 16 - }; 17 - }; 18 - in 19 - 20 - with versionMap.${version}; 21 - 22 - stdenv.mkDerivation { 23 - name = "fluidsynth-${fluidsynthVersion}"; 24 - version = fluidsynthVersion; 6 + stdenv.mkDerivation rec { 7 + pname = "fluidsynth"; 8 + version = "2.2.3"; 25 9 26 10 src = fetchFromGitHub { 27 11 owner = "FluidSynth"; 28 12 repo = "fluidsynth"; 29 - rev = "v${fluidsynthVersion}"; 30 - inherit sha256; 13 + rev = "v${version}"; 14 + sha256 = "0x5808d03ym23np17nl8gfbkx3c4y3d7jyyr2222wn2prswbb6x3"; 31 15 }; 32 16 33 17 nativeBuildInputs = [ pkg-config cmake ];
+7 -9
pkgs/applications/audio/ncspot/default.nix
··· 5 5 , withMPRIS ? false, dbus ? null 6 6 }: 7 7 8 - let 9 - features = [ "cursive/pancurses-backend" ] 10 - ++ lib.optional withALSA "alsa_backend" 11 - ++ lib.optional withPulseAudio "pulseaudio_backend" 12 - ++ lib.optional withPortAudio "portaudio_backend" 13 - ++ lib.optional withMPRIS "mpris"; 14 - in 15 8 rustPlatform.buildRustPackage rec { 16 9 pname = "ncspot"; 17 10 version = "0.9.0"; ··· 25 18 26 19 cargoSha256 = "0sdbba32f56z2q7kha5fxw2f00hikbz9sf4zl4wfl2i9b13j7mj0"; 27 20 28 - cargoBuildFlags = [ "--no-default-features" "--features" "${lib.concatStringsSep "," features}" ]; 29 - 30 21 nativeBuildInputs = [ pkg-config ]; 31 22 32 23 buildInputs = [ ncurses openssl ] ··· 35 26 ++ lib.optional withPulseAudio libpulseaudio 36 27 ++ lib.optional withPortAudio portaudio 37 28 ++ lib.optional withMPRIS dbus; 29 + 30 + buildNoDefaultFeatures = true; 31 + buildFeatures = [ "cursive/pancurses-backend" ] 32 + ++ lib.optional withALSA "alsa_backend" 33 + ++ lib.optional withPulseAudio "pulseaudio_backend" 34 + ++ lib.optional withPortAudio "portaudio_backend" 35 + ++ lib.optional withMPRIS "mpris"; 38 36 39 37 doCheck = false; 40 38
+1 -1
pkgs/applications/audio/whipper/default.nix
··· 42 42 mutagen 43 43 pycdio 44 44 pygobject3 45 - ruamel_yaml 45 + ruamel-yaml 46 46 discid 47 47 pillow 48 48 ];
+6
pkgs/applications/display-managers/sddm/default.nix
··· 26 26 url = "https://github.com/sddm/sddm/commit/e1dedeeab6de565e043f26ac16033e613c222ef9.patch"; 27 27 sha256 = "sha256-OPyrUI3bbH+PGDBfoL4Ohb4wIvmy9TeYZhE0JxR/D58="; 28 28 }) 29 + # Fix build with Qt 5.15.3 30 + # See: https://github.com/sddm/sddm/pull/1325 31 + (fetchpatch { 32 + url = "https://github.com/sddm/sddm/commit/e93bf95c54ad8c2a1604f8d7be05339164b19308.patch"; 33 + sha256 = "sha256:1rh6sdvzivjcl5b05fczarvxhgpjhi7019hvf2gadnwgwdg104r4"; 34 + }) 29 35 ]; 30 36 31 37 postPatch =
+3 -3
pkgs/applications/editors/helix/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "helix"; 5 - version = "0.4.1"; 5 + version = "0.5.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "helix-editor"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 11 fetchSubmodules = true; 12 - sha256 = "sha256-lScMHZ/pLcHkuvv8kSKnYK5AFVxyhOUMFdsu3nlDVD0="; 12 + sha256 = "sha256-NoVg/8oJIgMQtxlCSjrLnYCG8shigYqZzWAQwmiqxgA="; 13 13 }; 14 14 15 - cargoSha256 = "sha256-N5vlPoYyksHEZsyia8u8qtoEBY6qsXqO9CRBFaTQmiw="; 15 + cargoSha256 = "sha256-kqPI8WpGpr0VL7CbBTSsjKl3xqJrv/6Qjr6UFnIgaVo="; 16 16 17 17 nativeBuildInputs = [ makeWrapper ]; 18 18
+2 -2
pkgs/applications/editors/vim/common.nix
··· 1 1 { lib, fetchFromGitHub }: 2 2 rec { 3 - version = "8.2.3337"; 3 + version = "8.2.3451"; 4 4 5 5 src = fetchFromGitHub { 6 6 owner = "vim"; 7 7 repo = "vim"; 8 8 rev = "v${version}"; 9 - sha256 = "sha256-iwSGcLeqXH0bVIXEI5OnotG88Uv8ntycisD9EcHjz/c="; 9 + sha256 = "sha256-8OaEaFyOaL59j0EZkUY+kuR6si79H2dN09f8SnltxbQ="; 10 10 }; 11 11 12 12 enableParallelBuilding = true;
+3 -3
pkgs/applications/graphics/epick/default.nix
··· 16 16 17 17 rustPlatform.buildRustPackage rec { 18 18 pname = "epick"; 19 - version = "0.5.1"; 19 + version = "0.6.0"; 20 20 21 21 src = fetchFromGitHub { 22 22 owner = "vv9k"; 23 23 repo = pname; 24 24 rev = version; 25 - sha256 = "0l7m45bqx62nrwi0r4pdwxcq37s7h3nnawk9nq2zpvl9wcgnx3gc"; 25 + sha256 = "sha256-x1C8kY9VpMg7aXgC/jRsLCeUV8uRLobgjSAQdK2/sHk="; 26 26 }; 27 27 28 - cargoSha256 = "sha256-LERV3+zwt5oVfyueGfxM7HsOha4cuWTkPyvPQwHSZqo="; 28 + cargoSha256 = "sha256-KgQOlvKRt47lg7NteqBa2DLKkDf93JTzp9EIHn3clxY="; 29 29 30 30 nativeBuildInputs = lib.optional stdenv.isLinux python3; 31 31
+4 -4
pkgs/applications/graphics/menyoki/default.nix
··· 11 11 12 12 rustPlatform.buildRustPackage rec { 13 13 pname = "menyoki"; 14 - version = "1.5.3"; 14 + version = "1.5.5"; 15 15 16 16 src = fetchFromGitHub { 17 17 owner = "orhun"; 18 18 repo = pname; 19 19 rev = "v${version}"; 20 - sha256 = "050c6c60il6cy0a8d3nw4z2cyp043912a7n4n44yjpmx047w7kc7"; 20 + sha256 = "sha256-wEPt96z/odQ05hosN+GB5KLsCu8onR9WWamofJayhwU="; 21 21 }; 22 22 23 - cargoSha256 = "0wwcda2w8jg3q132cvhdgfmjc0rz93fx6fai93g5w8br98aq9qzx"; 23 + cargoSha256 = "sha256-nwxBreouL3Z47zHSH+Y/ej7KU2/bXyMQ+Tb7R4U+yKk="; 24 24 25 25 nativeBuildInputs = [ installShellFiles ] 26 26 ++ lib.optional stdenv.isLinux pkg-config; ··· 37 37 meta = with lib; { 38 38 description = "Screen{shot,cast} and perform ImageOps on the command line"; 39 39 homepage = "https://menyoki.cli.rs/"; 40 + changelog = "https://github.com/orhun/menyoki/blob/v${version}/CHANGELOG.md"; 40 41 license = licenses.gpl3Only; 41 42 maintainers = with maintainers; [ figsoda ]; 42 - broken = stdenv.isDarwin; 43 43 }; 44 44 }
+4 -3
pkgs/applications/misc/khard/default.nix
··· 17 17 propagatedBuildInputs = with python3.pkgs; [ 18 18 atomicwrites 19 19 configobj 20 + ruamel-yaml 21 + unidecode 20 22 vobject 21 - ruamel_yaml 22 - ruamel_base 23 - unidecode 24 23 ]; 25 24 26 25 postInstall = '' ··· 31 30 # see https://github.com/scheibler/khard/issues/263 32 31 export COLUMNS=80 33 32 ''; 33 + 34 + pythonImportsCheck = [ "khard" ]; 34 35 35 36 meta = { 36 37 homepage = "https://github.com/scheibler/khard";
+1 -1
pkgs/applications/misc/robo3t/default.nix
··· 15 15 }: 16 16 17 17 let 18 - curlWithGnuTls = curl.override { gnutlsSupport = true; sslSupport = false; }; 18 + curlWithGnuTls = curl.override { gnutlsSupport = true; opensslSupport = false; }; 19 19 in 20 20 21 21 stdenv.mkDerivation rec {
+10 -1
pkgs/applications/networking/browsers/firefox/common.nix
··· 110 110 # When LTO for Darwin is fixed, the following will need updating as lld 111 111 # doesn't work on it. For now it is fine since ltoSupport implies no Darwin. 112 112 buildStdenv = if ltoSupport 113 - then overrideCC stdenv llvmPackages.clangUseLLVM 113 + # LTO requires LLVM bintools including ld.lld and llvm-ar. 114 + then overrideCC llvmPackages.stdenv (llvmPackages.stdenv.cc.override { 115 + inherit (llvmPackages) bintools; 116 + }) 114 117 else stdenv; 115 118 116 119 # --enable-release adds -ffunction-sections & LTO that require a big amount of ··· 131 134 ] ++ 132 135 lib.optional (lib.versionAtLeast version "86") ./env_var_for_system_dir-ff86.patch ++ 133 136 lib.optional (lib.versionAtLeast version "90") ./no-buildconfig-ffx90.patch ++ 137 + # This fixes a race condition causing deadlock. 138 + # https://phabricator.services.mozilla.com/D128657 139 + lib.optional (lib.versionAtLeast version "94") (fetchpatch { 140 + url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/9c7f25d45bb1dd6b1a865780bc249cdaa619aa83/trunk/0002-Bug-1735905-Upgrade-cubeb-pulse-to-fix-a-race-condit.patch"; 141 + sha256 = "l4bMK/YDXcDpIjPy9DPuUSFyDpzVQca201A4h9eav5g="; 142 + }) ++ 134 143 patches; 135 144 136 145 # Ignore trivial whitespace changes in patches, this fixes compatibility of
+2
pkgs/applications/office/libreoffice/default.nix
··· 78 78 tar -xf ${srcs.translations} 79 79 ''; 80 80 81 + patches = [ ./skip-failed-test-with-icu70.patch ]; 82 + 81 83 ### QT/KDE 82 84 # 83 85 # We have to resort to the ugly patching of configure.ac as it assumes that
+29
pkgs/applications/office/libreoffice/skip-failed-test-with-icu70.patch
··· 1 + --- a/i18npool/qa/cppunit/test_breakiterator.cxx 2 + +++ b/i18npool/qa/cppunit/test_breakiterator.cxx 3 + @@ -35,7 +35,7 @@ public: 4 + void testWeak(); 5 + void testAsian(); 6 + void testThai(); 7 + -#if (U_ICU_VERSION_MAJOR_NUM > 51) 8 + +#if (U_ICU_VERSION_MAJOR_NUM > 51 && U_ICU_VERSION_MAJOR_NUM < 70) 9 + void testLao(); 10 + #ifdef TODO 11 + void testNorthernThai(); 12 + @@ -52,7 +52,7 @@ public: 13 + CPPUNIT_TEST(testWeak); 14 + CPPUNIT_TEST(testAsian); 15 + CPPUNIT_TEST(testThai); 16 + -#if (U_ICU_VERSION_MAJOR_NUM > 51) 17 + +#if (U_ICU_VERSION_MAJOR_NUM > 51 && U_ICU_VERSION_MAJOR_NUM < 70) 18 + CPPUNIT_TEST(testLao); 19 + #ifdef TODO 20 + CPPUNIT_TEST(testKhmer); 21 + @@ -843,7 +843,7 @@ void TestBreakIterator::testAsian() 22 + } 23 + } 24 + 25 + -#if (U_ICU_VERSION_MAJOR_NUM > 51) 26 + +#if (U_ICU_VERSION_MAJOR_NUM > 51 && U_ICU_VERSION_MAJOR_NUM < 70) 27 + //A test to ensure that our Lao word boundary detection is useful 28 + void TestBreakIterator::testLao() 29 + {
+1 -1
pkgs/applications/office/libreoffice/src-still/override.nix
··· 9 9 "--with-commons-logging-jar=${commonsLogging}/share/java/commons-logging-1.2.jar" 10 10 "--without-system-qrcodegen" 11 11 ]; 12 - patches = [ ../xdg-open-brief.patch ]; # drop this when switching to 7.2 12 + patches = attrs.patches or [] ++ [ ../xdg-open-brief.patch ]; # drop this when switching to 7.2 13 13 }
+4 -4
pkgs/applications/office/libreoffice/src-still/primary.nix
··· 8 8 9 9 major = "7"; 10 10 minor = "1"; 11 - patch = "6"; 11 + patch = "7"; 12 12 tweak = "2"; 13 13 14 14 subdir = "${major}.${minor}.${patch}"; ··· 17 17 18 18 src = fetchurl { 19 19 url = "https://download.documentfoundation.org/libreoffice/src/${subdir}/libreoffice-${version}.tar.xz"; 20 - sha256 = "1g1nlnmgxka1xj3800ra7j28y08k1irz7a24awx1gyjs9fci58qq"; 20 + sha256 = "T98ICdiAM4i9E6zis0V/Cmq5+e98mNb0bMZA//xelLo="; 21 21 }; 22 22 23 23 # FIXME rename 24 24 translations = fetchSrc { 25 25 name = "translations"; 26 - sha256 = "0kblfwcnsc0pz96wxmkghmchjd31h0w1wjxlqxqbqqpz3vbr61k3"; 26 + sha256 = "g8skm02R5nRyF09ZbL9kJqMxRqaQ0AfpletDK3AAggk="; 27 27 }; 28 28 29 29 # the "dictionaries" archive is not used for LO build because we already build hunspellDicts packages from ··· 31 31 32 32 help = fetchSrc { 33 33 name = "help"; 34 - sha256 = "1b28xqgvfnx62zgnxfisi58r7nhixvz35pmq8cb20ayxhdfg6v31"; 34 + sha256 = "jAFrO4RyONhPH3H5QW0SL8Id53bBvJ7AYxSNtLhG4rQ="; 35 35 }; 36 36 }
+1 -1
pkgs/applications/version-management/git-and-tools/lucky-commit/default.nix
··· 25 25 cargoBuildFlags = lib.optional (!withOpenCL) "--no-default-features"; 26 26 27 27 # disable tests that require gpu 28 - cargoTestFlags = [ "--no-default-features" ]; 28 + checkNoDefaultFeatures = true; 29 29 30 30 meta = with lib; { 31 31 description = "Change the start of your git commit hashes to whatever you want";
+1 -1
pkgs/applications/version-management/gitkraken/default.nix
··· 9 9 with lib; 10 10 11 11 let 12 - curlWithGnuTls = curl.override { gnutlsSupport = true; sslSupport = false; }; 12 + curlWithGnuTls = curl.override { gnutlsSupport = true; opensslSupport = false; }; 13 13 pname = "gitkraken"; 14 14 version = "8.1.0"; 15 15
+1 -1
pkgs/applications/video/corrscope/default.nix
··· 34 34 35 35 buildInputs = [ ffmpeg qtbase ]; 36 36 37 - propagatedBuildInputs = with python3Packages; [ appdirs atomicwrites attrs click matplotlib numpy pyqt5 ruamel_yaml ]; 37 + propagatedBuildInputs = with python3Packages; [ appdirs atomicwrites attrs click matplotlib numpy pyqt5 ruamel-yaml ]; 38 38 39 39 dontWrapQtApps = true; 40 40
+1 -1
pkgs/applications/video/filebot/default.nix
··· 4 4 5 5 let 6 6 # FileBot requires libcurl-gnutls.so to build 7 - curlWithGnuTls = curl.override { gnutlsSupport = true; sslSupport = false; }; 7 + curlWithGnuTls = curl.override { gnutlsSupport = true; opensslSupport = false; }; 8 8 9 9 in 10 10
+1 -1
pkgs/build-support/appimage/default.nix
··· 106 106 xorg.libICE 107 107 gnome2.GConf 108 108 freetype 109 - (curl.override { gnutlsSupport = true; sslSupport = false; }) 109 + (curl.override { gnutlsSupport = true; opensslSupport = false; }) 110 110 nspr 111 111 nss 112 112 fontconfig
+12
pkgs/build-support/rust/build-rust-package/default.nix
··· 36 36 , cargoLock ? null 37 37 , cargoVendorDir ? null 38 38 , checkType ? buildType 39 + , buildNoDefaultFeatures ? false 40 + , checkNoDefaultFeatures ? buildNoDefaultFeatures 41 + , buildFeatures ? [ ] 42 + , checkFeatures ? buildFeatures 39 43 , depsExtraArgs ? {} 40 44 41 45 # Toggles whether a custom sysroot is created when the target is a .json file. ··· 102 106 cargoBuildType = buildType; 103 107 104 108 cargoCheckType = checkType; 109 + 110 + cargoBuildNoDefaultFeatures = buildNoDefaultFeatures; 111 + 112 + cargoCheckNoDefaultFeatures = checkNoDefaultFeatures; 113 + 114 + cargoBuildFeatures = buildFeatures; 115 + 116 + cargoCheckFeatures = checkFeatures; 105 117 106 118 patchRegistryDeps = ./patch-registry-deps; 107 119
+10
pkgs/build-support/rust/hooks/cargo-build-hook.sh
··· 13 13 cargoBuildProfileFlag="--${cargoBuildType}" 14 14 fi 15 15 16 + if [ -n "${cargoBuildNoDefaultFeatures-}" ]; then 17 + cargoBuildNoDefaultFeaturesFlag=--no-default-features 18 + fi 19 + 20 + if [ -n "${cargoBuildFeatures-}" ]; then 21 + cargoBuildFeaturesFlag="--features=${cargoBuildFeatures// /,}" 22 + fi 23 + 16 24 ( 17 25 set -x 18 26 env \ ··· 24 32 --target @rustTargetPlatformSpec@ \ 25 33 --frozen \ 26 34 ${cargoBuildProfileFlag} \ 35 + ${cargoBuildNoDefaultFeaturesFlag} \ 36 + ${cargoBuildFeaturesFlag} \ 27 37 ${cargoBuildFlags} 28 38 ) 29 39
+10 -1
pkgs/build-support/rust/hooks/cargo-check-hook.sh
··· 20 20 cargoCheckProfileFlag="--${cargoCheckType}" 21 21 fi 22 22 23 - argstr="${cargoCheckProfileFlag} --target @rustTargetPlatformSpec@ --frozen ${cargoTestFlags}"; 23 + if [ -n "${cargoCheckNoDefaultFeatures-}" ]; then 24 + cargoCheckNoDefaultFeaturesFlag=--no-default-features 25 + fi 26 + 27 + if [ -n "${cargoCheckFeatures-}" ]; then 28 + cargoCheckFeaturesFlag="--features=${cargoCheckFeatures// /,}" 29 + fi 30 + 31 + argstr="${cargoCheckProfileFlag} ${cargoCheckNoDefaultFeaturesFlag} ${cargoCheckFeaturesFlag} 32 + --target @rustTargetPlatformSpec@ --frozen ${cargoTestFlags}" 24 33 25 34 ( 26 35 set -x
+1 -1
pkgs/build-support/setup-hooks/validate-pkg-config.sh
··· 7 7 for pc in $(find "$prefix" -name '*.pc'); do 8 8 # Do not fail immediately. It's nice to see all errors when 9 9 # there are multiple pkgconfig files. 10 - if ! pkg-config --validate "$pc"; then 10 + if ! $PKG_CONFIG --validate "$pc"; then 11 11 bail=1 12 12 fi 13 13 done
+3 -5
pkgs/development/compilers/gcc/11/default.nix
··· 57 57 with builtins; 58 58 59 59 let majorVersion = "11"; 60 - version = "${majorVersion}.1.0"; 60 + version = "${majorVersion}.2.0"; 61 61 62 62 inherit (stdenv) buildPlatform hostPlatform targetPlatform; 63 63 ··· 78 78 }) 79 79 80 80 # Obtain latest patch with ../update-mcfgthread-patches.sh 81 - ++ optional (!crossStageStatic && targetPlatform.isMinGW) ./Added-mcf-thread-model-support-from-mcfgthread.patch 82 - 83 - ++ [ ../libsanitizer-no-cyclades.patch ]; 81 + ++ optional (!crossStageStatic && targetPlatform.isMinGW) ./Added-mcf-thread-model-support-from-mcfgthread.patch; 84 82 85 83 /* Cross-gcc settings (build == host != target) */ 86 84 crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt"; ··· 97 95 98 96 src = fetchurl { 99 97 url = "mirror://gcc/releases/gcc-${version}/gcc-${version}.tar.xz"; 100 - sha256 = "1pwxrjhsymv90xzh0x42cxfnmhjinf2lnrrf3hj5jq1rm2w6yjjc"; 98 + sha256 = "sha256-0I7cU2tUw3KhAQ/2YZ3SdMDxYDqkkhK6IPeqLNo2+os="; 101 99 }; 102 100 103 101 inherit patches;
+6
pkgs/development/compilers/openjdk/11.nix
··· 74 74 "-lgtk-3" "-lgio-2.0" "-lgnomevfs-2" "-lgconf-2" 75 75 ]); 76 76 77 + # -j flag is explicitly rejected by the build system: 78 + # Error: 'make -jN' is not supported, use 'make JOBS=N' 79 + # Note: it does not make build sequential. Build system 80 + # still runs in parallel. 81 + enableParallelBuilding = false; 82 + 77 83 buildFlags = [ "all" ]; 78 84 79 85 installPhase = ''
+6
pkgs/development/compilers/openjdk/12.nix
··· 83 83 "-lgtk-3" "-lgio-2.0" "-lgnomevfs-2" "-lgconf-2" 84 84 ]; 85 85 86 + # -j flag is explicitly rejected by the build system: 87 + # Error: 'make -jN' is not supported, use 'make JOBS=N' 88 + # Note: it does not make build sequential. Build system 89 + # still runs in parallel. 90 + enableParallelBuilding = false; 91 + 86 92 buildFlags = [ "all" ]; 87 93 88 94 installPhase = ''
+6
pkgs/development/compilers/openjdk/13.nix
··· 83 83 "-lgtk-3" "-lgio-2.0" "-lgnomevfs-2" "-lgconf-2" 84 84 ]); 85 85 86 + # -j flag is explicitly rejected by the build system: 87 + # Error: 'make -jN' is not supported, use 'make JOBS=N' 88 + # Note: it does not make build sequential. Build system 89 + # still runs in parallel. 90 + enableParallelBuilding = false; 91 + 86 92 buildFlags = [ "all" ]; 87 93 88 94 installPhase = ''
+6
pkgs/development/compilers/openjdk/14.nix
··· 78 78 "-lgtk-3" "-lgio-2.0" "-lgnomevfs-2" "-lgconf-2" 79 79 ]); 80 80 81 + # -j flag is explicitly rejected by the build system: 82 + # Error: 'make -jN' is not supported, use 'make JOBS=N' 83 + # Note: it does not make build sequential. Build system 84 + # still runs in parallel. 85 + enableParallelBuilding = false; 86 + 81 87 buildFlags = [ "all" ]; 82 88 83 89 installPhase = ''
+6
pkgs/development/compilers/openjdk/15.nix
··· 78 78 "-lgtk-3" "-lgio-2.0" "-lgnomevfs-2" "-lgconf-2" 79 79 ]); 80 80 81 + # -j flag is explicitly rejected by the build system: 82 + # Error: 'make -jN' is not supported, use 'make JOBS=N' 83 + # Note: it does not make build sequential. Build system 84 + # still runs in parallel. 85 + enableParallelBuilding = false; 86 + 81 87 buildFlags = [ "all" ]; 82 88 83 89 installPhase = ''
+6
pkgs/development/compilers/openjdk/16.nix
··· 84 84 "-lgtk-3" "-lgio-2.0" "-lgnomevfs-2" "-lgconf-2" 85 85 ]); 86 86 87 + # -j flag is explicitly rejected by the build system: 88 + # Error: 'make -jN' is not supported, use 'make JOBS=N' 89 + # Note: it does not make build sequential. Build system 90 + # still runs in parallel. 91 + enableParallelBuilding = false; 92 + 87 93 buildFlags = [ "all" ]; 88 94 89 95 installPhase = ''
+6
pkgs/development/compilers/openjdk/17.nix
··· 86 86 "-lgtk-3" "-lgio-2.0" "-lgnomevfs-2" "-lgconf-2" 87 87 ]); 88 88 89 + # -j flag is explicitly rejected by the build system: 90 + # Error: 'make -jN' is not supported, use 'make JOBS=N' 91 + # Note: it does not make build sequential. Build system 92 + # still runs in parallel. 93 + enableParallelBuilding = false; 94 + 89 95 buildFlags = [ "images" ]; 90 96 91 97 installPhase = ''
+6
pkgs/development/compilers/openjdk/8.nix
··· 155 155 "-lgtk-x11-2.0" "-lgio-2.0" "-lgnomevfs-2" "-lgconf-2" 156 156 ]); 157 157 158 + # -j flag is explicitly rejected by the build system: 159 + # Error: 'make -jN' is not supported, use 'make JOBS=N' 160 + # Note: it does not make build sequential. Build system 161 + # still runs in parallel. 162 + enableParallelBuilding = false; 163 + 158 164 buildFlags = [ "all" ]; 159 165 160 166 doCheck = false; # fails with "No rule to make target 'y'."
-63
pkgs/development/compilers/rust/1_55.nix
··· 1 - # New rust versions should first go to staging. 2 - # Things to check after updating: 3 - # 1. Rustc should produce rust binaries on x86_64-linux, aarch64-linux and x86_64-darwin: 4 - # i.e. nix-shell -p fd or @GrahamcOfBorg build fd on github 5 - # This testing can be also done by other volunteers as part of the pull 6 - # request review, in case platforms cannot be covered. 7 - # 2. The LLVM version used for building should match with rust upstream. 8 - # Check the version number in the src/llvm-project git submodule in: 9 - # https://github.com/rust-lang/rust/blob/<version-tag>/.gitmodules 10 - # 3. Firefox and Thunderbird should still build on x86_64-linux. 11 - 12 - { stdenv, lib 13 - , buildPackages 14 - , newScope, callPackage 15 - , CoreFoundation, Security, SystemConfiguration 16 - , pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost 17 - , makeRustPlatform 18 - , llvmPackages_11 19 - , llvmPackages_12, llvm_12 20 - } @ args: 21 - 22 - import ./default.nix { 23 - rustcVersion = "1.55.0"; 24 - rustcSha256 = "07l28f7grdmi65naq71pbmvdd61hwcpi40ry7kp7dy7m233rldxj"; 25 - 26 - llvmSharedForBuild = pkgsBuildBuild.llvmPackages_12.libllvm.override { enableSharedLibraries = true; }; 27 - llvmSharedForHost = pkgsBuildHost.llvmPackages_12.libllvm.override { enableSharedLibraries = true; }; 28 - llvmSharedForTarget = pkgsBuildTarget.llvmPackages_12.libllvm.override { enableSharedLibraries = true; }; 29 - 30 - llvmBootstrapForDarwin = llvmPackages_11; 31 - 32 - # For use at runtime 33 - llvmShared = llvm_12.override { enableSharedLibraries = true; }; 34 - 35 - # Expose llvmPackages used for rustc from rustc via passthru for LTO in Firefox 36 - llvmPackagesForBuild = pkgsBuildBuild.llvmPackages_12; 37 - 38 - # Note: the version MUST be one version prior to the version we're 39 - # building 40 - bootstrapVersion = "1.54.0"; 41 - 42 - # fetch hashes by running `print-hashes.sh ${bootstrapVersion}` 43 - bootstrapHashes = { 44 - i686-unknown-linux-gnu = "1cd06090463711d50d98374ef52c1a84b9f4e3e35febaaef4890fb10536ceb3a"; 45 - x86_64-unknown-linux-gnu = "350354495b1d4b6dd2ec7cf96aa9bc61d031951cf667a31e8cf401dc508639e6"; 46 - x86_64-unknown-linux-musl = "3571db0018fcd32f3b579a32b2301826dbd1cce44b373aed8e8a31c2a6f52fe8"; 47 - arm-unknown-linux-gnueabihf = "77f4e4c2195f75466c6de0b1d8fd7fb8cef3d12666e3aae777dcfd0d71d080ca"; 48 - armv7-unknown-linux-gnueabihf = "dd01ccb6a53d5e895a6755a78c213ae601a347366688941d5c543b5af5835d6d"; 49 - aarch64-unknown-linux-gnu = "33a50c5366a57aaab43c1c19e4a49ab7d8ffcd99a72925c315fb1f9389139e6f"; 50 - aarch64-unknown-linux-musl = "49d94116a357ea13f5a3231de2472f59210028c3cf81f158b8a367c3155ac544"; 51 - x86_64-apple-darwin = "5eb27a4f5f7a4699bc70cf1848e340ddd74e151488bfcb26853fd584958e3d33"; 52 - aarch64-apple-darwin = "801b3b15b992b0321261de8b8ea2728e9a74822c6cb99bf978b34e217c7825ba"; 53 - powerpc64le-unknown-linux-gnu = "67cadf7ac5bd2e3d5fb4baede69846059f17c4e099f771329b266d08b875ed71"; 54 - riscv64gc-unknown-linux-gnu = "6113a6cce3500033d0dc0d170b54c5f22562ef3025fd58d804c822a2499c74d7"; 55 - }; 56 - 57 - selectRustPackage = pkgs: pkgs.rust_1_55; 58 - 59 - rustcPatches = [ 60 - ]; 61 - } 62 - 63 - (builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_11" "llvmPackages_12" "llvm_12"])
+63
pkgs/development/compilers/rust/1_56.nix
··· 1 + # New rust versions should first go to staging. 2 + # Things to check after updating: 3 + # 1. Rustc should produce rust binaries on x86_64-linux, aarch64-linux and x86_64-darwin: 4 + # i.e. nix-shell -p fd or @GrahamcOfBorg build fd on github 5 + # This testing can be also done by other volunteers as part of the pull 6 + # request review, in case platforms cannot be covered. 7 + # 2. The LLVM version used for building should match with rust upstream. 8 + # Check the version number in the src/llvm-project git submodule in: 9 + # https://github.com/rust-lang/rust/blob/<version-tag>/.gitmodules 10 + # 3. Firefox and Thunderbird should still build on x86_64-linux. 11 + 12 + { stdenv, lib 13 + , buildPackages 14 + , newScope, callPackage 15 + , CoreFoundation, Security, SystemConfiguration 16 + , pkgsBuildTarget, pkgsBuildBuild, pkgsBuildHost 17 + , makeRustPlatform 18 + , llvmPackages_11 19 + , llvmPackages_13, llvm_13 20 + } @ args: 21 + 22 + import ./default.nix { 23 + rustcVersion = "1.56.1"; 24 + rustcSha256 = "04cmqx7nn63hzz7z27b2b0dj2qx18rck9ifvip43s6dampx8v2f3"; 25 + 26 + llvmSharedForBuild = pkgsBuildBuild.llvmPackages_13.libllvm.override { enableSharedLibraries = true; }; 27 + llvmSharedForHost = pkgsBuildHost.llvmPackages_13.libllvm.override { enableSharedLibraries = true; }; 28 + llvmSharedForTarget = pkgsBuildTarget.llvmPackages_13.libllvm.override { enableSharedLibraries = true; }; 29 + 30 + llvmBootstrapForDarwin = llvmPackages_11; 31 + 32 + # For use at runtime 33 + llvmShared = llvm_13.override { enableSharedLibraries = true; }; 34 + 35 + # Expose llvmPackages used for rustc from rustc via passthru for LTO in Firefox 36 + llvmPackagesForBuild = pkgsBuildBuild.llvmPackages_13; 37 + 38 + # Note: the version MUST be one version prior to the version we're 39 + # building 40 + bootstrapVersion = "1.55.0"; 41 + 42 + # fetch hashes by running `print-hashes.sh ${bootstrapVersion}` 43 + bootstrapHashes = { 44 + i686-unknown-linux-gnu = "6e42b6c44d2eb4170f4144423fa3c33338d8d5c3ea00b03bbac200c877bc9e98"; 45 + x86_64-unknown-linux-gnu = "2080253a2ec36ac8ed6e060d30802d888533124b8d16545cfd4af898b365eaac"; 46 + x86_64-unknown-linux-musl = "f24f68587253c4bfbe59d3d10fe4897068d9130538de6b2d02097a25718030c2"; 47 + arm-unknown-linux-gnueabihf = "483444153d35cda51c6aec2c24bc4c97fa4fd30b28df4b60bf9763bd6e06da3a"; 48 + armv7-unknown-linux-gnueabihf = "8c72f0eb75b10db970fb546c3b41f5e97df294d5dbbf0b8fa96e17f2b281ee9c"; 49 + aarch64-unknown-linux-gnu = "eebdb2e659ed14884a49f0457d44e5e8c9f89fca3414533752c6dbb96232c156"; 50 + aarch64-unknown-linux-musl = "2ce36a7d34f1f2aa43b4cbc0b437d96eefb45743828bf9ae699ff581ae257f28"; 51 + x86_64-apple-darwin = "2e345ac7724c192c9487a2c6bd4f6c52c884d791981510288830d27d9a0bf2f3"; 52 + aarch64-apple-darwin = "70c71d30d0de76912fcd88d503a6cb4323cfe6250c1a255be7e0d4e644b3d40a"; 53 + powerpc64le-unknown-linux-gnu = "12bf6447d338cbe2b55539b84e6369b17e7eefe938d1ba7e3dd69781c9cc9812"; 54 + riscv64gc-unknown-linux-gnu = "effceb45346fef3b0b54b357336e6f374f788b803bb1bee4084f25eace8907f3"; 55 + }; 56 + 57 + selectRustPackage = pkgs: pkgs.rust_1_56; 58 + 59 + rustcPatches = [ 60 + ]; 61 + } 62 + 63 + (builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_11" "llvmPackages_13" "llvm_13"])
+4 -4
pkgs/development/compilers/vala/default.nix
··· 129 129 }; 130 130 131 131 vala_0_52 = generic { 132 - version = "0.52.5"; 133 - sha256 = "sha256-hKG7MSs+Xcrkt7JcRVmNN14stpIzzvtZoV0jUMdr3ZE="; 132 + version = "0.52.6"; 133 + sha256 = "sha256-FNfrTZZLfDrcFuRTcTIIbdxmJO0eDruBEeKsgierOnI="; 134 134 }; 135 135 136 136 vala_0_54 = generic { 137 - version = "0.54.1"; 138 - sha256 = "0jlhd6hr9mai7hhc2c78w6zmnzf7xncp7fhyiavkqqzhhsn7gpjx"; 137 + version = "0.54.2"; 138 + sha256 = "iE3nRTF9TVbk6M7emT3I8E1Qz8o2z2DS8vJ4wwwrExE="; 139 139 }; 140 140 141 141 vala = vala_0_54;
+4
pkgs/development/libraries/adns/default.nix
··· 18 18 preConfigure = 19 19 lib.optionalString stdenv.isDarwin "sed -i -e 's|-Wl,-soname=$(SHLIBSONAME)||' configure"; 20 20 21 + # Autogenerated headers miss interdependencies in Makefile, fail parallel build: 22 + # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51329 23 + enableParallelBuilding = false; 24 + 21 25 # https://www.mail-archive.com/nix-dev@cs.uu.nl/msg01347.html for details. 22 26 doCheck = false; 23 27
+1 -1
pkgs/development/libraries/dbus/default.nix
··· 3 3 , fetchurl 4 4 , pkg-config 5 5 , expat 6 - , enableSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isMusl 6 + , enableSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isStatic 7 7 , systemd 8 8 , audit 9 9 , libapparmor
+11
pkgs/development/libraries/directfb/default.nix
··· 48 48 "--with-smooth-scaling" 49 49 ] ++ lib.optional enableX11 "--enable-x11"; 50 50 51 + # Disable parallel building as parallel builds fail due to incomplete 52 + # depends between autogenerated CoreSlave.h and it's include sites: 53 + # CC prealloc_surface_pool_bridge.lo 54 + # prealloc_surface_pool_bridge.c:41:10: 55 + # fatal error: core/CoreSlave.h: No such file or directory 56 + # 57 + # Dependencies are specified manually in src/core/Makefile.am. Instead 58 + # of fixing them one by one locally let's disable parallel builds until 59 + # upstream fixes them. 60 + enableParallelBuilding = false; 61 + 51 62 meta = with lib; { 52 63 description = "Graphics and input library designed with embedded systems in mind"; 53 64 longDescription = ''
+3 -39
pkgs/development/libraries/ffmpeg/4.nix
··· 2 2 # Darwin frameworks 3 3 , Cocoa, CoreMedia, VideoToolbox 4 4 , stdenv, lib 5 - , fetchpatch 6 5 , ... 7 6 }@args: 8 7 9 8 callPackage ./generic.nix (rec { 10 - version = "4.4"; 11 - branch = "4.4"; 12 - sha256 = "03kxc29y8190k4y8s8qdpsghlbpmchv1m8iqygq2qn0vfm4ka2a2"; 9 + version = "4.4.1"; 10 + branch = version; 11 + sha256 = "0hmck0placn12kd9l0wam70mrpgfs2nlfmi8krd135gdql5g5jcg"; 13 12 darwinFrameworks = [ Cocoa CoreMedia VideoToolbox ]; 14 - 15 - patches = [ 16 - (fetchpatch { 17 - name = "CVE-2021-33815.patch"; 18 - url = "https://github.com/FFmpeg/FFmpeg/commit/26d3c81bc5ef2f8c3f09d45eaeacfb4b1139a777.patch"; 19 - sha256 = "0l8dqga5845f7d3wdbvd05i23saldq4pm2cyfdgszbr0c18sxagf"; 20 - }) 21 - (fetchpatch { 22 - name = "CVE-2021-38114.patch"; 23 - url = "https://github.com/FFmpeg/FFmpeg/commit/7150f9575671f898382c370acae35f9087a30ba1.patch"; 24 - sha256 = "0gwkc7v1wsh4j0am2nnskhsca1b5aqzhcfd41sd9mh2swsdyf27i"; 25 - }) 26 - (fetchpatch { 27 - name = "CVE-2021-38171.patch"; 28 - url = "https://github.com/FFmpeg/FFmpeg/commit/9ffa49496d1aae4cbbb387aac28a9e061a6ab0a6.patch"; 29 - sha256 = "0b8hsb45izw7w1vb2b94k9f6kvn2shxrap5ip1krdxg6hs7an0x8"; 30 - }) 31 - (fetchpatch { 32 - name = "CVE-2021-38291.patch"; 33 - url = "https://github.com/FFmpeg/FFmpeg/commit/e01d306c647b5827102260b885faa223b646d2d1.patch"; 34 - sha256 = "0p2p8gcnb5j469xa3czfssm09w3jk08kz8rnl8wi2l9aj9l08my9"; 35 - }) 36 - # Fix incorrect segment length in HLS child playlist with fmp4 segment format 37 - # FIXME remove in version 4.5 38 - # https://trac.ffmpeg.org/ticket/9193 39 - # https://trac.ffmpeg.org/ticket/9205 40 - (fetchpatch { 41 - name = "ffmpeg_fix_incorrect_segment_length_in_hls.patch"; 42 - url = "https://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=59032494e81a1a65c0b960aaae7ec4c2cc9db35a"; 43 - sha256 = "03zz1lw51kkc3g3vh47xa5hfiz3g3g1rbrll3kcnslvwylmrqmy3"; 44 - }) 45 - ] ++ lib.optionals stdenv.isDarwin [ 46 - # Work around https://trac.ffmpeg.org/ticket/9242 47 - ./v2-0001-avcodec-videotoolboxenc-define-TARGET_CPU_ARM64-t.patch 48 - ]; 49 13 } // args)
-35
pkgs/development/libraries/ffmpeg/v2-0001-avcodec-videotoolboxenc-define-TARGET_CPU_ARM64-t.patch
··· 1 - From 5b562aaddbc6e7a94a079c2e88230b205a7f4d73 Mon Sep 17 00:00:00 2001 2 - From: Zane van Iperen <zane@zanevaniperen.com> 3 - Date: Sat, 15 May 2021 19:33:52 +1000 4 - Subject: [PATCH v2] avcodec/videotoolboxenc: #define TARGET_CPU_ARM64 to 0 if 5 - not provided by the SDK 6 - 7 - Fixes build failure on older SDKs without it. 8 - 9 - Fixes #9242 10 - 11 - Signed-off-by: Zane van Iperen <zane@zanevaniperen.com> 12 - --- 13 - libavcodec/videotoolboxenc.c | 4 ++++ 14 - 1 file changed, 4 insertions(+) 15 - 16 - NB: This is untested, I do not have a Mac to try it on. 17 - 18 - diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c 19 - index 58239e0ab9..f063a86e73 100644 20 - --- a/libavcodec/videotoolboxenc.c 21 - +++ b/libavcodec/videotoolboxenc.c 22 - @@ -50,6 +50,10 @@ enum { kCVPixelFormatType_420YpCbCr10BiPlanarFullRange = 'xf20' }; 23 - enum { kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange = 'x420' }; 24 - #endif 25 - 26 - +#ifndef TARGET_CPU_ARM64 27 - +# define TARGET_CPU_ARM64 0 28 - +#endif 29 - + 30 - typedef OSStatus (*getParameterSetAtIndex)(CMFormatDescriptionRef videoDesc, 31 - size_t parameterSetIndex, 32 - const uint8_t **parameterSetPointerOut, 33 - -- 34 - 2.29.3 35 -
+2
pkgs/development/libraries/gcc/libgcc/default.nix
··· 22 22 sourceRoot=$(readlink -e "./libgcc") 23 23 ''; 24 24 25 + hardeningDisable = [ "pie" ]; 26 + 25 27 preConfigure = '' 26 28 cd "$buildRoot" 27 29 ''
+3 -2
pkgs/development/libraries/glib/default.nix
··· 45 45 46 46 stdenv.mkDerivation rec { 47 47 pname = "glib"; 48 - version = "2.70.0"; 48 + version = "2.70.1"; 49 49 50 50 src = fetchurl { 51 51 url = "mirror://gnome/sources/glib/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 52 - sha256 = "0hh7hk02fkm1bn48k4z8f3kgv9qbni5z22gizd567fn527w7s390"; 52 + sha256 = "+be85/UXU6H0OFO7ysqL8J4V6ZQmjinP16dvZWNiY8A="; 53 53 }; 54 54 55 55 patches = optionals stdenv.isDarwin [ ··· 59 59 ./quark_init_on_demand.patch 60 60 ./gobject_init_on_demand.patch 61 61 ] ++ [ 62 + ./glib-appinfo-watch.patch 62 63 ./schema-override-variable.patch 63 64 64 65 # GLib contains many binaries used for different purposes;
+102
pkgs/development/libraries/glib/glib-appinfo-watch.patch
··· 1 + This patch lets GLib's GDesktopAppInfo API watch and notice changes 2 + to the Nix user and system profiles. That way, the list of available 3 + applications shown by the desktop environment is immediately updated 4 + when the user installs or removes any 5 + (see <https://issues.guix.gnu.org/35594>). 6 + 7 + It does so by monitoring /nix/var/nix/profiles (for changes to the system 8 + profile) and /nix/var/nix/profiles/per-user/USER (for changes to the user 9 + profile) as well as /etc/profiles/per-user (for chanes to the user 10 + environment profile) and crawling their share/applications sub-directory when 11 + changes happen. 12 + 13 + diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c 14 + index b779b30..31069f7 100644 15 + --- a/gio/gdesktopappinfo.c 16 + +++ b/gio/gdesktopappinfo.c 17 + @@ -150,6 +150,7 @@ typedef struct 18 + gchar *alternatively_watching; 19 + gboolean is_config; 20 + gboolean is_setup; 21 + + gchar *nix_profile_watch_dir; 22 + GFileMonitor *monitor; 23 + GHashTable *app_names; 24 + GHashTable *mime_tweaks; 25 + @@ -181,6 +182,7 @@ desktop_file_dir_unref (DesktopFileDir *dir) 26 + { 27 + desktop_file_dir_reset (dir); 28 + g_free (dir->path); 29 + + g_free (dir->nix_profile_watch_dir); 30 + g_free (dir); 31 + } 32 + } 33 + @@ -205,6 +207,14 @@ desktop_file_dir_get_alternative_dir (DesktopFileDir *dir) 34 + { 35 + gchar *parent; 36 + 37 + + /* If DIR is a profile, watch the specified directory--e.g., 38 + + * /nix/var/nix/profiles/per-user/$USER/ for the user profile. Do not watch 39 + + * ~/.nix-profile or /run/current-system/sw because GFileMonitor does 40 + + * not pass IN_DONT_FOLLOW and thus cannot notice any change. 41 + + * /etc/profiles/per-user is monitored directly for the same reason. */ 42 + + if (dir->nix_profile_watch_dir != NULL) 43 + + return g_strdup (dir->nix_profile_watch_dir); 44 + + 45 + /* If the directory itself exists then we need no alternative. */ 46 + if (g_access (dir->path, R_OK | X_OK) == 0) 47 + return NULL; 48 + @@ -250,11 +260,11 @@ desktop_file_dir_changed (GFileMonitor *monitor, 49 + * 50 + * If this is a notification for a parent directory (because the 51 + * desktop directory didn't exist) then we shouldn't fire the signal 52 + - * unless something actually changed. 53 + + * unless something actually changed or it's part of a Nix profile. 54 + */ 55 + g_mutex_lock (&desktop_file_dir_lock); 56 + 57 + - if (dir->alternatively_watching) 58 + + if (dir->alternatively_watching && dir->nix_profile_watch_dir == NULL) 59 + { 60 + gchar *alternative_dir; 61 + 62 + @@ -1556,6 +1566,40 @@ desktop_file_dirs_lock (void) 63 + for (i = 0; dirs[i]; i++) 64 + g_ptr_array_add (desktop_file_dirs, desktop_file_dir_new (dirs[i])); 65 + 66 + + { 67 + + /* Monitor the system and user profile under /nix/var/nix/profiles and 68 + + * treat modifications to them as if they were modifications to their 69 + + * /share sub-directory. */ 70 + + const gchar *user; 71 + + DesktopFileDir *system_profile_dir, *user_profile_dir, *user_env_dir; 72 + + 73 + + system_profile_dir = 74 + + desktop_file_dir_new ("/nix/var/nix/profiles/system/sw/share"); 75 + + system_profile_dir->nix_profile_watch_dir = g_strdup ("/nix/var/nix/profiles"); 76 + + g_ptr_array_add (desktop_file_dirs, desktop_file_dir_ref (system_profile_dir)); 77 + + 78 + + user = g_get_user_name (); 79 + + if (user != NULL) 80 + + { 81 + + gchar *profile_dir, *user_data_dir, *env_dir, *env_data_dir; 82 + + 83 + + profile_dir = g_build_filename ("/nix/var/nix/profiles/per-user", user, NULL); 84 + + user_data_dir = g_build_filename (profile_dir, "profile", "share", NULL); 85 + + user_profile_dir = desktop_file_dir_new (user_data_dir); 86 + + user_profile_dir->nix_profile_watch_dir = profile_dir; 87 + + 88 + + env_dir = g_build_filename ("/etc/profiles/per-user", NULL); 89 + + env_data_dir = g_build_filename (env_dir, user, "share", NULL); 90 + + user_env_dir = desktop_file_dir_new (env_data_dir); 91 + + user_env_dir->nix_profile_watch_dir = env_dir; 92 + + 93 + + g_ptr_array_add (desktop_file_dirs, desktop_file_dir_ref (user_profile_dir)); 94 + + g_ptr_array_add (desktop_file_dirs, desktop_file_dir_ref (user_env_dir)); 95 + + g_free (user_data_dir); 96 + + g_free (env_data_dir); 97 + + } 98 + + } 99 + + 100 + /* The list of directories will never change after this, unless 101 + * g_get_user_config_dir() changes due to %G_TEST_OPTION_ISOLATE_DIRS. */ 102 + desktop_file_dirs_config_dir = user_config_dir;
pkgs/development/libraries/glibc/2.33-master.patch.gz

This is a binary file and will not be displayed.

+6 -4
pkgs/development/libraries/glibc/common.nix
··· 37 37 , profilingLibraries ? false 38 38 , withGd ? false 39 39 , meta 40 + , extraBuildInputs ? [] 41 + , extraNativeBuildInputs ? [] 40 42 , ... 41 43 } @ args: 42 44 43 45 let 44 46 version = "2.33"; 45 - patchSuffix = "-55"; 47 + patchSuffix = "-56"; 46 48 sha256 = "sha256-LiVWAA4QXb1X8Layoy/yzxc73k8Nhd/8z9i35RoGd/8="; 47 49 in 48 50 ··· 61 63 [ 62 64 /* No tarballs for stable upstream branch, only https://sourceware.org/git/glibc.git and using git would complicate bootstrapping. 63 65 $ git fetch --all -p && git checkout origin/release/2.33/master && git describe 64 - glibc-2.33-55-g4b95183785 66 + glibc-2.33-56-g6090cf1330 65 67 $ git show --minimal --reverse glibc-2.33.. | gzip -9n --rsyncable - > 2.33-master.patch.gz 66 68 67 69 To compare the archive contents zdiff can be used. ··· 189 191 outputs = [ "out" "bin" "dev" "static" ]; 190 192 191 193 depsBuildBuild = [ buildPackages.stdenv.cc ]; 192 - nativeBuildInputs = [ bison python3Minimal ]; 193 - buildInputs = [ linuxHeaders ] ++ lib.optionals withGd [ gd libpng ]; 194 + nativeBuildInputs = [ bison python3Minimal ] ++ extraNativeBuildInputs; 195 + buildInputs = [ linuxHeaders ] ++ lib.optionals withGd [ gd libpng ] ++ extraBuildInputs; 194 196 195 197 # Needed to install share/zoneinfo/zone.tab. Set to impure /bin/sh to 196 198 # prevent a retained dependency on the bootstrap tools in the stdenv-linux
+4 -2
pkgs/development/libraries/glibc/locales.nix
··· 6 6 https://sourceware.org/git/?p=glibc.git;a=blob;f=localedata/SUPPORTED 7 7 */ 8 8 9 - { lib, stdenv, buildPackages, callPackage, writeText 9 + { lib, stdenv, buildPackages, callPackage, writeText, glibc 10 10 , allLocales ? true, locales ? [ "en_US.UTF-8/UTF-8" ] 11 11 }: 12 12 ··· 17 17 18 18 outputs = [ "out" ]; 19 19 20 + extraNativeBuildInputs = [ glibc ]; 21 + 20 22 # Awful hack: `localedef' doesn't allow the path to `locale-archive' 21 23 # to be overriden, but you *can* specify a prefix, i.e. it will use 22 24 # <prefix>/<path-to-glibc>/lib/locale/locale-archive. So we use ··· 24 26 # $TMPDIR/nix/store/...-glibc-.../lib/locale/locale-archive. 25 27 buildPhase = 26 28 '' 27 - mkdir -p $TMPDIR/"${buildPackages.stdenv.cc.libc.out}/lib/locale" 29 + mkdir -p $TMPDIR/"${buildPackages.glibc.out}/lib/locale" 28 30 29 31 echo 'C.UTF-8/UTF-8 \' >> ../glibc-2*/localedata/SUPPORTED 30 32
+4 -4
pkgs/development/libraries/gnutls/default.nix
··· 1 1 { config, lib, stdenv, fetchurl, zlib, lzo, libtasn1, nettle, pkg-config, lzip 2 2 , perl, gmp, autoconf, automake, libidn, p11-kit, libiconv 3 - , unbound, dns-root-data, gettext, cacert, util-linux 3 + , unbound, dns-root-data, gettext, util-linux 4 4 , guileBindings ? config.gnutls.guile or false, guile 5 5 , tpmSupport ? false, trousers, which, nettools, libunistring 6 6 , withSecurity ? false, Security # darwin Security.framework ··· 77 77 propagatedBuildInputs = [ nettle ]; 78 78 79 79 inherit doCheck; 80 - # stdenv's `NIX_SSL_CERT_FILE=/no-cert-file.crt` broke tests with: 81 - # Error setting the x509 trust file: Error while reading file. 82 - checkInputs = [ cacert ]; 80 + # stdenv's `NIX_SSL_CERT_FILE=/no-cert-file.crt` breaks tests. 81 + # Also empty files won't work, and we want to avoid potentially impure /etc/ 82 + preCheck = "NIX_SSL_CERT_FILE=${./dummy.crt}"; 83 83 84 84 # Fixup broken libtool and pkg-config files 85 85 preFixup = lib.optionalString (!isDarwin) ''
+45
pkgs/development/libraries/gnutls/dummy.crt
··· 1 + ACCVRAIZ1 2 + -----BEGIN CERTIFICATE----- 3 + MIIH0zCCBbugAwIBAgIIXsO3pkN/pOAwDQYJKoZIhvcNAQEFBQAwQjESMBAGA1UE 4 + AwwJQUNDVlJBSVoxMRAwDgYDVQQLDAdQS0lBQ0NWMQ0wCwYDVQQKDARBQ0NWMQsw 5 + CQYDVQQGEwJFUzAeFw0xMTA1MDUwOTM3MzdaFw0zMDEyMzEwOTM3MzdaMEIxEjAQ 6 + BgNVBAMMCUFDQ1ZSQUlaMTEQMA4GA1UECwwHUEtJQUNDVjENMAsGA1UECgwEQUND 7 + VjELMAkGA1UEBhMCRVMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCb 8 + qau/YUqXry+XZpp0X9DZlv3P4uRm7x8fRzPCRKPfmt4ftVTdFXxpNRFvu8gMjmoY 9 + HtiP2Ra8EEg2XPBjs5BaXCQ316PWywlxufEBcoSwfdtNgM3802/J+Nq2DoLSRYWo 10 + G2ioPej0RGy9ocLLA76MPhMAhN9KSMDjIgro6TenGEyxCQ0jVn8ETdkXhBilyNpA 11 + lHPrzg5XPAOBOp0KoVdDaaxXbXmQeOW1tDvYvEyNKKGno6e6Ak4l0Squ7a4DIrhr 12 + IA8wKFSVf+DuzgpmndFALW4ir50awQUZ0m/A8p/4e7MCQvtQqR0tkw8jq8bBD5L/ 13 + 0KIV9VMJcRz/RROE5iZe+OCIHAr8Fraocwa48GOEAqDGWuzndN9wrqODJerWx5eH 14 + k6fGioozl2A3ED6XPm4pFdahD9GILBKfb6qkxkLrQaLjlUPTAYVtjrs78yM2x/47 15 + 4KElB0iryYl0/wiPgL/AlmXz7uxLaL2diMMxs0Dx6M/2OLuc5NF/1OVYm3z61PMO 16 + m3WR5LpSLhl+0fXNWhn8ugb2+1KoS5kE3fj5tItQo05iifCHJPqDQsGH+tUtKSpa 17 + cXpkatcnYGMN285J9Y0fkIkyF/hzQ7jSWpOGYdbhdQrqeWZ2iE9x6wQl1gpaepPl 18 + uUsXQA+xtrn13k/c4LOsOxFwYIRKQ26ZIMApcQrAZQIDAQABo4ICyzCCAscwfQYI 19 + KwYBBQUHAQEEcTBvMEwGCCsGAQUFBzAChkBodHRwOi8vd3d3LmFjY3YuZXMvZmls 20 + ZWFkbWluL0FyY2hpdm9zL2NlcnRpZmljYWRvcy9yYWl6YWNjdjEuY3J0MB8GCCsG 21 + AQUFBzABhhNodHRwOi8vb2NzcC5hY2N2LmVzMB0GA1UdDgQWBBTSh7Tj3zcnk1X2 22 + VuqB5TbMjB4/vTAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFNKHtOPfNyeT 23 + VfZW6oHlNsyMHj+9MIIBcwYDVR0gBIIBajCCAWYwggFiBgRVHSAAMIIBWDCCASIG 24 + CCsGAQUFBwICMIIBFB6CARAAQQB1AHQAbwByAGkAZABhAGQAIABkAGUAIABDAGUA 25 + cgB0AGkAZgBpAGMAYQBjAGkA8wBuACAAUgBhAO0AegAgAGQAZQAgAGwAYQAgAEEA 26 + QwBDAFYAIAAoAEEAZwBlAG4AYwBpAGEAIABkAGUAIABUAGUAYwBuAG8AbABvAGcA 27 + 7QBhACAAeQAgAEMAZQByAHQAaQBmAGkAYwBhAGMAaQDzAG4AIABFAGwAZQBjAHQA 28 + cgDzAG4AaQBjAGEALAAgAEMASQBGACAAUQA0ADYAMAAxADEANQA2AEUAKQAuACAA 29 + QwBQAFMAIABlAG4AIABoAHQAdABwADoALwAvAHcAdwB3AC4AYQBjAGMAdgAuAGUA 30 + czAwBggrBgEFBQcCARYkaHR0cDovL3d3dy5hY2N2LmVzL2xlZ2lzbGFjaW9uX2Mu 31 + aHRtMFUGA1UdHwROMEwwSqBIoEaGRGh0dHA6Ly93d3cuYWNjdi5lcy9maWxlYWRt 32 + aW4vQXJjaGl2b3MvY2VydGlmaWNhZG9zL3JhaXphY2N2MV9kZXIuY3JsMA4GA1Ud 33 + DwEB/wQEAwIBBjAXBgNVHREEEDAOgQxhY2N2QGFjY3YuZXMwDQYJKoZIhvcNAQEF 34 + BQADggIBAJcxAp/n/UNnSEQU5CmH7UwoZtCPNdpNYbdKl02125DgBS4OxnnQ8pdp 35 + D70ER9m+27Up2pvZrqmZ1dM8MJP1jaGo/AaNRPTKFpV8M9xii6g3+CfYCS0b78gU 36 + JyCpZET/LtZ1qmxNYEAZSUNUY9rizLpm5U9EelvZaoErQNV/+QEnWCzI7UiRfD+m 37 + AM/EKXMRNt6GGT6d7hmKG9Ww7Y49nCrADdg9ZuM8Db3VlFzi4qc1GwQA9j9ajepD 38 + vV+JHanBsMyZ4k0ACtrJJ1vnE5Bc5PUzolVt3OAJTS+xJlsndQAJxGJ3KQhfnlms 39 + tn6tn1QwIgPBHnFk/vk4CpYY3QIUrCPLBhwepH2NDd4nQeit2hW3sCPdK6jT2iWH 40 + 7ehVRE2I9DZ+hJp4rPcOVkkO1jMl1oRQQmwgEh0q1b688nCBpHBgvgW1m54ERL5h 41 + I6zppSSMEYCUWqKiuUnSwdzRp+0xESyeGabu4VXhwOrPDYTkF7eifKXeVSUG7szA 42 + h1xA2syVP1XgNce4hL60Xc16gwFy7ofmXx2utYXGJt/mwZrpHgJHnyqobalbz+xF 43 + d3+YJ5oyXSrjhO7FmGYvliAd3djDJ9ew+f7Zfc3Qn48LFFhRny+Lwzgt3uiP1o2H 44 + pPVWQxaZLPSkVrQ0uGE3ycJYgBugl6H8WY3pEfbRD0tVNEYqi4Y7 45 + -----END CERTIFICATE-----
+2 -2
pkgs/development/libraries/gperftools/default.nix
··· 8 8 9 9 stdenv.mkDerivation rec { 10 10 pname = "gperftools"; 11 - version = "2.8.1"; 11 + version = "2.9.1"; 12 12 13 13 src = fetchFromGitHub { 14 14 owner = pname; 15 15 repo = pname; 16 16 rev = "${pname}-${version}"; 17 - sha256 = "19bj2vlsbfwq7m826v2ccqg47kd7cb5vcz1yw2x0v5qzhaxbakk1"; 17 + sha256 = "sha256-loUlC6mtR3oyS5opSmicCnfUqcefSk8+kKDcHNmC/oo="; 18 18 }; 19 19 20 20 patches = [
+6
pkgs/development/libraries/gtk/3.x.nix
··· 148 148 "-Dtests=false" 149 149 "-Dtracker3=${lib.boolToString trackerSupport}" 150 150 "-Dbroadway_backend=${lib.boolToString broadwaySupport}" 151 + "-Dx11_backend=${lib.boolToString x11Support}" 152 + "-Dquartz_backend=${lib.boolToString (stdenv.isDarwin && !x11Support)}" 151 153 ]; 152 154 153 155 doCheck = false; # needs X11 ··· 159 161 NIX_CFLAGS_COMPILE = "-DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"; 160 162 161 163 postPatch = '' 164 + # See https://github.com/NixOS/nixpkgs/issues/132259 165 + substituteInPlace meson.build \ 166 + --replace "x11_enabled = false" "" 167 + 162 168 files=( 163 169 build-aux/meson/post-install.py 164 170 demos/gtk-demo/geninclude.py
+4
pkgs/development/libraries/icu/70.nix
··· 1 + import ./base.nix { 2 + version = "70.1"; 3 + sha256 = "1m9zgkaf5lyh65nyc6n0n5bs2f5k53nnj1ih6nskpwbvq4l5884d"; 4 + }
+1 -1
pkgs/development/libraries/icu/base.nix
··· 43 43 44 44 meta = with lib; { 45 45 description = "Unicode and globalization support library"; 46 - homepage = "http://site.icu-project.org/"; 46 + homepage = "https://icu.unicode.org/"; 47 47 maintainers = with maintainers; [ raskin ]; 48 48 platforms = platforms.all; 49 49 };
+16 -9
pkgs/development/libraries/json-glib/default.nix
··· 9 9 , withIntrospection ? stdenv.buildPlatform == stdenv.hostPlatform 10 10 , gobject-introspection 11 11 , fixDarwinDylibNames 12 - , gtk-doc 13 - , docbook-xsl-nons 14 - , docbook_xml_dtd_43 12 + , gi-docgen 15 13 , gnome 16 14 }: 17 15 18 16 stdenv.mkDerivation rec { 19 17 pname = "json-glib"; 20 - version = "1.6.2"; 18 + version = "1.6.6"; 21 19 22 20 outputs = [ "out" "dev" ] 23 21 ++ lib.optional withIntrospection "devdoc"; 24 22 25 23 src = fetchurl { 26 24 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 27 - sha256 = "092g2dyy1hhl0ix9kp33wcab0pg1qicnsv0cj5ms9g9qs336cgd3"; 25 + sha256 = "luyYvnqR9t3jNjZyDj2i/27LuQ52zKpJSX8xpoVaSQ4="; 28 26 }; 29 27 30 28 strictDeps = true; ··· 39 37 pkg-config 40 38 gettext 41 39 glib 42 - docbook-xsl-nons 43 - docbook_xml_dtd_43 44 40 ] ++ lib.optional stdenv.hostPlatform.isDarwin [ 45 41 fixDarwinDylibNames 46 42 ] ++ lib.optionals withIntrospection [ 47 43 gobject-introspection 48 - gtk-doc 44 + gi-docgen 49 45 ]; 50 46 51 47 propagatedBuildInputs = [ ··· 54 50 55 51 mesonFlags = lib.optionals (!withIntrospection) [ 56 52 "-Dintrospection=disabled" 57 - # doc gen uses introspection, doesn't work properly 53 + # gi-docgen relies on introspection data 58 54 "-Dgtk_doc=disabled" 59 55 ]; 60 56 61 57 doCheck = true; 58 + 59 + postFixup = '' 60 + # Move developer documentation to devdoc output. 61 + # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. 62 + if [[ -d "$out/share/doc" ]]; then 63 + find -L "$out/share/doc" -type f -regex '.*\.devhelp2?' -print0 \ 64 + | while IFS= read -r -d ''' file; do 65 + moveToOutput "$(dirname "''${file/"$out/"/}")" "$devdoc" 66 + done 67 + fi 68 + ''; 62 69 63 70 passthru = { 64 71 updateScript = gnome.updateScript {
+8
pkgs/development/libraries/kde-frameworks/sonnet.nix
··· 1 1 { mkDerivation 2 + , fetchpatch 2 3 , extra-cmake-modules 3 4 , aspell, qtbase, qttools 4 5 }: 5 6 6 7 mkDerivation { 7 8 name = "sonnet"; 9 + patches = [ 10 + # Pull upstream path to fix determinism. 11 + (fetchpatch { 12 + url = "https://invent.kde.org/frameworks/sonnet/-/commit/a01fc66b8affb01221d1fdf84146a78c172d4c6b.patch"; 13 + sha256 = "1jzd65rmgvfpcxrsnsmdz8ac1ldqs9rjfryy8fryy0ibzbhc1050"; 14 + }) 15 + ]; 8 16 nativeBuildInputs = [ extra-cmake-modules ]; 9 17 buildInputs = [ aspell qttools ]; 10 18 propagatedBuildInputs = [ qtbase ];
+1 -1
pkgs/development/libraries/keybinder3/default.nix
··· 27 27 description = "Library for registering global key bindings"; 28 28 homepage = "https://github.com/kupferlauncher/keybinder/"; 29 29 license = licenses.mit; 30 - platforms = platforms.linux; 30 + platforms = platforms.unix; 31 31 maintainers = [ maintainers.cstrahan ]; 32 32 }; 33 33 }
+2 -2
pkgs/development/libraries/libaom/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "libaom"; 5 - version = "3.1.3"; 5 + version = "3.2.0"; 6 6 7 7 src = fetchzip { 8 8 url = "https://aomedia.googlesource.com/aom/+archive/v${version}.tar.gz"; 9 - sha256 = "08rk31d2cp9k9nj37s6a4n7klpfqfbj62anwyiggzsz7b68psjq3"; 9 + sha256 = "0fmnbzpl481i7kchx4hbvb507r5pfgyrzfrlrs7jk3bicycm75qv"; 10 10 stripRoot = false; 11 11 }; 12 12
+13 -1
pkgs/development/libraries/libb64/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub }: 1 + { lib, stdenv, fetchFromGitHub, fetchpatch }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "libb64"; ··· 10 10 rev = "v${version}"; 11 11 sha256 = "sha256-9loDftr769qnIi00MueO86kjha2EiG9pnCLogp0Iq3c="; 12 12 }; 13 + 14 + patches = [ 15 + # Fix parallel build failure: https://github.com/libb64/libb64/pull/9 16 + # make[1]: *** No rule to make target 'libb64.a', needed by 'c-example1'. Stop. 17 + (fetchpatch { 18 + name = "parallel-make.patch"; 19 + url = "https://github.com/libb64/libb64/commit/4fe47c052e9123da8f751545deb48be08c3411f6.patch"; 20 + sha256 = "18b3np3gpyzimqmk6001riqv5n70wfbclky6zzsrvj5zl1dj4ljf"; 21 + }) 22 + ]; 23 + 24 + enableParallelBuilding = true; 13 25 14 26 installPhase = '' 15 27 mkdir -p $out $out/lib $out/bin $out/include
+10 -2
pkgs/development/libraries/libmediainfo/default.nix
··· 1 - { lib, stdenv, fetchurl, autoreconfHook, pkg-config, libzen, zlib }: 1 + { lib, stdenv, fetchurl, autoreconfHook, pkg-config, libzen, zlib, fetchpatch }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "21.09"; ··· 11 11 nativeBuildInputs = [ autoreconfHook pkg-config ]; 12 12 buildInputs = [ libzen zlib ]; 13 13 14 - sourceRoot = "./MediaInfoLib/Project/GNU/Library/"; 14 + patches = [ 15 + # fixes pkgsMusl.libmediainfo build 16 + (fetchpatch { 17 + url = "https://git.alpinelinux.org/aports/plain/community/libmediainfo/fix-include-signal.patch?id=b8d666a3d33575c184308e1176f4de9e519af577"; 18 + sha256 = "sha256-b3HoIwy/hKSh8jUakwVJpnPmYw5KUwZXgLW7IPMY4/c="; 19 + }) 20 + ]; 21 + 22 + postPatch = "cd Project/GNU/Library"; 15 23 16 24 configureFlags = [ "--enable-shared" ]; 17 25
+4
pkgs/development/libraries/libomxil-bellagio/default.nix
··· 17 17 ./fno-common.patch 18 18 ]; 19 19 20 + # Disable parallel build as it fails as: 21 + # ld: cannot find -lomxil-bellagio 22 + enableParallelBuilding = false; 23 + 20 24 doCheck = false; # fails 21 25 22 26 # Fix for #40213, probably permanent, because upstream doesn't seem to be
+2 -2
pkgs/development/libraries/librsvg/default.nix
··· 24 24 25 25 stdenv.mkDerivation rec { 26 26 pname = "librsvg"; 27 - version = "2.52.0"; 27 + version = "2.52.3"; 28 28 29 29 outputs = [ "out" "dev" "installedTests" ]; 30 30 31 31 src = fetchurl { 32 32 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 33 - sha256 = "14zkdd7a9mymnfs3laqj0gr69c16nwixvbc5a4gvd534w6riz0mx"; 33 + sha256 = "Nuf1vIjXhgjqf2wF5K/krMFga5rxPChF1DhQc9CCuKQ="; 34 34 }; 35 35 36 36 cargoVendorDir = "vendor";
+3 -3
pkgs/development/libraries/libseccomp/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "libseccomp"; 5 - version = "2.5.1"; 5 + version = "2.5.2"; 6 6 7 7 src = fetchurl { 8 8 url = "https://github.com/seccomp/libseccomp/releases/download/v${version}/libseccomp-${version}.tar.gz"; 9 - sha256 = "0m8dlg1v7kflcxvajs4p76p275qwsm2abbf5mfapkakp7hw7wc7f"; 9 + sha256 = "sha256-F6ZS37SR2Wvok5YOm3kZFJNu4WwTt3ejyvVi/kjLh98="; 10 10 }; 11 11 12 12 outputs = [ "out" "lib" "dev" "man" "pythonsrc" ]; ··· 34 34 meta = with lib; { 35 35 description = "High level library for the Linux Kernel seccomp filter"; 36 36 homepage = "https://github.com/seccomp/libseccomp"; 37 - license = licenses.lgpl21; 37 + license = licenses.lgpl21Only; 38 38 platforms = platforms.linux; 39 39 badPlatforms = [ 40 40 "alpha-linux"
+3 -3
pkgs/development/libraries/libsoup/3.x.nix
··· 21 21 22 22 stdenv.mkDerivation rec { 23 23 pname = "libsoup"; 24 - version = "3.0.1"; 24 + version = "3.0.2"; 25 25 26 26 outputs = [ "out" "dev" ]; 27 27 28 28 src = fetchurl { 29 29 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 30 - sha256 = "sha256-bwwxbRD4RYuW9WTHZEvjwgEb11rVBUyNsmr7DJqRvEc="; 30 + sha256 = "sha256-mO9T7ZtIFewFIyFVNxr4A6mSj0ZSrMaF/wIIa+FqP/U="; 31 31 }; 32 32 33 33 nativeBuildInputs = [ ··· 35 35 ninja 36 36 pkg-config 37 37 glib 38 + python3 38 39 ] ++ lib.optionals withIntrospection [ 39 40 gobject-introspection 40 41 ] ++ lib.optionals withVala [ ··· 42 43 ]; 43 44 44 45 buildInputs = [ 45 - python3 46 46 sqlite 47 47 libpsl 48 48 glib.out
+2 -2
pkgs/development/libraries/libsoup/default.nix
··· 22 22 23 23 stdenv.mkDerivation rec { 24 24 pname = "libsoup"; 25 - version = "2.74.0"; 25 + version = "2.74.1"; 26 26 27 27 outputs = [ "out" "dev" ]; 28 28 29 29 src = fetchurl { 30 30 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; 31 - sha256 = "sha256-M7HU4NY5RWxnXCJ4d+lKgHjXMSM+LVdonBGrzvfTxI4="; 31 + sha256 = "sha256-3CejuPowvI/5ULWnWVh1fSJC4+UeTi2cTmI+9195O/g="; 32 32 }; 33 33 34 34 nativeBuildInputs = [
+3 -2
pkgs/development/libraries/libvpx/default.nix
··· 56 56 57 57 stdenv.mkDerivation rec { 58 58 pname = "libvpx"; 59 - version = "1.10.0"; 59 + version = "1.11.0"; 60 60 61 61 src = fetchFromGitHub { 62 62 owner = "webmproject"; 63 63 repo = pname; 64 64 rev = "v${version}"; 65 - sha256 = "sha256-EZP33U10fchyqy7Jr26vHgUUfWR6xtG3fcMWUII0m9w="; 65 + sha256 = "00f1jrclai2b6ys78dpsg6r1mvcyxlna93vxcz8zjyia24c2pjsb"; 66 66 }; 67 67 68 68 postPatch = '' ··· 180 180 meta = with lib; { 181 181 description = "WebM VP8/VP9 codec SDK"; 182 182 homepage = "https://www.webmproject.org/"; 183 + changelog = "https://github.com/webmproject/libvpx/raw/v${version}/CHANGELOG"; 183 184 license = licenses.bsd3; 184 185 maintainers = with maintainers; [ codyopel ]; 185 186 platforms = platforms.all;
+14 -8
pkgs/development/libraries/mesa/default.nix
··· 54 54 # revive ./dricore-gallium.patch when it gets ported (from Ubuntu), as it saved 55 55 # ~35 MB in $drivers; watch https://launchpad.net/ubuntu/+source/mesa/+changelog 56 56 patches = [ 57 - ./missing-includes.patch # dev_t needs sys/stat.h, time_t needs time.h, etc.-- fixes build w/musl 58 - ./opencl.patch 59 - ./disk_cache-include-dri-driver-path-in-cache-key.patch 60 - # Fix `-Werror=int-conversion` pthread warnings on musl. 61 - # TODO: Remove when https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6121 is merged and available 57 + # fixes pkgsMusl.mesa build 62 58 (fetchpatch { 63 - name = "nine_debug-Make-tid-more-type-correct"; 64 - url = "https://gitlab.freedesktop.org/mesa/mesa/commit/aebbf819df6d1e.patch"; 65 - sha256 = "17248hyzg43d73c86p077m4lv1pkncaycr3l27hwv9k4ija9zl8q"; 59 + url = "https://raw.githubusercontent.com/void-linux/void-packages/b9f58f303ae23754c95d5d1fe87a98b5a2d8f271/srcpkgs/mesa/patches/musl.patch"; 60 + sha256 = "sha256-Jyl7ILLhn8hBJG7afnEjE8H56Wz/1bxkvlqfrXK5U7I="; 66 61 }) 62 + (fetchpatch { 63 + url = "https://raw.githubusercontent.com/void-linux/void-packages/b9f58f303ae23754c95d5d1fe87a98b5a2d8f271/srcpkgs/mesa/patches/musl-endian.patch"; 64 + sha256 = "sha256-eRc91qCaFlVzrxFrNUPpAHd1gsqKsLCCN0IW8pBQcqk="; 65 + }) 66 + (fetchpatch { 67 + url = "https://raw.githubusercontent.com/void-linux/void-packages/b9f58f303ae23754c95d5d1fe87a98b5a2d8f271/srcpkgs/mesa/patches/musl-stacksize.patch"; 68 + sha256 = "sha256-bEp0AWddsw1Pc3rxdKN8fsrX4x2TQEzMUa5afhLXGsg="; 69 + }) 70 + 71 + ./opencl.patch 72 + ./disk_cache-include-dri-driver-path-in-cache-key.patch 67 73 ] ++ optionals (stdenv.isDarwin && stdenv.isAarch64) [ 68 74 # Fix aarch64-darwin build, remove when upstreaam supports it out of the box. 69 75 # See: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1020
-22
pkgs/development/libraries/mesa/missing-includes.patch
··· 1 - --- ./src/gallium/winsys/svga/drm/vmw_screen.h.orig 2 - +++ ./src/gallium/winsys/svga/drm/vmw_screen.h 3 - @@ -34,7 +34,7 @@ 4 - #ifndef VMW_SCREEN_H_ 5 - #define VMW_SCREEN_H_ 6 - 7 - - 8 - +#include <sys/stat.h> 9 - #include "pipe/p_compiler.h" 10 - #include "pipe/p_state.h" 11 - 12 - --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h 13 - +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h 14 - @@ -28,6 +28,8 @@ 15 - #ifndef RADV_AMDGPU_WINSYS_H 16 - #define RADV_AMDGPU_WINSYS_H 17 - 18 - +#include <sys/types.h> 19 - + 20 - #include <amdgpu.h> 21 - #include <pthread.h> 22 - #include "util/list.h"
-42
pkgs/development/libraries/ncurses/clang.patch
··· 1 - diff -ruNp ncurses-5.8.orig/c++/cursesf.h ncurses-5.8/c++/cursesf.h 2 - --- ncurses-5.8.orig/c++/cursesf.h 2005-08-13 21:08:24.000000000 +0300 3 - +++ ncurses-5.8/c++/cursesf.h 2011-04-03 18:29:29.000000000 +0300 4 - @@ -681,7 +681,7 @@ public: 5 - const T* p_UserData = STATIC_CAST(T*)(0), 6 - bool with_frame=FALSE, 7 - bool autoDelete_Fields=FALSE) 8 - - : NCursesForm (Fields, with_frame, autoDelete_Fields) { 9 - + : NCursesForm (&Fields, with_frame, autoDelete_Fields) { 10 - if (form) 11 - set_user (const_cast<void *>(p_UserData)); 12 - }; 13 - @@ -694,7 +694,7 @@ public: 14 - const T* p_UserData = STATIC_CAST(T*)(0), 15 - bool with_frame=FALSE, 16 - bool autoDelete_Fields=FALSE) 17 - - : NCursesForm (Fields, nlines, ncols, begin_y, begin_x, 18 - + : NCursesForm (&Fields, nlines, ncols, begin_y, begin_x, 19 - with_frame, autoDelete_Fields) { 20 - if (form) 21 - set_user (const_cast<void *>(p_UserData)); 22 - diff -ruNp ncurses-5.8.orig/c++/cursesm.h ncurses-5.8/c++/cursesm.h 23 - --- ncurses-5.8.orig/c++/cursesm.h 2005-08-13 21:10:36.000000000 +0300 24 - +++ ncurses-5.8/c++/cursesm.h 2011-04-03 18:31:42.000000000 +0300 25 - @@ -639,7 +639,7 @@ public: 26 - const T* p_UserData = STATIC_CAST(T*)(0), 27 - bool with_frame=FALSE, 28 - bool autoDelete_Items=FALSE) 29 - - : NCursesMenu (Items, with_frame, autoDelete_Items) { 30 - + : NCursesMenu (&Items, with_frame, autoDelete_Items) { 31 - if (menu) 32 - set_user (const_cast<void *>(p_UserData)); 33 - }; 34 - @@ -651,7 +651,7 @@ public: 35 - int begin_x = 0, 36 - const T* p_UserData = STATIC_CAST(T*)(0), 37 - bool with_frame=FALSE) 38 - - : NCursesMenu (Items, nlines, ncols, begin_y, begin_x, with_frame) { 39 - + : NCursesMenu (&Items, nlines, ncols, begin_y, begin_x, with_frame) { 40 - if (menu) 41 - set_user (const_cast<void *>(p_UserData)); 42 - };
-2
pkgs/development/libraries/ncurses/default.nix
··· 27 27 sha256 = "15r2456g0mlq2q7gh2z52vl6zv6y0z8sdchrs80kg4idqd8sm8fd"; 28 28 }; 29 29 30 - patches = lib.optional (!stdenv.cc.isClang) ./clang.patch; 31 - 32 30 outputs = [ "out" "dev" "man" ]; 33 31 setOutputFlags = false; # some aren't supported 34 32
+129 -56
pkgs/development/libraries/polkit/default.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, glib, expat, pam, perl, fetchpatch 2 - , intltool, spidermonkey_78, gobject-introspection, libxslt, docbook_xsl, dbus 3 - , docbook_xml_dtd_412, gtk-doc, coreutils 4 - , useSystemd ? (stdenv.isLinux && !stdenv.hostPlatform.isMusl), systemd, elogind 1 + { lib 2 + , stdenv 3 + , fetchFromGitLab 4 + , pkg-config 5 + , glib 6 + , expat 7 + , pam 8 + , meson 9 + , ninja 10 + , perl 11 + , rsync 12 + , python3 13 + , fetchpatch 14 + , gettext 15 + , spidermonkey_78 16 + , gobject-introspection 17 + , libxslt 18 + , docbook-xsl-nons 19 + , dbus 20 + , docbook_xml_dtd_412 21 + , gtk-doc 22 + , coreutils 23 + , useSystemd ? stdenv.isLinux 24 + , systemd 25 + , elogind 5 26 # needed until gobject-introspection does cross-compile (https://github.com/NixOS/nixpkgs/pull/88222) 6 27 , withIntrospection ? (stdenv.buildPlatform == stdenv.hostPlatform) 7 28 # A few tests currently fail on musl (polkitunixusertest, polkitunixgrouptest, polkitidentitytest segfault). ··· 12 33 }: 13 34 14 35 let 15 - 16 36 system = "/run/current-system/sw"; 17 37 setuid = "/run/wrappers/bin"; 18 - 19 38 in 20 - 21 39 stdenv.mkDerivation rec { 22 40 pname = "polkit"; 23 - version = "0.119"; 41 + version = "0.120"; 42 + 43 + outputs = [ "bin" "dev" "out" ]; # small man pages in $bin 24 44 25 - src = fetchurl { 26 - url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.gz"; 27 - sha256 = "0p0zzmr0kh3mpmqya4q27y4h9b920zp5ya0i8909ahp9hvdrymy8"; 45 + # Tarballs do not contain subprojects. 46 + src = fetchFromGitLab { 47 + domain = "gitlab.freedesktop.org"; 48 + owner = "polkit"; 49 + repo = "polkit"; 50 + rev = version; 51 + sha256 = "oEaRf1g13zKMD+cP1iwIA6jaCDwvNfGy2i8xY8vuVSo="; 28 52 }; 29 53 30 - patches = lib.optionals stdenv.hostPlatform.isMusl [ 54 + patches = [ 55 + # Allow changing base for paths in pkg-config file as before. 56 + # https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/100 57 + (fetchpatch { 58 + url = "https://gitlab.freedesktop.org/polkit/polkit/-/commit/7ba07551dfcd4ef9a87b8f0d9eb8b91fabcb41b3.patch"; 59 + sha256 = "ebbLILncq1hAZTBMsLm+vDGw6j0iQ0crGyhzyLZQgKA="; 60 + }) 61 + ] ++ lib.optionals stdenv.hostPlatform.isMusl [ 31 62 # Make netgroup support optional (musl does not have it) 32 63 # Upstream MR: https://gitlab.freedesktop.org/polkit/polkit/merge_requests/10 33 64 # We use the version of the patch that Alpine uses successfully. 34 65 (fetchpatch { 35 66 name = "make-innetgr-optional.patch"; 36 - url = "https://git.alpinelinux.org/aports/plain/main/polkit/make-innetgr-optional.patch?id=391e7de6ced1a96c2dac812e0b12f1d7e0ea705e"; 37 - sha256 = "1p9qqqhnrfyjvvd50qh6vpl256kyfblm1qnhz5pm09klrl1bh1n4"; 67 + url = "https://git.alpinelinux.org/aports/plain/community/polkit/make-innetgr-optional.patch?id=424ecbb6e9e3a215c978b58c05e5c112d88dddfc"; 68 + sha256 = "0iyiksqk29sizwaa4623bv683px1fny67639qpb1him89hza00wy"; 38 69 }) 39 70 ]; 40 71 41 - postPatch = lib.optionalString stdenv.isDarwin '' 42 - sed -i -e "s/-Wl,--as-needed//" configure.ac 43 - ''; 72 + nativeBuildInputs = [ 73 + glib 74 + gtk-doc 75 + pkg-config 76 + gettext 77 + meson 78 + ninja 79 + perl 80 + rsync 81 + (python3.withPackages (pp: with pp; [ 82 + dbus-python 83 + (python-dbusmock.overridePythonAttrs (attrs: { 84 + # Avoid dependency cycle. 85 + doCheck = false; 86 + })) 87 + ])) 44 88 45 - outputs = [ "bin" "dev" "out" ]; # small man pages in $bin 89 + # man pages 90 + libxslt 91 + docbook-xsl-nons 92 + docbook_xml_dtd_412 93 + ]; 46 94 47 - nativeBuildInputs = 48 - [ glib gtk-doc pkg-config intltool perl ] 49 - ++ [ libxslt docbook_xsl docbook_xml_dtd_412 ]; # man pages 50 - buildInputs = 51 - [ expat pam spidermonkey_78 ] 95 + buildInputs = [ 96 + expat 97 + pam 98 + spidermonkey_78 99 + ] ++ lib.optionals stdenv.isLinux [ 52 100 # On Linux, fall back to elogind when systemd support is off. 53 - ++ lib.optional stdenv.isLinux (if useSystemd then systemd else elogind) 54 - ++ lib.optional withIntrospection gobject-introspection; 101 + (if useSystemd then systemd else elogind) 102 + ] ++ lib.optionals withIntrospection [ 103 + gobject-introspection 104 + ]; 55 105 56 106 propagatedBuildInputs = [ 57 107 glib # in .pc Requires 58 108 ]; 59 109 60 - preConfigure = '' 61 - chmod +x test/mocklibc/bin/mocklibc{,-test}.in 62 - patchShebangs . 110 + checkInputs = [ 111 + dbus 112 + ]; 113 + 114 + mesonFlags = [ 115 + "--datadir=${system}/share" 116 + "--sysconfdir=/etc" 117 + "-Dsystemdsystemunitdir=${placeholder "out"}/etc/systemd/system" 118 + "-Dpolkitd_user=polkituser" #TODO? <nixos> config.ids.uids.polkituser 119 + "-Dos_type=redhat" # only affects PAM includes 120 + "-Dintrospection=${lib.boolToString withIntrospection}" 121 + "-Dtests=${lib.boolToString doCheck}" 122 + "-Dgtk_doc=${lib.boolToString true}" 123 + "-Dman=true" 124 + ] ++ lib.optionals stdenv.isLinux [ 125 + "-Dsession_tracking=${if useSystemd then "libsystemd-login" else "libelogind"}" 126 + ]; 127 + 128 + # HACK: We want to install policy files files to $out/share but polkit 129 + # should read them from /run/current-system/sw/share on a NixOS system. 130 + # Similarly for config files in /etc. 131 + # With autotools, it was possible to override Make variables 132 + # at install time but Meson does not support this 133 + # so we need to convince it to install all files to a temporary 134 + # location using DESTDIR and then move it to proper one in postInstall. 135 + DESTDIR = "${placeholder "out"}/dest"; 136 + 137 + inherit doCheck; 138 + 139 + postPatch = '' 140 + patchShebangs test/polkitbackend/polkitbackendjsauthoritytest-wrapper.py 63 141 64 142 # ‘libpolkit-agent-1.so’ should call the setuid wrapper on 65 143 # NixOS. Hard-coding the path is kinda ugly. Maybe we can just ··· 69 147 substituteInPlace test/data/etc/polkit-1/rules.d/10-testing.rules \ 70 148 --replace /bin/true ${coreutils}/bin/true \ 71 149 --replace /bin/false ${coreutils}/bin/false 72 - 73 - '' + lib.optionalString useSystemd /* bogus chroot detection */ '' 74 - sed '/libsystemd autoconfigured/s/.*/:/' -i configure 75 150 ''; 76 151 77 - configureFlags = [ 78 - "--datadir=${system}/share" 79 - "--sysconfdir=/etc" 80 - "--with-systemdsystemunitdir=${placeholder "out"}/etc/systemd/system" 81 - "--with-polkitd-user=polkituser" #TODO? <nixos> config.ids.uids.polkituser 82 - "--with-os-type=NixOS" # not recognized but prevents impurities on non-NixOS 83 - (if withIntrospection then "--enable-introspection" else "--disable-introspection") 84 - ] ++ lib.optional (!doCheck) "--disable-test"; 152 + postConfigure = '' 153 + # Unpacked by meson 154 + chmod +x subprojects/mocklibc-1.0/bin/mocklibc 155 + patchShebangs subprojects/mocklibc-1.0/bin/mocklibc 156 + ''; 85 157 86 - makeFlags = [ 87 - "INTROSPECTION_GIRDIR=${placeholder "out"}/share/gir-1.0" 88 - "INTROSPECTION_TYPELIBDIR=${placeholder "out"}/lib/girepository-1.0" 89 - ]; 90 - 91 - installFlags = [ 92 - "datadir=${placeholder "out"}/share" 93 - "sysconfdir=${placeholder "out"}/etc" 94 - ]; 95 - 96 - inherit doCheck; 97 - checkInputs = [ dbus ]; 98 158 checkPhase = '' 99 159 runHook preCheck 100 160 101 - # unfortunately this test needs python-dbusmock, but python-dbusmock needs polkit, 102 - # leading to a circular dependency 103 - substituteInPlace test/Makefile --replace polkitbackend "" 104 - 105 161 # tests need access to the system bus 106 - dbus-run-session --config-file=${./system_bus.conf} -- sh -c 'DBUS_SYSTEM_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS make check' 162 + dbus-run-session --config-file=${./system_bus.conf} -- sh -c 'DBUS_SYSTEM_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS meson test --print-errorlogs' 107 163 108 164 runHook postCheck 165 + ''; 166 + 167 + postInstall = '' 168 + # Move stuff from DESTDIR to proper location. 169 + # We use rsync to merge the directories. 170 + rsync --archive "${DESTDIR}/etc" "$out" 171 + rm --recursive "${DESTDIR}/etc" 172 + rsync --archive "${DESTDIR}${system}"/* "$out" 173 + rm --recursive "${DESTDIR}${system}"/* 174 + rmdir --parents --ignore-fail-on-non-empty "${DESTDIR}${system}" 175 + for o in $outputs; do 176 + rsync --archive "${DESTDIR}/''${!o}" "$(dirname "''${!o}")" 177 + rm --recursive "${DESTDIR}/''${!o}" 178 + done 179 + # Ensure the DESTDIR is removed. 180 + destdirContainer="$(dirname "${DESTDIR}")" 181 + pushd "$destdirContainer"; rmdir --parents "''${DESTDIR##$destdirContainer/}${builtins.storeDir}"; popd 109 182 ''; 110 183 111 184 meta = with lib; {
+7
pkgs/development/libraries/portaudio/default.nix
··· 29 29 30 30 propagatedBuildInputs = lib.optionals stdenv.isDarwin [ AudioUnit AudioToolbox CoreAudio CoreServices Carbon ]; 31 31 32 + # Disable parallel build as it fails as: 33 + # make: *** No rule to make target '../../../lib/libportaudio.la', 34 + # needed by 'libportaudiocpp.la'. Stop. 35 + # Next release should address it with 36 + # https://github.com/PortAudio/portaudio/commit/28d2781d9216115543aa3f0a0ffb7b4ee0fac551.patch 37 + enableParallelBuilding = false; 38 + 32 39 # not sure why, but all the headers seem to be installed by the make install 33 40 installPhase = '' 34 41 make install
+2 -2
pkgs/development/libraries/protobuf/3.18.nix
··· 1 1 { callPackage, ... }: 2 2 3 3 callPackage ./generic-v3.nix { 4 - version = "3.18.0"; 5 - sha256 = "0nhjw4m4dm6wqwwsi0b18js5wbh3ibrpsq195g6mk9cx54fx097f"; 4 + version = "3.18.1"; 5 + sha256 = "sha256-5PK0uuk7Du9hX/hHy0gninHIKu6b8THdfVh87Gn7y2Q="; 6 6 }
+6
pkgs/development/libraries/protobuf/3.19.nix
··· 1 + { callPackage, ... }: 2 + 3 + callPackage ./generic-v3.nix { 4 + version = "3.19.0"; 5 + sha256 = "0rx4r4d7hqr0gi3v90jbkm2lnkj9p37dhgwx9d0w7kgh3rvr4i7g"; 6 + }
+7
pkgs/development/libraries/pth/default.nix
··· 14 14 configureFlagsArray+=("ac_cv_check_sjlj=ssjlj") 15 15 ''; 16 16 17 + # Fails parallel build due to missing dependency on autogenrated 18 + # 'pth_p.h' file: 19 + # ./shtool scpp -o pth_p.h ... 20 + # ./libtool --mode=compile --quiet gcc -c -I. -O2 -pipe pth_uctx.c 21 + # pth_uctx.c:31:10: fatal error: pth_p.h: No such file 22 + enableParallelBuilding = false; 23 + 17 24 meta = with lib; { 18 25 description = "The GNU Portable Threads library"; 19 26 homepage = "https://www.gnu.org/software/pth";
+4 -67
pkgs/development/libraries/qt-5/5.15/default.nix
··· 2 2 3 3 # Updates 4 4 5 - Before a major version update, make a copy of this directory. (We like to 6 - keep the old version around for a short time after major updates.) Add a 7 - top-level attribute to `top-level/all-packages.nix`. 8 - 9 - 1. Update the URL in `pkgs/development/libraries/qt-5/$VERSION/fetch.sh`. 10 - 2. From the top of the Nixpkgs tree, run 11 - `./maintainers/scripts/fetch-kde-qt.sh pkgs/development/libraries/qt-5/$VERSION`. 12 - 3. Check that the new packages build correctly. 13 - 4. Commit the changes and open a pull request. 5 + Run `./fetch.sh` to update package sources from Git. 6 + Check for any minor version changes. 14 7 15 8 */ 16 9 ··· 28 21 29 22 let 30 23 24 + srcs = import ./srcs.nix { inherit lib fetchgit fetchFromGitHub; }; 25 + 31 26 qtCompatVersion = srcs.qtbase.version; 32 27 33 28 stdenvActual = if stdenv.cc.isClang then llvmPackages_5.stdenv else stdenv; 34 29 35 - mirror = "https://download.qt.io"; 36 - srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; } // { 37 - # qtwebkit does not have an official release tarball on the qt mirror and is 38 - # mostly maintained by the community. 39 - qtwebkit = rec { 40 - src = fetchFromGitHub { 41 - owner = "qt"; 42 - repo = "qtwebkit"; 43 - rev = "v${version}"; 44 - sha256 = "0x8rng96h19xirn7qkz3lydal6v4vn00bcl0s3brz36dfs0z8wpg"; 45 - }; 46 - version = "5.212.0-alpha4"; 47 - }; 48 - qtwebengine = 49 - let 50 - branchName = "5.15.6"; 51 - rev = "v${branchName}-lts"; 52 - in 53 - { 54 - version = "${branchName}-${lib.substring 0 7 rev}"; 55 - 56 - src = fetchgit { 57 - url = "https://github.com/qt/qtwebengine.git"; 58 - sha256 = "17bw9yf04zmr9ck5jkrd435c8b03zpf937vn2nwgsr8p78wkg3kr"; 59 - inherit rev branchName; 60 - fetchSubmodules = true; 61 - leaveDotGit = true; 62 - name = "qtwebengine-${lib.substring 0 7 rev}.tar.gz"; 63 - postFetch = '' 64 - # remove submodule .git directory 65 - rm -rf "$out/src/3rdparty/.git" 66 - 67 - # compress to not exceed the 2GB output limit 68 - # try to make a deterministic tarball 69 - tar -I 'gzip -n' \ 70 - --sort=name \ 71 - --mtime=1970-01-01 \ 72 - --owner=root --group=root \ 73 - --numeric-owner --mode=go=rX,u+rw,a-s \ 74 - --transform='s@^@source/@' \ 75 - -cf temp -C "$out" . 76 - rm -r "$out" 77 - mv temp "$out" 78 - ''; 79 - }; 80 - }; 81 - }; 82 - 83 30 patches = { 84 31 qtbase = lib.optionals stdenv.isDarwin [ 85 32 ./qtbase.patch.d/0001-qtbase-mkspecs-mac.patch ··· 107 54 ./qtbase.patch.d/0009-qtbase-qtpluginpath.patch 108 55 ./qtbase.patch.d/0010-qtbase-assert.patch 109 56 ./qtbase.patch.d/0011-fix-header_module.patch 110 - (fetchpatch { # This can be removed when https://codereview.qt-project.org/c/qt/qtbase/+/339323 is included in an release. 111 - name = "0014-gcc11-compat.patch"; 112 - url = "https://codereview.qt-project.org/gitweb?p=qt/qtbase.git;a=patch;h=049e14870c13235cd066758f29c42dc96c1ccdf8"; 113 - sha256 = "1cb2hwi859hds0fa2cbap014qaa7mah9p0rcxcm2cvj2ybl33qfc"; 114 - }) 115 - (fetchpatch { # This can be removed when https://codereview.qt-project.org/c/qt/qtbase/+/363880/3 is included in an release. 116 - name = "qtbase-mysql-version-vs-functionality-check.patch"; 117 - url = "https://codereview.qt-project.org/gitweb?p=qt/qtbase.git;a=patch;h=211369133cf40b2f522caaff259c19069ed23ca4"; 118 - sha256 = "19kq9h10qm344fpdqa9basrbzh1y5kr48c6jzz3nvk61pk4ja1k4"; 119 - }) 120 57 ]; 121 58 qtdeclarative = [ ./qtdeclarative.patch ]; 122 59 qtscript = [ ./qtscript.patch ];
+17 -2
pkgs/development/libraries/qt-5/5.15/fetch.sh
··· 1 - WGET_ARGS=( http://download.qt.io/official_releases/qt/5.15/5.15.2/submodules/ \ 2 - -A '*.tar.xz' ) 1 + #!/usr/bin/env nix-shell 2 + #!nix-shell -i bash -p nix-prefetch-scripts jq 3 + 4 + set -eox pipefail 5 + 6 + here="$(dirname "${BASH_SOURCE[0]}")" 7 + modules="${here}/modules" 8 + srcs="${here}/srcs-generated.json" 9 + 10 + while read -r module; do 11 + if [[ -z "$module" ]]; then continue; fi 12 + url="https://invent.kde.org/qt/qt/${module}.git" 13 + nix-prefetch-git --url $url --rev refs/heads/kde/5.15 \ 14 + | jq "{key: \"${module}\", value: {url,rev,sha256}}" 15 + done < "$modules" | jq -s 'from_entries' > "${srcs}.tmp" 16 + 17 + mv "${srcs}.tmp" "$srcs"
+41
pkgs/development/libraries/qt-5/5.15/modules
··· 1 + qt3d 2 + qtactiveqt 3 + qtandroidextras 4 + qtbase 5 + qtcharts 6 + qtconnectivity 7 + qtdatavis3d 8 + qtdeclarative 9 + qtdoc 10 + qtgamepad 11 + qtgraphicaleffects 12 + qtimageformats 13 + qtlocation 14 + qtlottie 15 + qtmacextras 16 + qtmultimedia 17 + qtnetworkauth 18 + qtpurchasing 19 + qtquick3d 20 + qtquickcontrols 21 + qtquickcontrols2 22 + qtquicktimeline 23 + qtremoteobjects 24 + qtscript 25 + qtscxml 26 + qtsensors 27 + qtserialbus 28 + qtserialport 29 + qtspeech 30 + qtsvg 31 + qttools 32 + qttranslations 33 + qtvirtualkeyboard 34 + qtwayland 35 + qtwebchannel 36 + qtwebglplugin 37 + qtwebsockets 38 + qtwebview 39 + qtwinextras 40 + qtx11extras 41 + qtxmlpatterns
+207
pkgs/development/libraries/qt-5/5.15/srcs-generated.json
··· 1 + { 2 + "qt3d": { 3 + "url": "https://invent.kde.org/qt/qt/qt3d.git", 4 + "rev": "7edec6e014de27b9dd03f63875c471aac606a918", 5 + "sha256": "0qv4vhciigqd8bnqzrs7y71ls7jx1p9cal2rh78m42qgskk1ci59" 6 + }, 7 + "qtactiveqt": { 8 + "url": "https://invent.kde.org/qt/qt/qtactiveqt.git", 9 + "rev": "f0d03da0e37a84029a4eae1733813521482ac1fb", 10 + "sha256": "0llk76lf0mh4mzj7pwd8cs55wpmfq8v1bsdzvizb1sx0vfbjh8g6" 11 + }, 12 + "qtandroidextras": { 13 + "url": "https://invent.kde.org/qt/qt/qtandroidextras.git", 14 + "rev": "8cce1098c59534352aa0f343ea73861f603ac04a", 15 + "sha256": "130a1yda2m7pa10as3rccz84m3617422n6s51pdn4kp8p8rk7cs6" 16 + }, 17 + "qtbase": { 18 + "url": "https://invent.kde.org/qt/qt/qtbase.git", 19 + "rev": "c9fde86b0a2440133bc08f4811b6ca793be47f0a", 20 + "sha256": "1fqhdkv3sp3nbzqi2a5wvxn5d4v0xcrq2bl609bdyj4nx367a8wp" 21 + }, 22 + "qtcharts": { 23 + "url": "https://invent.kde.org/qt/qt/qtcharts.git", 24 + "rev": "130463160b4923069eb98da49edaf7d93180f4f8", 25 + "sha256": "19g35cddbfh307mk76wac1ps03warynlsj7xi8i596bxiaf7i4pw" 26 + }, 27 + "qtconnectivity": { 28 + "url": "https://invent.kde.org/qt/qt/qtconnectivity.git", 29 + "rev": "69a87a9b831e36a578594a0a13130c384ad03121", 30 + "sha256": "0ph07rdf9qfxnw3z2nqbmh6na65z0p2snmlzdw80amd7s0g255kw" 31 + }, 32 + "qtdatavis3d": { 33 + "url": "https://invent.kde.org/qt/qt/qtdatavis3d.git", 34 + "rev": "c085311c02dd216e5a041b90c164d55b3cf3ce92", 35 + "sha256": "0xya1m2csb42yisl90s9822p9q92n7ags909nlbapfsb49qwsqnj" 36 + }, 37 + "qtdeclarative": { 38 + "url": "https://invent.kde.org/qt/qt/qtdeclarative.git", 39 + "rev": "55324650f9e759a43dce927f823c9858574106c3", 40 + "sha256": "0cxz4pqvb8l0wqpc4hr0xmc72csqf7dpbbzdqgil9nyyg21ihkz0" 41 + }, 42 + "qtdoc": { 43 + "url": "https://invent.kde.org/qt/qt/qtdoc.git", 44 + "rev": "897e90fe304d844beaf694b82a93a50237fa8b9e", 45 + "sha256": "1c4m9vlgg6bfw7hwzanl5s4vslg0r7xiz50lanhqrlcrr9i36xs1" 46 + }, 47 + "qtgamepad": { 48 + "url": "https://invent.kde.org/qt/qt/qtgamepad.git", 49 + "rev": "64afa18a0a1e9588060e2e6d917bb01ccdd48a81", 50 + "sha256": "1h9yb0asprynnb2qyjbmyglrkk9f9v19g6zzpk0gmixrp0h8gk46" 51 + }, 52 + "qtgraphicaleffects": { 53 + "url": "https://invent.kde.org/qt/qt/qtgraphicaleffects.git", 54 + "rev": "c36998dc1581167b12cc3de8e4ac68c2a5d9f76e", 55 + "sha256": "0x11n2fym765z3gyb4xnfl7v6zrip1wjkkl6nx1bxaya173fvdw8" 56 + }, 57 + "qtimageformats": { 58 + "url": "https://invent.kde.org/qt/qt/qtimageformats.git", 59 + "rev": "cb82c74310837fe4e832c8ab72176a5d63e4355f", 60 + "sha256": "0j4cv5sa6mm3adcjw8cv6kbzrslmhjc1rgxqgc130l8vm3vmgbkr" 61 + }, 62 + "qtlocation": { 63 + "url": "https://invent.kde.org/qt/qt/qtlocation.git", 64 + "rev": "861e372b6ad81570d4f496e42fb25a6699b72f2f", 65 + "sha256": "1g24pg9v6sv5zf80r48innp3h4g0hss69hnr7ygfzfvfnmmn6g52" 66 + }, 67 + "qtlottie": { 68 + "url": "https://invent.kde.org/qt/qt/qtlottie.git", 69 + "rev": "fa8c8bfc6742ab98b61d1351e054e0e73e9a42f4", 70 + "sha256": "1xgykaw8qjnaip6h9jx0nfadc9amb6aclk758vm5pp43dvs5j96r" 71 + }, 72 + "qtmacextras": { 73 + "url": "https://invent.kde.org/qt/qt/qtmacextras.git", 74 + "rev": "e72896968697e2a8af16a312e1560948e4c40f30", 75 + "sha256": "1hndpbr1nnybn7frg76q99bk1c8fhvra6wjm0q78p4a8pinrvcms" 76 + }, 77 + "qtmultimedia": { 78 + "url": "https://invent.kde.org/qt/qt/qtmultimedia.git", 79 + "rev": "bd29c87027637a013f2c5e3b549fcda84e4d7545", 80 + "sha256": "11pz9zzrhsr3n78ga7l3kp3gi20rpxsa4iz3wclhcbcm2xr3nd94" 81 + }, 82 + "qtnetworkauth": { 83 + "url": "https://invent.kde.org/qt/qt/qtnetworkauth.git", 84 + "rev": "53870ee9bb9117702cd1f11cb1c5d1cfc2d5394a", 85 + "sha256": "0idaysqpwrghih7ijrm9hagj9jw3fy9nw539fr4d9rmcggnkkzn2" 86 + }, 87 + "qtpurchasing": { 88 + "url": "https://invent.kde.org/qt/qt/qtpurchasing.git", 89 + "rev": "cbf444fb570ca4f4ca21d963d2ae4010f10d473e", 90 + "sha256": "1cki7n62wqm3xxn36mka0y67ngn7jvjkrvr08vsassbjb7kfsmxp" 91 + }, 92 + "qtquick3d": { 93 + "url": "https://invent.kde.org/qt/qt/qtquick3d.git", 94 + "rev": "3e3e53c834b25dc2959dd30f319d12d6f84ee1e3", 95 + "sha256": "1b1khfg26zl3p28yvhwjfldqy3flh10pb5hm5z0av03rz7jy7l8s" 96 + }, 97 + "qtquickcontrols": { 98 + "url": "https://invent.kde.org/qt/qt/qtquickcontrols.git", 99 + "rev": "cf3f6d7fec824cdf01f9b329ab3b92b1c0e0a420", 100 + "sha256": "1vxp0kwigwhqyyfm0xg8llyd1l1f4l18hmk6xqkm57xpi15x55bc" 101 + }, 102 + "qtquickcontrols2": { 103 + "url": "https://invent.kde.org/qt/qt/qtquickcontrols2.git", 104 + "rev": "be66bf9a5618c745d2a6ee2262967af6307b3b07", 105 + "sha256": "11h3f3rb2kqgsw7njzhjwazw1k03v12i83irjndylafiaqw6c6ks" 106 + }, 107 + "qtquicktimeline": { 108 + "url": "https://invent.kde.org/qt/qt/qtquicktimeline.git", 109 + "rev": "67503cdadea43b95ddad0de1a04951aff0ce1a07", 110 + "sha256": "0h4b3ibcf6rsmqmcfbwbk9pbvw3b9cac8nx2538aqvnpyyp1vhid" 111 + }, 112 + "qtremoteobjects": { 113 + "url": "https://invent.kde.org/qt/qt/qtremoteobjects.git", 114 + "rev": "4d6d1e35fb8e0cb900b5e5e9266edea51dc4f735", 115 + "sha256": "1zbxl5jk7x8qklrnbbaikymyviigqdq7vf0wc8gzls4126vcx146" 116 + }, 117 + "qtscript": { 118 + "url": "https://invent.kde.org/qt/qt/qtscript.git", 119 + "rev": "5cec94b2c1503f106f4ef4778d016410ebb86211", 120 + "sha256": "1xdri98cw7m78k9kfb53cgh8wyz98q3i623jhhcv01rvy1zsf8m1" 121 + }, 122 + "qtscxml": { 123 + "url": "https://invent.kde.org/qt/qt/qtscxml.git", 124 + "rev": "7a15000f42c7a3171719727cd056f82a78244ed7", 125 + "sha256": "1i2ajsj9pb1s4lk4djj1h1ay9mkz1z3m75a747cspyc1p1iymipq" 126 + }, 127 + "qtsensors": { 128 + "url": "https://invent.kde.org/qt/qt/qtsensors.git", 129 + "rev": "921a31375f29e429e95352b08b2b9dbfea663cb1", 130 + "sha256": "1ijayk6lf34nwv7s3ib3cfqx9sjrmr1c6jnziwmxa1l6fy3ik4g8" 131 + }, 132 + "qtserialbus": { 133 + "url": "https://invent.kde.org/qt/qt/qtserialbus.git", 134 + "rev": "8884c5e43df846deac5a0c7c290eeb633d6bfe32", 135 + "sha256": "1ydb5x21j26pl58mr6klnwixkqx8h119nvnzvyawz83gji3ay3a5" 136 + }, 137 + "qtserialport": { 138 + "url": "https://invent.kde.org/qt/qt/qtserialport.git", 139 + "rev": "941d1d8560d1f3e40077c251fbde6fd6a5b0f0d4", 140 + "sha256": "0x7ly67gddmz0hqls9109bk4rgaa97ksyv24qk4brrhzkpr7q9cx" 141 + }, 142 + "qtspeech": { 143 + "url": "https://invent.kde.org/qt/qt/qtspeech.git", 144 + "rev": "a0efc38377e5bf7eed2d354d1cb4d7a0d5dc7e1b", 145 + "sha256": "1ljf45f65pfp8x367qnzl0ssz7n17cxhk29qvqpz9z7rh65zqix5" 146 + }, 147 + "qtsvg": { 148 + "url": "https://invent.kde.org/qt/qt/qtsvg.git", 149 + "rev": "24128cdf8bef53eddf31a5709bbbc46293006b1c", 150 + "sha256": "0vinjcbq4saxhlmvb5i93bzgg30qc3j8r2qfwrzaxc4vmfhfgi56" 151 + }, 152 + "qttools": { 153 + "url": "https://invent.kde.org/qt/qt/qttools.git", 154 + "rev": "33693a928986006d79c1ee743733cde5966ac402", 155 + "sha256": "02n0lppsp6g4s9bdvnfxpf7ndkbs9bzm0clcwvirwf2cd8q95a4n" 156 + }, 157 + "qttranslations": { 158 + "url": "https://invent.kde.org/qt/qt/qttranslations.git", 159 + "rev": "8fbbdf21f127197f97b58c7d80d2fa2a59135638", 160 + "sha256": "06r2jb2fsdr5fvxs748war0lr4mm3l3d3b37xc4n73y294vwrmn7" 161 + }, 162 + "qtvirtualkeyboard": { 163 + "url": "https://invent.kde.org/qt/qt/qtvirtualkeyboard.git", 164 + "rev": "353b75b2e34bdae901625bbddf5c5e3f3e6c0de5", 165 + "sha256": "12nv773zc05yrbai1z6i481yinih0kxcjzgm9pa0580qz69gd9a5" 166 + }, 167 + "qtwayland": { 168 + "url": "https://invent.kde.org/qt/qt/qtwayland.git", 169 + "rev": "992833ca741efe8f533c61abfaf129a1d8bfcfee", 170 + "sha256": "1w8mq38k6s0fncqv113bw1pc7g10ysfmsbyg23hxh9fr5q4ia4q7" 171 + }, 172 + "qtwebchannel": { 173 + "url": "https://invent.kde.org/qt/qt/qtwebchannel.git", 174 + "rev": "47be9a51b01d9fd9e7f6dca81e98d4eedcec6d38", 175 + "sha256": "167rp43c86xr4grzxs4bl46y6sf1q9xa0641mgp4r94g2ipxyc1d" 176 + }, 177 + "qtwebglplugin": { 178 + "url": "https://invent.kde.org/qt/qt/qtwebglplugin.git", 179 + "rev": "550a8cee241bbf8c11863dec9587d579dcb1108b", 180 + "sha256": "0p1y0b8zsm7rrkhhylndp282ghgki2cjrgc4n5zhjn732ahxg515" 181 + }, 182 + "qtwebsockets": { 183 + "url": "https://invent.kde.org/qt/qt/qtwebsockets.git", 184 + "rev": "e7883bc64440b1ff4666272ac6eb710ee4bc221b", 185 + "sha256": "1rj99y1f0wn6g1m2k53xkni5v79zgq25yv8b9wx2bz0n2r9iasca" 186 + }, 187 + "qtwebview": { 188 + "url": "https://invent.kde.org/qt/qt/qtwebview.git", 189 + "rev": "920de5f1cd9f9001cfef1bfd2c19e6720793362f", 190 + "sha256": "04hnqalabhypkd2hgl45jxf9p1p6dgjwlc5b7gs4f6588lafgd3f" 191 + }, 192 + "qtwinextras": { 193 + "url": "https://invent.kde.org/qt/qt/qtwinextras.git", 194 + "rev": "3df03dab21f3e84d5a7274c64dd879854ca1bfe7", 195 + "sha256": "12dkw982xcm7hxw3lxhg34wny4srbickxm9s3nz7bdyp9dmqnygx" 196 + }, 197 + "qtx11extras": { 198 + "url": "https://invent.kde.org/qt/qt/qtx11extras.git", 199 + "rev": "3898f5484fd4864b047729bfeda9a1222f32364f", 200 + "sha256": "04rp8arml19b03iybd7sa78dsdv7386m9ymmgqciwl13dhwjssra" 201 + }, 202 + "qtxmlpatterns": { 203 + "url": "https://invent.kde.org/qt/qt/qtxmlpatterns.git", 204 + "rev": "189e28d0aff1f3d7960228ba318b83e3cadac98c", 205 + "sha256": "0vs9j2i1dnlivcrzz175zz66ql1m8mrdqkglvyqjqv6cb7mpskrq" 206 + } 207 + }
+65 -335
pkgs/development/libraries/qt-5/5.15/srcs.nix
··· 1 - # DO NOT EDIT! This file is generated automatically. 2 - # Command: ./maintainers/scripts/fetch-kde-qt.sh pkgs/development/libraries/qt-5/5.15 3 - { fetchurl, mirror }: 1 + { lib, fetchgit, fetchFromGitHub }: 4 2 5 - { 6 - qt3d = { 7 - version = "5.15.2"; 8 - src = fetchurl { 9 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qt3d-everywhere-src-5.15.2.tar.xz"; 10 - sha256 = "03ed6a48c813c75296c19f5d721184ab168280b69d2656cf16f877d3d4c55c1d"; 11 - name = "qt3d-everywhere-src-5.15.2.tar.xz"; 12 - }; 13 - }; 14 - qtactiveqt = { 15 - version = "5.15.2"; 16 - src = fetchurl { 17 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtactiveqt-everywhere-src-5.15.2.tar.xz"; 18 - sha256 = "868161fee0876d17079cd5bed58d1667bf19ffd0018cbe515129f11510ad2a5c"; 19 - name = "qtactiveqt-everywhere-src-5.15.2.tar.xz"; 20 - }; 21 - }; 22 - qtandroidextras = { 23 - version = "5.15.2"; 24 - src = fetchurl { 25 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtandroidextras-everywhere-src-5.15.2.tar.xz"; 26 - sha256 = "5813278690d89a9c232eccf697fc280034de6f9f02a7c40d95ad5fcf8ac8dabd"; 27 - name = "qtandroidextras-everywhere-src-5.15.2.tar.xz"; 28 - }; 29 - }; 30 - qtbase = { 31 - version = "5.15.2"; 32 - src = fetchurl { 33 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtbase-everywhere-src-5.15.2.tar.xz"; 34 - sha256 = "909fad2591ee367993a75d7e2ea50ad4db332f05e1c38dd7a5a274e156a4e0f8"; 35 - name = "qtbase-everywhere-src-5.15.2.tar.xz"; 36 - }; 37 - }; 38 - qtcharts = { 39 - version = "5.15.2"; 40 - src = fetchurl { 41 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtcharts-everywhere-src-5.15.2.tar.xz"; 42 - sha256 = "e0750e4195bd8a8b9758ab4d98d437edbe273cd3d289dd6a8f325df6d13f3d11"; 43 - name = "qtcharts-everywhere-src-5.15.2.tar.xz"; 44 - }; 45 - }; 46 - qtconnectivity = { 47 - version = "5.15.2"; 48 - src = fetchurl { 49 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtconnectivity-everywhere-src-5.15.2.tar.xz"; 50 - sha256 = "0380327871f76103e5b8c2a305988d76d352b6a982b3e7b3bc3cdc184c64bfa0"; 51 - name = "qtconnectivity-everywhere-src-5.15.2.tar.xz"; 52 - }; 53 - }; 54 - qtdatavis3d = { 55 - version = "5.15.2"; 56 - src = fetchurl { 57 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtdatavis3d-everywhere-src-5.15.2.tar.xz"; 58 - sha256 = "226a6575d573ad78aca459709722c496c23aee526aa0c38eb7c93b0bea1eb6fd"; 59 - name = "qtdatavis3d-everywhere-src-5.15.2.tar.xz"; 60 - }; 61 - }; 62 - qtdeclarative = { 63 - version = "5.15.2"; 64 - src = fetchurl { 65 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtdeclarative-everywhere-src-5.15.2.tar.xz"; 66 - sha256 = "c600d09716940f75d684f61c5bdaced797f623a86db1627da599027f6c635651"; 67 - name = "qtdeclarative-everywhere-src-5.15.2.tar.xz"; 68 - }; 69 - }; 70 - qtdoc = { 71 - version = "5.15.2"; 72 - src = fetchurl { 73 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtdoc-everywhere-src-5.15.2.tar.xz"; 74 - sha256 = "a47809f00f1bd690ca4e699cb32ffe7717d43da84e0167d1f562210da7714ce4"; 75 - name = "qtdoc-everywhere-src-5.15.2.tar.xz"; 76 - }; 77 - }; 78 - qtgamepad = { 79 - version = "5.15.2"; 80 - src = fetchurl { 81 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtgamepad-everywhere-src-5.15.2.tar.xz"; 82 - sha256 = "c77611f7898326d69176ad67a9b886f617cdedc368ec29f223d63537d25b075c"; 83 - name = "qtgamepad-everywhere-src-5.15.2.tar.xz"; 84 - }; 85 - }; 86 - qtgraphicaleffects = { 87 - version = "5.15.2"; 88 - src = fetchurl { 89 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtgraphicaleffects-everywhere-src-5.15.2.tar.xz"; 90 - sha256 = "ec8d67f64967d5046410490b549c576f9b9e8b47ec68594ae84aa8870173dfe4"; 91 - name = "qtgraphicaleffects-everywhere-src-5.15.2.tar.xz"; 92 - }; 93 - }; 94 - qtimageformats = { 95 - version = "5.15.2"; 96 - src = fetchurl { 97 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtimageformats-everywhere-src-5.15.2.tar.xz"; 98 - sha256 = "bf8285c7ce04284527ab823ddc7cf48a1bb79131db3a7127342167f4814253d7"; 99 - name = "qtimageformats-everywhere-src-5.15.2.tar.xz"; 100 - }; 101 - }; 102 - qtlocation = { 103 - version = "5.15.2"; 104 - src = fetchurl { 105 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtlocation-everywhere-src-5.15.2.tar.xz"; 106 - sha256 = "984fcb09e108df49a8dac35d5ce6dffc49caafd2acb1c2f8a5173a6a21f392a0"; 107 - name = "qtlocation-everywhere-src-5.15.2.tar.xz"; 108 - }; 109 - }; 110 - qtlottie = { 111 - version = "5.15.2"; 112 - src = fetchurl { 113 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtlottie-everywhere-src-5.15.2.tar.xz"; 114 - sha256 = "cec6095ab8f714e609d2ad3ea8c4fd819461ce8793adc42abe37d0f6dc432517"; 115 - name = "qtlottie-everywhere-src-5.15.2.tar.xz"; 116 - }; 117 - }; 118 - qtmacextras = { 119 - version = "5.15.2"; 120 - src = fetchurl { 121 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtmacextras-everywhere-src-5.15.2.tar.xz"; 122 - sha256 = "6959b0f2cec71cd66800f36cab797430860e55fa33c9c23698d6a08fc2b8776e"; 123 - name = "qtmacextras-everywhere-src-5.15.2.tar.xz"; 124 - }; 125 - }; 126 - qtmultimedia = { 127 - version = "5.15.2"; 128 - src = fetchurl { 129 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtmultimedia-everywhere-src-5.15.2.tar.xz"; 130 - sha256 = "0c3758810e5131aabcf76e4965e4c18b8911af54d9edd9305d2a8278d8346df5"; 131 - name = "qtmultimedia-everywhere-src-5.15.2.tar.xz"; 132 - }; 133 - }; 134 - qtnetworkauth = { 135 - version = "5.15.2"; 136 - src = fetchurl { 137 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtnetworkauth-everywhere-src-5.15.2.tar.xz"; 138 - sha256 = "fcc2ec42faa68561efa8f00cd72e662fbc06563ebc6de1dc42d96bb2997acd85"; 139 - name = "qtnetworkauth-everywhere-src-5.15.2.tar.xz"; 140 - }; 141 - }; 142 - qtpurchasing = { 143 - version = "5.15.2"; 144 - src = fetchurl { 145 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtpurchasing-everywhere-src-5.15.2.tar.xz"; 146 - sha256 = "87120d319ff2f8106e78971f7296d72a66dfe91e763d213199aea55046e93227"; 147 - name = "qtpurchasing-everywhere-src-5.15.2.tar.xz"; 148 - }; 149 - }; 150 - qtquick3d = { 151 - version = "5.15.2"; 152 - src = fetchurl { 153 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtquick3d-everywhere-src-5.15.2.tar.xz"; 154 - sha256 = "5b0546323365ce34e4716f22f305ebb4902e222c1a0910b65ee448443c2f94bb"; 155 - name = "qtquick3d-everywhere-src-5.15.2.tar.xz"; 156 - }; 157 - }; 158 - qtquickcontrols = { 159 - version = "5.15.2"; 160 - src = fetchurl { 161 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtquickcontrols-everywhere-src-5.15.2.tar.xz"; 162 - sha256 = "c393fb7384b1f047f10e91a6832cf3e6a4c2a41408b8cb2d05af2283e8549fb5"; 163 - name = "qtquickcontrols-everywhere-src-5.15.2.tar.xz"; 164 - }; 165 - }; 166 - qtquickcontrols2 = { 167 - version = "5.15.2"; 168 - src = fetchurl { 169 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtquickcontrols2-everywhere-src-5.15.2.tar.xz"; 170 - sha256 = "671b6ce5f4b8ecc94db622d5d5fb29ef4ff92819be08e5ea55bfcab579de8919"; 171 - name = "qtquickcontrols2-everywhere-src-5.15.2.tar.xz"; 172 - }; 173 - }; 174 - qtquicktimeline = { 175 - version = "5.15.2"; 176 - src = fetchurl { 177 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtquicktimeline-everywhere-src-5.15.2.tar.xz"; 178 - sha256 = "b9c247227607437acec7c7dd18ad46179d20369c9d22bdb1e9fc128dfb832a28"; 179 - name = "qtquicktimeline-everywhere-src-5.15.2.tar.xz"; 180 - }; 181 - }; 182 - qtremoteobjects = { 183 - version = "5.15.2"; 184 - src = fetchurl { 185 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtremoteobjects-everywhere-src-5.15.2.tar.xz"; 186 - sha256 = "6781b6bc90888254ea77ce812736dac00c67fa4eeb3095f5cd65e4b9c15dcfc2"; 187 - name = "qtremoteobjects-everywhere-src-5.15.2.tar.xz"; 188 - }; 189 - }; 190 - qtscript = { 191 - version = "5.15.2"; 192 - src = fetchurl { 193 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtscript-everywhere-src-5.15.2.tar.xz"; 194 - sha256 = "a299715369afbd1caa4d7fa2875d442eab91adcaacafce54a36922442624673e"; 195 - name = "qtscript-everywhere-src-5.15.2.tar.xz"; 196 - }; 197 - }; 198 - qtscxml = { 199 - version = "5.15.2"; 200 - src = fetchurl { 201 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtscxml-everywhere-src-5.15.2.tar.xz"; 202 - sha256 = "60b9590b9a41c60cee7b8a8c8410ee4625f0389c1ff8d79883ec5a985638a7dc"; 203 - name = "qtscxml-everywhere-src-5.15.2.tar.xz"; 204 - }; 205 - }; 206 - qtsensors = { 207 - version = "5.15.2"; 208 - src = fetchurl { 209 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtsensors-everywhere-src-5.15.2.tar.xz"; 210 - sha256 = "3f0011f9e9942cad119146b54d960438f4568a22a274cdad4fae06bb4e0e4839"; 211 - name = "qtsensors-everywhere-src-5.15.2.tar.xz"; 212 - }; 213 - }; 214 - qtserialbus = { 215 - version = "5.15.2"; 216 - src = fetchurl { 217 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtserialbus-everywhere-src-5.15.2.tar.xz"; 218 - sha256 = "aeeb7e5c0d3f8503215b22e1a84c0002ca67cf63862f6e3c6ef44a67ca31bd88"; 219 - name = "qtserialbus-everywhere-src-5.15.2.tar.xz"; 220 - }; 221 - }; 222 - qtserialport = { 223 - version = "5.15.2"; 224 - src = fetchurl { 225 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtserialport-everywhere-src-5.15.2.tar.xz"; 226 - sha256 = "59c559d748417306bc1b2cf2315c1e63eed011ace38ad92946af71f23e2ef79d"; 227 - name = "qtserialport-everywhere-src-5.15.2.tar.xz"; 228 - }; 229 - }; 230 - qtspeech = { 231 - version = "5.15.2"; 232 - src = fetchurl { 233 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtspeech-everywhere-src-5.15.2.tar.xz"; 234 - sha256 = "c810fb9eecb08026434422a32e79269627f3bc2941be199e86ec410bdfe883f5"; 235 - name = "qtspeech-everywhere-src-5.15.2.tar.xz"; 236 - }; 237 - }; 238 - qtsvg = { 239 - version = "5.15.2"; 240 - src = fetchurl { 241 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtsvg-everywhere-src-5.15.2.tar.xz"; 242 - sha256 = "8bc3c2c1bc2671e9c67d4205589a8309b57903721ad14c60ea21a5d06acb585e"; 243 - name = "qtsvg-everywhere-src-5.15.2.tar.xz"; 244 - }; 245 - }; 246 - qttools = { 247 - version = "5.15.2"; 248 - src = fetchurl { 249 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qttools-everywhere-src-5.15.2.tar.xz"; 250 - sha256 = "c189d0ce1ff7c739db9a3ace52ac3e24cb8fd6dbf234e49f075249b38f43c1cc"; 251 - name = "qttools-everywhere-src-5.15.2.tar.xz"; 252 - }; 253 - }; 254 - qttranslations = { 255 - version = "5.15.2"; 256 - src = fetchurl { 257 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qttranslations-everywhere-src-5.15.2.tar.xz"; 258 - sha256 = "d5788e86257b21d5323f1efd94376a213e091d1e5e03b45a95dd052b5f570db8"; 259 - name = "qttranslations-everywhere-src-5.15.2.tar.xz"; 260 - }; 261 - }; 262 - qtvirtualkeyboard = { 263 - version = "5.15.2"; 264 - src = fetchurl { 265 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtvirtualkeyboard-everywhere-src-5.15.2.tar.xz"; 266 - sha256 = "9a3193913be30f09a896e3b8c2f9696d2e9b3f88a63ae9ca8c97a2786b68cf55"; 267 - name = "qtvirtualkeyboard-everywhere-src-5.15.2.tar.xz"; 268 - }; 269 - }; 270 - qtwayland = { 271 - version = "5.15.2"; 272 - src = fetchurl { 273 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtwayland-everywhere-src-5.15.2.tar.xz"; 274 - sha256 = "193732229ff816f3aaab9a5e2f6bed71ddddbf1988ce003fe8dd84a92ce9aeb5"; 275 - name = "qtwayland-everywhere-src-5.15.2.tar.xz"; 276 - }; 277 - }; 278 - qtwebchannel = { 279 - version = "5.15.2"; 280 - src = fetchurl { 281 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtwebchannel-everywhere-src-5.15.2.tar.xz"; 282 - sha256 = "127fe79c43b386713f151ed7d411cd81e45e29f9c955584f29736f78c9303ec1"; 283 - name = "qtwebchannel-everywhere-src-5.15.2.tar.xz"; 284 - }; 285 - }; 286 - qtwebengine = { 287 - version = "5.15.2"; 288 - src = fetchurl { 289 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtwebengine-everywhere-src-5.15.2.tar.xz"; 290 - sha256 = "c8afca0e43d84f7bd595436fbe4d13a5bbdb81ec5104d605085d07545b6f91e0"; 291 - name = "qtwebengine-everywhere-src-5.15.2.tar.xz"; 292 - }; 293 - }; 294 - qtwebglplugin = { 295 - version = "5.15.2"; 296 - src = fetchurl { 297 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtwebglplugin-everywhere-src-5.15.2.tar.xz"; 298 - sha256 = "81e782b517ed29e10bea1aa90c9f59274c98a910f2c8b105fa78368a36b41446"; 299 - name = "qtwebglplugin-everywhere-src-5.15.2.tar.xz"; 300 - }; 3 + let 4 + version = "5.15.3"; 5 + overrides = { 6 + qtscript.version = "5.15.4"; 301 7 }; 302 - qtwebsockets = { 303 - version = "5.15.2"; 304 - src = fetchurl { 305 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtwebsockets-everywhere-src-5.15.2.tar.xz"; 306 - sha256 = "a0b42d85dd34ff6e2d23400e02f83d8b85bcd80e60efd1521d12d9625d4a233f"; 307 - name = "qtwebsockets-everywhere-src-5.15.2.tar.xz"; 308 - }; 309 - }; 310 - qtwebview = { 311 - version = "5.15.2"; 312 - src = fetchurl { 313 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtwebview-everywhere-src-5.15.2.tar.xz"; 314 - sha256 = "be9f46167e4977ead5ef5ecf883fdb812a4120f2436383583792f65557e481e7"; 315 - name = "qtwebview-everywhere-src-5.15.2.tar.xz"; 316 - }; 317 - }; 318 - qtwinextras = { 319 - version = "5.15.2"; 320 - src = fetchurl { 321 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtwinextras-everywhere-src-5.15.2.tar.xz"; 322 - sha256 = "65b8272005dec00791ab7d81ab266d1e3313a3bbd8e54e546d984cf4c4ab550e"; 323 - name = "qtwinextras-everywhere-src-5.15.2.tar.xz"; 8 + 9 + mk = name: args: 10 + let 11 + override = overrides.${name} or {}; 12 + in 13 + { 14 + version = override.version or version; 15 + src = override.src or 16 + fetchgit { 17 + inherit (args) url rev sha256; 18 + fetchLFS = false; 19 + fetchSubmodules = false; 20 + deepClone = false; 21 + leaveDotGit = false; 22 + }; 324 23 }; 325 - }; 326 - qtx11extras = { 327 - version = "5.15.2"; 328 - src = fetchurl { 329 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtx11extras-everywhere-src-5.15.2.tar.xz"; 330 - sha256 = "7014702ee9a644a5a93da70848ac47c18851d4f8ed622b29a72eed9282fc6e3e"; 331 - name = "qtx11extras-everywhere-src-5.15.2.tar.xz"; 24 + in 25 + lib.mapAttrs mk (lib.importJSON ./srcs-generated.json) 26 + // { 27 + # qtwebkit does not have an official release tarball on the qt mirror and is 28 + # mostly maintained by the community. 29 + qtwebkit = rec { 30 + src = fetchFromGitHub { 31 + owner = "qt"; 32 + repo = "qtwebkit"; 33 + rev = "v${version}"; 34 + sha256 = "0x8rng96h19xirn7qkz3lydal6v4vn00bcl0s3brz36dfs0z8wpg"; 332 35 }; 36 + version = "5.212.0-alpha4"; 333 37 }; 334 - qtxmlpatterns = { 335 - version = "5.15.2"; 336 - src = fetchurl { 337 - url = "${mirror}/official_releases/qt/5.15/5.15.2/submodules/qtxmlpatterns-everywhere-src-5.15.2.tar.xz"; 338 - sha256 = "76ea2162a7c349188d7e7e4f6c77b78e8a205494c90fee3cea3487a1ae2cf2fa"; 339 - name = "qtxmlpatterns-everywhere-src-5.15.2.tar.xz"; 38 + 39 + qtwebengine = 40 + let 41 + branchName = "5.15.6"; 42 + rev = "v${branchName}-lts"; 43 + in 44 + { 45 + version = "${branchName}-${lib.substring 0 7 rev}"; 46 + 47 + src = fetchgit { 48 + url = "https://github.com/qt/qtwebengine.git"; 49 + sha256 = "17bw9yf04zmr9ck5jkrd435c8b03zpf937vn2nwgsr8p78wkg3kr"; 50 + inherit rev branchName; 51 + fetchSubmodules = true; 52 + leaveDotGit = true; 53 + name = "qtwebengine-${lib.substring 0 7 rev}.tar.gz"; 54 + postFetch = '' 55 + # remove submodule .git directory 56 + rm -rf "$out/src/3rdparty/.git" 57 + 58 + # compress to not exceed the 2GB output limit 59 + # try to make a deterministic tarball 60 + tar -I 'gzip -n' \ 61 + --sort=name \ 62 + --mtime=1970-01-01 \ 63 + --owner=root --group=root \ 64 + --numeric-owner --mode=go=rX,u+rw,a-s \ 65 + --transform='s@^@source/@' \ 66 + -cf temp -C "$out" . 67 + rm -r "$out" 68 + mv temp "$out" 69 + ''; 70 + }; 340 71 }; 341 - }; 342 72 }
+4
pkgs/development/libraries/qt-5/modules/qtbase.nix
··· 115 115 sed -i '/PATHS.*NO_DEFAULT_PATH/ d' src/corelib/Qt5CoreMacros.cmake 116 116 sed -i 's/NO_DEFAULT_PATH//' src/gui/Qt5GuiConfigExtras.cmake.in 117 117 sed -i '/PATHS.*NO_DEFAULT_PATH/ d' mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in 118 + '' + lib.optionalString (compareVersion "5.15.0" >= 0) '' 119 + patchShebangs ./bin 118 120 '' + ( 119 121 if stdenv.isDarwin then '' 120 122 sed -i \ ··· 149 151 ''} 150 152 151 153 NIX_CFLAGS_COMPILE+=" -DNIXPKGS_QT_PLUGIN_PREFIX=\"$qtPluginPrefix\"" 154 + '' + lib.optionalString (compareVersion "5.15.0" >= 0) '' 155 + ./bin/syncqt.pl -version $version 152 156 ''; 153 157 154 158 postConfigure = ''
+17
pkgs/development/libraries/qt-5/qtModule.nix
··· 31 31 ${args.preConfigure or ""} 32 32 33 33 fixQtBuiltinPaths . '*.pr?' 34 + '' + lib.optionalString (builtins.compareVersions "5.15.0" version <= 0) 35 + # Note: We use ${version%%-*} to remove any tag from the end of the version 36 + # string. Version tags are added by Nixpkgs maintainers and not reflected in 37 + # the source version. 38 + '' 39 + if [[ -z "$dontCheckQtModuleVersion" ]] \ 40 + && grep -q '^MODULE_VERSION' .qmake.conf 2>/dev/null \ 41 + && ! grep -q -F "''${version%%-*}" .qmake.conf 2>/dev/null 42 + then 43 + echo >&2 "error: could not find version ''${version%%-*} in .qmake.conf" 44 + echo >&2 "hint: check .qmake.conf and update the package version in Nixpkgs" 45 + exit 1 46 + fi 47 + 48 + if [[ -z "$dontSyncQt" && -f sync.profile ]]; then 49 + syncqt.pl -version "''${version%%-*}" 50 + fi 34 51 ''; 35 52 36 53 dontWrapQtApps = args.dontWrapQtApps or true;
+24 -5
pkgs/development/libraries/snappy/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake 2 + , fetchpatch 2 3 , static ? stdenv.hostPlatform.isStatic 3 4 }: 4 5 5 6 stdenv.mkDerivation rec { 6 7 pname = "snappy"; 7 - version = "1.1.8"; 8 + version = "1.1.9"; 8 9 9 10 src = fetchFromGitHub { 10 11 owner = "google"; 11 12 repo = "snappy"; 12 13 rev = version; 13 - sha256 = "1j0kslq2dvxgkcxl1gakhvsa731yrcvcaipcp5k8k7ayicvkv9jv"; 14 + sha256 = "sha256-JXWl63KVP+CDNWIXYtz+EKqWLJbPKl3ifhr8dKAp/w8="; 14 15 }; 15 16 16 - patches = [ ./disable-benchmark.patch ]; 17 + patches = [ 18 + (fetchpatch { 19 + name = "clang-7-compat.patch"; 20 + url = "https://github.com/google/snappy/pull/142/commits/658cb2fcf67b626fff2122a3dbf7a3560c58f7ee.patch"; 21 + sha256 = "1kg3lxjwmhc7gjx36nylilnf444ddbnr3px1wpvyc6l1nh6zh4al"; 22 + }) 23 + ]; 17 24 18 25 outputs = [ "out" "dev" ]; 19 26 ··· 22 29 cmakeFlags = [ 23 30 "-DBUILD_SHARED_LIBS=${if static then "OFF" else "ON"}" 24 31 "-DCMAKE_SKIP_BUILD_RPATH=OFF" 32 + "-DSNAPPY_BUILD_TESTS=OFF" 33 + "-DSNAPPY_BUILD_BENCHMARKS=OFF" 25 34 ]; 26 35 27 36 postInstall = '' 28 37 substituteInPlace "$out"/lib/cmake/Snappy/SnappyTargets.cmake \ 29 38 --replace 'INTERFACE_INCLUDE_DIRECTORIES "''${_IMPORT_PREFIX}/include"' 'INTERFACE_INCLUDE_DIRECTORIES "'$dev'"' 39 + 40 + mkdir -p $dev/lib/pkgconfig 41 + cat <<EOF > $dev/lib/pkgconfig/snappy.pc 42 + Name: snappy 43 + Description: Fast compressor/decompressor library. 44 + Version: ${version} 45 + Libs: -L$out/lib -lsnappy 46 + Cflags: -I$dev/include 47 + EOF 30 48 ''; 31 49 32 - checkTarget = "test"; 50 + #checkTarget = "test"; 33 51 34 - doCheck = true; 52 + # requires gbenchmark and gtest but it also installs them out $dev 53 + doCheck = false; 35 54 36 55 meta = with lib; { 37 56 homepage = "https://google.github.io/snappy/";
-5
pkgs/development/libraries/snappy/disable-benchmark.patch
··· 1 - --- a/snappy-test.cc 2 - +++ b/snappy-test.cc 3 - @@ -46 +46 @@ 4 - -DEFINE_bool(run_microbenchmarks, true, 5 - +DEFINE_bool(run_microbenchmarks, false,
+2 -2
pkgs/development/libraries/srtp/default.nix
··· 10 10 11 11 stdenv.mkDerivation rec { 12 12 pname = "libsrtp"; 13 - version = "2.4.0"; 13 + version = "2.4.2"; 14 14 15 15 src = fetchFromGitHub { 16 16 owner = "cisco"; 17 17 repo = "libsrtp"; 18 18 rev = "v${version}"; 19 - sha256 = "0syl2ywddgqz29h43d6rc7waf3hp2yc14yhnrvdsja2bg8wrv6sb"; 19 + sha256 = "sha256-6FAkfxC7Tg7uIAmTmRt5Sn8/YofILfpe7Y4pSaq8XL8="; 20 20 }; 21 21 22 22 outputs = [ "out" "dev" ];
+9
pkgs/development/libraries/xalanc/default.nix
··· 22 22 23 23 buildInputs = [ xercesc getopt ]; 24 24 25 + # Parallel build fails as: 26 + # c++ ... -c ... ExecutionContext.cpp 27 + # ProblemListenerBase.hpp:28:10: fatal error: LocalMsgIndex.hpp: No such file or directory 28 + # The build failure happens due to missing intra-project dependencies 29 + # against generated headers. Future 1.12 version dropped 30 + # autotools-based build system. Let's disable parallel builds until 31 + # next release. 32 + enableParallelBuilding = false; 33 + 25 34 meta = { 26 35 homepage = "http://xalan.apache.org/"; 27 36 description = "A XSLT processor for transforming XML documents";
+2 -2
pkgs/development/python-modules/Nikola/default.nix
··· 30 30 , pytestCheckHook 31 31 , pythonOlder 32 32 , requests 33 - , ruamel_yaml 33 + , ruamel-yaml 34 34 , stdenv 35 35 , toml 36 36 , typogrify ··· 75 75 pyphen 76 76 PyRSS2Gen 77 77 requests 78 - ruamel_yaml 78 + ruamel-yaml 79 79 toml 80 80 typogrify 81 81 unidecode
+8 -2
pkgs/development/python-modules/argon2_cffi/default.nix
··· 8 8 , fetchPypi 9 9 , isPy3k 10 10 , lib 11 + , stdenv 11 12 }: 12 13 13 14 buildPythonPackage rec { 14 15 pname = "argon2_cffi"; 15 - version = "20.1.0"; 16 + version = "21.1.0"; 16 17 17 18 src = fetchPypi { 18 19 pname = "argon2-cffi"; 19 20 inherit version; 20 - sha256 = "0zgr4mnnm0p4i99023safb0qb8cgvl202nly1rvylk2b7qnrn0nq"; 21 + sha256 = "sha256-9xC2EQPRofaSyj7L0Tc+KKpeVFrGJboGf/L+yhsruHA="; 21 22 }; 22 23 23 24 propagatedBuildInputs = [ cffi six ] ++ lib.optional (!isPy3k) enum34; 25 + 26 + propagatedNativeBuildInputs = [ cffi ]; 27 + 28 + ARGON2_CFFI_USE_SSE2 = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) "0"; 29 + 24 30 checkInputs = [ hypothesis pytest wheel ]; 25 31 checkPhase = '' 26 32 pytest tests
+12 -7
pkgs/development/python-modules/asgiref/default.nix
··· 1 - { stdenv 1 + { lib 2 + , stdenv 2 3 , async-timeout 3 4 , buildPythonPackage 4 5 , fetchFromGitHub 5 6 , pytest-asyncio 6 7 , pytestCheckHook 7 8 , pythonOlder 8 - , lib 9 9 }: 10 10 11 11 buildPythonPackage rec { 12 - version = "3.3.4"; 12 + version = "3.4.1"; 13 13 pname = "asgiref"; 14 14 15 - disabled = pythonOlder "3.5"; 15 + disabled = pythonOlder "3.6"; 16 16 17 17 src = fetchFromGitHub { 18 18 owner = "django"; 19 19 repo = pname; 20 20 rev = version; 21 - sha256 = "1rr76252l6p12yxc0q4k9wigg1jz8nsqga9c0nixy9q77zhvh9n2"; 21 + sha256 = "sha256-aXD46qH5sTTmp0rlzQGLAN+MfIz1u6obCwtfqoIYgBA="; 22 22 }; 23 23 24 - propagatedBuildInputs = [ async-timeout ]; 24 + propagatedBuildInputs = [ 25 + async-timeout 26 + ]; 25 27 26 28 checkInputs = [ 27 29 pytestCheckHook ··· 32 34 "test_multiprocessing" 33 35 ]; 34 36 37 + pythonImportsCheck = [ "asgiref" ]; 38 + 35 39 meta = with lib; { 36 40 description = "Reference ASGI adapters and channel layers"; 41 + homepage = "https://github.com/django/asgiref"; 37 42 license = licenses.bsd3; 38 - homepage = "https://github.com/django/asgiref"; 43 + maintainers = with maintainers; [ ]; 39 44 }; 40 45 }
+2
pkgs/development/python-modules/bcrypt/default.nix
··· 15 15 16 16 propagatedBuildInputs = [ six ] ++ lib.optional (!isPyPy) cffi; 17 17 18 + propagatedNativeBuildInputs = lib.optional (!isPyPy) cffi; 19 + 18 20 meta = with lib; { 19 21 maintainers = with maintainers; [ domenkozar ]; 20 22 description = "Modern password hashing for your software and your servers";
+4
pkgs/development/python-modules/brotlicffi/default.nix
··· 22 22 brotli 23 23 ]; 24 24 25 + propagatedNativeBuildInputs = [ 26 + cffi 27 + ]; 28 + 25 29 propagatedBuildInputs = [ 26 30 cffi 27 31 ];
+2
pkgs/development/python-modules/brotlipy/default.nix
··· 19 19 20 20 propagatedBuildInputs = [ cffi enum34 construct ]; 21 21 22 + propagatedNativeBuildInputs = [ cffi ]; 23 + 22 24 checkInputs = [ pytest hypothesis ]; 23 25 24 26 checkPhase = ''
-1
pkgs/development/python-modules/cairocffi/default.nix
··· 8 8 , makeFontsConf 9 9 , freefont_ttf 10 10 , pytest 11 - , pytest-runner 12 11 , glibcLocales 13 12 , cairo 14 13 , cffi
+13 -1
pkgs/development/python-modules/cairocffi/generic.nix
··· 23 23 fontDirectories = [ freefont_ttf ]; 24 24 }; 25 25 26 - checkInputs = [ numpy pytest pytest-runner glibcLocales ]; 27 26 propagatedBuildInputs = [ cairo cffi ] ++ lib.optional withXcffib xcffib; 27 + propagatedNativeBuildInputs = [ cffi ]; 28 + 29 + # pytestCheckHook does not work 30 + checkInputs = [ numpy pytest glibcLocales ]; 31 + 32 + postPatch = '' 33 + substituteInPlace setup.cfg \ 34 + --replace "pytest-runner" "" \ 35 + --replace "pytest-cov" "" \ 36 + --replace "pytest-flake8" "" \ 37 + --replace "pytest-isort" "" \ 38 + --replace "--flake8 --isort" "" 39 + ''; 28 40 29 41 checkPhase = '' 30 42 py.test $out/${python.sitePackages}
+13 -6
pkgs/development/python-modules/cairosvg/default.nix
··· 8 8 , pillow 9 9 , tinycss2 10 10 , pytestCheckHook 11 - , pytest-runner 12 - , pytest-flake8 13 - , pytest-isort 14 11 }: 15 12 16 13 buildPythonPackage rec { ··· 23 20 sha256 = "sha256-sLmSnPXboAUXjXRqgDb88AJVUPSYylTbYYczIjhHg7w="; 24 21 }; 25 22 26 - nativeBuildInputs = [ pytest-runner ]; 23 + propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ]; 24 + 25 + propagatedNativeBuildInputs = [ cairocffi ]; 27 26 28 - propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ]; 27 + checkInputs = [ pytestCheckHook ]; 29 28 30 - checkInputs = [ pytestCheckHook pytest-flake8 pytest-isort ]; 29 + postPatch = '' 30 + substituteInPlace setup.cfg \ 31 + --replace "pytest-runner" "" \ 32 + --replace "pytest-flake8" "" \ 33 + --replace "pytest-isort" "" \ 34 + --replace "pytest-cov" "" \ 35 + --replace "--flake8" "" \ 36 + --replace "--isort" "" 37 + ''; 31 38 32 39 pytestFlagsArray = [ 33 40 "cairosvg/test_api.py"
+3 -3
pkgs/development/python-modules/click/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "click"; 12 - version = "8.0.2"; 12 + version = "8.0.3"; 13 13 14 14 src = fetchPypi { 15 15 inherit pname version; 16 - sha256 = "7027bc7bbafaab8b2c2816861d8eb372429ee3c02e193fc2f93d6c4ab9de49c5"; 16 + sha256 = "sha256-QQ6TKwUPXu13PEzalN51lxyJzbMVWnKggxE5p55ey1s="; 17 17 }; 18 18 19 19 postPatch = '' 20 20 substituteInPlace src/click/_unicodefun.py \ 21 - --replace "'locale'" "'${locale}/bin/locale'" 21 + --replace '"locale"' "'${locale}/bin/locale'" 22 22 ''; 23 23 24 24 propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
+2
pkgs/development/python-modules/cmarkgfm/default.nix
··· 14 14 sha256 = "ec2bf8d5799c4b5bbfbae30a4a1dfcb06512f2e17e9ee60ba7e1d390318582fc"; 15 15 }; 16 16 17 + propagatedNativeBuildInputs = [ cffi ]; 18 + 17 19 propagatedBuildInputs = [ cffi ]; 18 20 19 21 checkInputs = [ pytestCheckHook ];
+2 -2
pkgs/development/python-modules/conda/default.nix
··· 3 3 , fetchPypi 4 4 , pycosat 5 5 , requests 6 - , ruamel_yaml 6 + , ruamel-yaml 7 7 , isPy3k 8 8 , enum34 9 9 }: ··· 20 20 sha256 = "a91ef821343dea3ba9670f3d10b36c1ace4f4c36d70c175d8fc8886e94285953"; 21 21 }; 22 22 23 - propagatedBuildInputs = [ pycosat requests ruamel_yaml ] ++ lib.optional (!isPy3k) enum34; 23 + propagatedBuildInputs = [ pycosat requests ruamel-yaml ] ++ lib.optional (!isPy3k) enum34; 24 24 25 25 # No tests 26 26 doCheck = false;
+3 -2
pkgs/development/python-modules/construct/2.10.54.nix
··· 1 - { lib, stdenv, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pytest-benchmark, enum34, numpy, arrow, ruamel_yaml 1 + { lib, stdenv, buildPythonPackage, fetchFromGitHub 2 + , pytestCheckHook, pytest-benchmark, enum34, numpy, arrow, ruamel-yaml 2 3 }: 3 4 4 5 buildPythonPackage rec { ··· 13 14 sha256 = "1mqspsn6bf3ibvih1zna2glkg8iw7vy5zg9gzg0d1m8zcndk2c48"; 14 15 }; 15 16 16 - checkInputs = [ pytestCheckHook pytest-benchmark enum34 numpy arrow ruamel_yaml ]; 17 + checkInputs = [ pytestCheckHook pytest-benchmark enum34 numpy arrow ruamel-yaml ]; 17 18 18 19 disabledTests = lib.optionals stdenv.isDarwin [ "test_multiprocessing" ]; 19 20
+2 -2
pkgs/development/python-modules/construct/default.nix
··· 1 1 { lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder 2 - , pytestCheckHook, pytest-benchmark, numpy, arrow, ruamel_yaml 2 + , pytestCheckHook, pytest-benchmark, numpy, arrow, ruamel-yaml 3 3 , lz4, cloudpickle 4 4 }: 5 5 ··· 22 22 lz4 23 23 ]; 24 24 25 - checkInputs = [ pytestCheckHook pytest-benchmark numpy arrow ruamel_yaml cloudpickle ]; 25 + checkInputs = [ pytestCheckHook pytest-benchmark numpy arrow ruamel-yaml cloudpickle ]; 26 26 27 27 disabledTests = lib.optionals stdenv.isDarwin [ "test_multiprocessing" ]; 28 28
+2 -2
pkgs/development/python-modules/dateparser/0.x.nix
··· 11 11 , convertdate 12 12 , umalqurra 13 13 , jdatetime 14 - , ruamel_yaml 14 + , ruamel-yaml 15 15 }: 16 16 17 17 buildPythonPackage rec { ··· 41 41 # install_requires 42 42 python-dateutil pytz regex tzlocal 43 43 # extra_requires 44 - convertdate umalqurra jdatetime ruamel_yaml 44 + convertdate umalqurra jdatetime ruamel-yaml 45 45 ]; 46 46 47 47 pythonImportsCheck = [ "dateparser" ];
+2 -2
pkgs/development/python-modules/dateparser/default.nix
··· 13 13 , parameterized 14 14 , pytestCheckHook 15 15 , GitPython 16 - , ruamel_yaml 16 + , ruamel-yaml 17 17 }: 18 18 19 19 buildPythonPackage rec { ··· 40 40 parameterized 41 41 pytestCheckHook 42 42 GitPython 43 - ruamel_yaml 43 + ruamel-yaml 44 44 ]; 45 45 46 46 preCheck = ''
+2 -2
pkgs/development/python-modules/drf-yasg/default.nix
··· 2 2 , buildPythonPackage 3 3 , fetchPypi 4 4 , inflection 5 - , ruamel_yaml 5 + , ruamel-yaml 6 6 , setuptools-scm 7 7 , six 8 8 , coreapi ··· 33 33 propagatedBuildInputs = [ 34 34 six 35 35 inflection 36 - ruamel_yaml 36 + ruamel-yaml 37 37 coreapi 38 38 djangorestframework 39 39 ];
+2
pkgs/development/python-modules/editdistance-s/default.nix
··· 16 16 sha256 = "0w2qd5b6a3c3ahd0xy9ykq4wzqk0byqwdqrr26dyn8j2425j46lg"; 17 17 }; 18 18 19 + propagatedNativeBuildInputs = [ cffi ]; 20 + 19 21 propagatedBuildInputs = [ cffi ]; 20 22 21 23 checkInputs = [ pytestCheckHook ];
+1
pkgs/development/python-modules/fastpbkdf2/default.nix
··· 16 16 buildInputs = [ openssl ]; 17 17 checkInputs = [ pytest ]; 18 18 propagatedBuildInputs = [ cffi six ]; 19 + propagatedNativeBuildInputs = [ cffi ]; 19 20 20 21 meta = with lib; { 21 22 homepage = "https://github.com/Ayrx/python-fastpbkdf2";
+2 -11
pkgs/development/python-modules/httplib2/default.nix
··· 2 2 , stdenv 3 3 , buildPythonPackage 4 4 , fetchFromGitHub 5 - , fetchpatch 6 5 , isPy27 7 6 , mock 8 7 , pyparsing ··· 16 15 17 16 buildPythonPackage rec { 18 17 pname = "httplib2"; 19 - version = "0.19.1"; 18 + version = "0.20.1"; 20 19 21 20 src = fetchFromGitHub { 22 21 owner = pname; 23 22 repo = pname; 24 23 rev = "v${version}"; 25 - sha256 = "sha256-e0Mq9AVJEWQ9GEtYFXk2fMIs7GtAUsyJN6XheqAnD3I="; 24 + sha256 = "sha256-1zqs3YRVtm5DwewETLtRg5XhMJPJsMi0QLfeGirOURs="; 26 25 }; 27 - 28 - patches = [ 29 - # fix test_inject_space 30 - (fetchpatch { 31 - url = "https://github.com/httplib2/httplib2/commit/08d6993b69256fbc6c0b1c615c24910803c4d610.patch"; 32 - sha256 = "0kbd1skn58m20kfkh4qzd66g9bvj31xlkbhsg435dkk4qz6l3yn3"; 33 - }) 34 - ]; 35 26 36 27 postPatch = '' 37 28 sed -i "/--cov/d" setup.cfg
+2 -2
pkgs/development/python-modules/jc/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 - , ruamel_yaml 4 + , ruamel-yaml 5 5 , xmltodict 6 6 , pygments 7 7 , pytestCheckHook ··· 20 20 sha256 = "sha256-ISggj6oOF0B7TKIQAlZtauRrDAWP88OOFezLJK6edjI="; 21 21 }; 22 22 23 - propagatedBuildInputs = [ ruamel_yaml xmltodict pygments ]; 23 + propagatedBuildInputs = [ ruamel-yaml xmltodict pygments ]; 24 24 25 25 checkInputs = [ pytestCheckHook ]; 26 26
+2 -2
pkgs/development/python-modules/jupyter-repo2docker/default.nix
··· 9 9 , pkgs-docker 10 10 , python-json-logger 11 11 , pythonOlder 12 - , ruamel_yaml 12 + , ruamel-yaml 13 13 , semver 14 14 , toml 15 15 , traitlets ··· 37 37 jinja2 38 38 pkgs-docker 39 39 python-json-logger 40 - ruamel_yaml 40 + ruamel-yaml 41 41 semver 42 42 toml 43 43 traitlets
+2 -2
pkgs/development/python-modules/jupyter-telemetry/default.nix
··· 4 4 , pythonOlder 5 5 , python-json-logger 6 6 , jsonschema 7 - , ruamel_yaml 7 + , ruamel-yaml 8 8 , traitlets 9 9 }: 10 10 ··· 19 19 }; 20 20 21 21 propagatedBuildInputs = [ 22 - python-json-logger jsonschema ruamel_yaml traitlets 22 + python-json-logger jsonschema ruamel-yaml traitlets 23 23 ]; 24 24 25 25 meta = with lib; {
+4
pkgs/development/python-modules/liquidctl/default.nix
··· 35 35 colorlog 36 36 ]; 37 37 38 + propagatedNativeBuildInputs = [ 39 + smbus-cffi 40 + ]; 41 + 38 42 outputs = [ "out" "man" ]; 39 43 40 44 postInstall = ''
+2 -2
pkgs/development/python-modules/mautrix/default.nix
··· 1 1 { lib, buildPythonPackage, fetchPypi, aiohttp, pythonOlder 2 - , sqlalchemy, ruamel_yaml, CommonMark, lxml 2 + , sqlalchemy, ruamel-yaml, CommonMark, lxml 3 3 }: 4 4 5 5 buildPythonPackage rec { ··· 16 16 17 17 # defined in optional-requirements.txt 18 18 sqlalchemy 19 - ruamel_yaml 19 + ruamel-yaml 20 20 CommonMark 21 21 lxml 22 22 ];
+2 -2
pkgs/development/python-modules/maya/default.nix
··· 1 1 { lib, fetchPypi, fetchpatch, buildPythonPackage 2 - , dateparser, humanize, pendulum, ruamel_yaml, tzlocal }: 2 + , dateparser, humanize, pendulum, ruamel-yaml, tzlocal }: 3 3 4 4 buildPythonPackage rec { 5 5 pname = "maya"; ··· 19 19 }) 20 20 ]; 21 21 22 - propagatedBuildInputs = [ dateparser humanize pendulum ruamel_yaml tzlocal ]; 22 + propagatedBuildInputs = [ dateparser humanize pendulum ruamel-yaml tzlocal ]; 23 23 24 24 # No tests 25 25 doCheck = false;
+2 -3
pkgs/development/python-modules/miniaudio/default.nix
··· 19 19 sha256 = "1yx4n4zax103fmjzdiqzw37zibsh68b2p2l5qvgcnx2zrrjd31yl"; 20 20 }; 21 21 22 - propagatedBuildInputs = [ 23 - cffi 24 - ]; 22 + propagatedNativeBuildInputs = [ cffi ]; 23 + propagatedBuildInputs = [ cffi ]; 25 24 26 25 checkInputs = [ 27 26 pytestCheckHook
+2
pkgs/development/python-modules/misaka/default.nix
··· 8 8 sha256 = "1mzc29wwyhyardclj1vg2xsfdibg2lzb7f1azjcxi580ama55wv2"; 9 9 }; 10 10 11 + propagatedNativeBuildInputs = [ cffi ]; 12 + 11 13 propagatedBuildInputs = [ cffi ]; 12 14 13 15 # The tests require write access to $out
+2 -2
pkgs/development/python-modules/mitmproxy/default.nix
··· 24 24 , pyopenssl 25 25 , pyparsing 26 26 , pyperclip 27 - , ruamel_yaml 27 + , ruamel-yaml 28 28 , setuptools 29 29 , sortedcontainers 30 30 , tornado ··· 78 78 pyopenssl 79 79 pyparsing 80 80 pyperclip 81 - ruamel_yaml 81 + ruamel-yaml 82 82 sortedcontainers 83 83 tornado 84 84 urwid
+2 -2
pkgs/development/python-modules/monty/default.nix
··· 8 8 , pandas 9 9 , pydantic 10 10 , pymongo 11 - , ruamel_yaml 11 + , ruamel-yaml 12 12 , tqdm 13 13 }: 14 14 ··· 30 30 ''; 31 31 32 32 propagatedBuildInputs = [ 33 - ruamel_yaml 33 + ruamel-yaml 34 34 tqdm 35 35 msgpack 36 36 ];
+5 -4
pkgs/development/python-modules/multidict/default.nix
··· 2 2 , fetchPypi 3 3 , buildPythonPackage 4 4 , pytestCheckHook 5 - , isPy3k 5 + , pythonOlder 6 6 }: 7 7 8 8 buildPythonPackage rec { 9 9 pname = "multidict"; 10 10 version = "5.2.0"; 11 11 12 - disabled = !isPy3k; 12 + disabled = pythonOlder "3.6"; 13 13 14 14 src = fetchPypi { 15 15 inherit pname version; ··· 17 17 }; 18 18 19 19 postPatch = '' 20 - substituteInPlace setup.cfg \ 21 - --replace "--cov=multidict --cov-report term-missing:skip-covered --cov-report xml" "" 20 + sed -i '/^addopts/d' setup.cfg 22 21 ''; 23 22 24 23 checkInputs = [ pytestCheckHook ]; 24 + 25 + pythonImportsCheck = [ "multidict" ]; 25 26 26 27 meta = with lib; { 27 28 description = "Multidict implementation";
+2 -2
pkgs/development/python-modules/ntc-templates/default.nix
··· 5 5 , poetry-core 6 6 , textfsm 7 7 , pytestCheckHook 8 - , ruamel_yaml 8 + , ruamel-yaml 9 9 , yamllint 10 10 }: 11 11 ··· 32 32 33 33 checkInputs = [ 34 34 pytestCheckHook 35 - ruamel_yaml 35 + ruamel-yaml 36 36 yamllint 37 37 ]; 38 38
+1
pkgs/development/python-modules/passlib/default.nix
··· 16 16 17 17 checkInputs = [ nose ]; 18 18 propagatedBuildInputs = [ bcrypt argon2_cffi ]; 19 + propagatedNativeBuildInputs = [ argon2_cffi ]; 19 20 20 21 meta = { 21 22 description = "A password hashing library for Python";
+2 -2
pkgs/development/python-modules/prance/default.nix
··· 3 3 , fetchFromGitHub 4 4 , chardet 5 5 , requests 6 - , ruamel_yaml 6 + , ruamel-yaml 7 7 , six 8 8 , semver 9 9 , pytestCheckHook ··· 25 25 propagatedBuildInputs = [ 26 26 chardet 27 27 requests 28 - ruamel_yaml 28 + ruamel-yaml 29 29 six 30 30 semver 31 31 ];
+2 -2
pkgs/development/python-modules/pre-commit-hooks/default.nix
··· 4 4 , git 5 5 , pythonOlder 6 6 , pytestCheckHook 7 - , ruamel_yaml 7 + , ruamel-yaml 8 8 , toml 9 9 }: 10 10 ··· 21 21 }; 22 22 23 23 propagatedBuildInputs = [ 24 - ruamel_yaml 24 + ruamel-yaml 25 25 toml 26 26 ]; 27 27
+2
pkgs/development/python-modules/prox-tv/default.nix
··· 28 28 cffi 29 29 ]; 30 30 31 + propagatedNativeBuildInputs = [ cffi ]; 32 + 31 33 buildInputs = [ blas lapack ]; 32 34 33 35 enableParallelBuilding = true;
+4
pkgs/development/python-modules/pycares/default.nix
··· 24 24 idna 25 25 ]; 26 26 27 + propagatedNativeBuildInputs = [ 28 + cffi 29 + ]; 30 + 27 31 # Requires network access 28 32 doCheck = false; 29 33
+2
pkgs/development/python-modules/pycmarkgfm/default.nix
··· 10 10 sha256 = "694cb242f4961437c30b5b015dfbce9d1a1fa48305c2e39f902ce7c65b4cbe0e"; 11 11 }; 12 12 13 + propagatedNativeBuildInputs = [ cffi ]; 14 + 13 15 propagatedBuildInputs = [ cffi ]; 14 16 15 17 # I would gladly use pytestCheckHook, but pycmarkgfm relies on a native
+2
pkgs/development/python-modules/pygit2/default.nix
··· 21 21 cached-property 22 22 ] ++ lib.optional (!isPyPy) cffi; 23 23 24 + propagatedNativeBuildInputs = lib.optional (!isPyPy) cffi; 25 + 24 26 checkInputs = [ pytestCheckHook ]; 25 27 26 28 preCheck = ''
+2
pkgs/development/python-modules/pykeepass/default.nix
··· 24 24 argon2_cffi python-dateutil future 25 25 ]; 26 26 27 + propagatedNativeBuildInputs = [ argon2_cffi ]; 28 + 27 29 checkPhase = '' 28 30 ${python.interpreter} -m unittest tests.tests 29 31 '';
+2 -2
pkgs/development/python-modules/pymatgen/default.nix
··· 10 10 , plotly 11 11 , pydispatcher 12 12 , requests 13 - , ruamel_yaml 13 + , ruamel-yaml 14 14 , scipy 15 15 , six 16 16 , spglib ··· 41 41 plotly 42 42 pydispatcher 43 43 requests 44 - ruamel_yaml 44 + ruamel-yaml 45 45 scipy 46 46 six 47 47 spglib
+2
pkgs/development/python-modules/pynacl/default.nix
··· 6 6 , libsodium 7 7 , cffi 8 8 , hypothesis 9 + , stdenv 9 10 , six 10 11 }: 11 12 ··· 29 30 ]; 30 31 31 32 propagatedBuildInputs = [ 33 + cffi 32 34 six 33 35 ]; 34 36
+13
pkgs/development/python-modules/pytest/4.nix
··· 43 43 } 44 44 45 45 preDistPhases+=" pytestcachePhase" 46 + 47 + # pytest generates it's own bytecode files to improve assertion messages. 48 + # These files similar to cpython's bytecode files but are never laoded 49 + # by python interpreter directly. We remove them for a few reasons: 50 + # - files are non-deterministic: https://github.com/NixOS/nixpkgs/issues/139292 51 + # (file headers are generatedt by pytest directly and contain timestamps) 52 + # - files are not needed after tests are finished 53 + pytestRemoveBytecodePhase () { 54 + # suffix is defined at: 55 + # https://github.com/pytest-dev/pytest/blob/4.6.11/src/_pytest/assertion/rewrite.py#L32-L47 56 + find $out -name "*-PYTEST.py[co]" -delete 57 + } 58 + preDistPhases+=" pytestRemoveBytecodePhase" 46 59 ''; 47 60 48 61 meta = with lib; {
+13
pkgs/development/python-modules/pytest/5.nix
··· 67 67 find $out -name .pytest_cache -type d -exec rm -rf {} + 68 68 } 69 69 preDistPhases+=" pytestcachePhase" 70 + 71 + # pytest generates it's own bytecode files to improve assertion messages. 72 + # These files similar to cpython's bytecode files but are never laoded 73 + # by python interpreter directly. We remove them for a few reasons: 74 + # - files are non-deterministic: https://github.com/NixOS/nixpkgs/issues/139292 75 + # (file headers are generatedt by pytest directly and contain timestamps) 76 + # - files are not needed after tests are finished 77 + pytestRemoveBytecodePhase () { 78 + # suffix is defined at: 79 + # https://github.com/pytest-dev/pytest/blob/5.4.3/src/_pytest/assertion/rewrite.py#L42-L45 80 + find $out -name "*-pytest-*.py[co]" -delete 81 + } 82 + preDistPhases+=" pytestRemoveBytecodePhase" 70 83 ''; 71 84 72 85 pythonImportsCheck = [
+13
pkgs/development/python-modules/pytest/default.nix
··· 82 82 find $out -name .pytest_cache -type d -exec rm -rf {} + 83 83 } 84 84 preDistPhases+=" pytestcachePhase" 85 + 86 + # pytest generates it's own bytecode files to improve assertion messages. 87 + # These files similar to cpython's bytecode files but are never laoded 88 + # by python interpreter directly. We remove them for a few reasons: 89 + # - files are non-deterministic: https://github.com/NixOS/nixpkgs/issues/139292 90 + # (file headers are generatedt by pytest directly and contain timestamps) 91 + # - files are not needed after tests are finished 92 + pytestRemoveBytecodePhase () { 93 + # suffix is defined at: 94 + # https://github.com/pytest-dev/pytest/blob/6.2.5/src/_pytest/assertion/rewrite.py#L51-L53 95 + find $out -name "*-pytest-*.py[co]" -delete 96 + } 97 + preDistPhases+=" pytestRemoveBytecodePhase" 85 98 ''; 86 99 87 100 pythonImportsCheck = [
+2 -2
pkgs/development/python-modules/python-box/default.nix
··· 5 5 , pytestCheckHook 6 6 , pythonOlder 7 7 , pyyaml 8 - , ruamel_yaml 8 + , ruamel-yaml 9 9 , toml 10 10 }: 11 11 ··· 24 24 propagatedBuildInputs = [ 25 25 msgpack 26 26 pyyaml 27 - ruamel_yaml 27 + ruamel-yaml 28 28 toml 29 29 ]; 30 30
+8
pkgs/development/python-modules/python-magic/default.nix
··· 3 3 , python 4 4 , buildPythonPackage 5 5 , fetchFromGitHub 6 + , fetchpatch 6 7 , substituteAll 7 8 , file 8 9 , glibcLocales ··· 20 21 }; 21 22 22 23 patches = [ 24 + # pull upstream patch to support file-5.41 25 + (fetchpatch { 26 + name = "file-5.41-compat.patch"; 27 + url = "https://github.com/ahupp/python-magic/commit/0ae7e7ceac0e80e03adc75c858bb378c0427331a.patch"; 28 + sha256 = "0vclaamb56nza1mcy88wjbkh81hnish2gzvl8visa2cknhgdmk50"; 29 + }) 30 + 23 31 (substituteAll { 24 32 src = ./libmagic-path.patch; 25 33 libmagic = "${file}/lib/libmagic${stdenv.hostPlatform.extensions.sharedLibrary}";
+4
pkgs/development/python-modules/python-olm/default.nix
··· 17 17 future 18 18 ] ++ lib.optionals (!isPy3k) [ typing ]; 19 19 20 + propagatedNativeBuildInputs = [ 21 + cffi 22 + ]; 23 + 20 24 # Some required libraries for testing are not packaged yet. 21 25 doCheck = false; 22 26 pythonImportsCheck = [ "olm" ];
+2 -2
pkgs/development/python-modules/pyuavcan/default.nix
··· 1 1 { lib, buildPythonPackage, fetchFromGitHub, pythonOlder, numpy, nunavut 2 - , pyserial , pytest, ruamel_yaml}: 2 + , pyserial , pytest, ruamel-yaml}: 3 3 4 4 buildPythonPackage rec { 5 5 pname = "pyuavcan"; ··· 18 18 nunavut 19 19 pyserial 20 20 pytest 21 - ruamel_yaml 21 + ruamel-yaml 22 22 ]; 23 23 24 24 # allow for writable directory for darwin
+8 -2
pkgs/development/python-modules/reflink/default.nix
··· 3 3 , fetchPypi 4 4 , lib 5 5 , pytestCheckHook 6 - , pytest-runner 7 6 }: 8 7 9 8 buildPythonPackage rec { ··· 15 14 sha256 = "sha256-ySU1gtskQTv9cDq/wbKkneePMbSQcjnyhumhkpoebjo="; 16 15 }; 17 16 18 - propagatedBuildInputs = [ cffi pytest-runner ]; 17 + propagatedBuildInputs = [ cffi ]; 18 + 19 + propagatedNativeBuildInputs = [ cffi ]; 19 20 20 21 checkInputs = [ pytestCheckHook ]; 22 + 23 + postPatch = '' 24 + substituteInPlace setup.py \ 25 + --replace "pytest-runner" "" 26 + ''; 21 27 22 28 # FIXME: These do not work, and I have been unable to figure out why. 23 29 doCheck = false;
+38
pkgs/development/python-modules/ruamel-yaml/0.16.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , ruamel-base 5 + , ruamel-ordereddict 6 + , ruamel-yaml-clib ? null 7 + , isPy27 8 + , isPyPy 9 + }: 10 + 11 + buildPythonPackage rec { 12 + pname = "ruamel-yaml"; 13 + version = "0.16.13"; 14 + 15 + src = fetchPypi { 16 + pname = "ruamel.yaml"; 17 + inherit version; 18 + sha256 = "0hm9yg785f46bkrgqknd6fdvmkby9dpzjnm0b63qf0i748acaj5v"; 19 + }; 20 + 21 + # Tests use relative paths 22 + doCheck = false; 23 + 24 + propagatedBuildInputs = [ ruamel-base ] 25 + ++ lib.optional isPy27 ruamel-ordereddict 26 + ++ lib.optional (!isPyPy) ruamel-yaml-clib; 27 + 28 + # causes namespace clash on py27 29 + dontUsePythonImportsCheck = isPy27; 30 + pythonImportsCheck = [ "ruamel.yaml" ]; 31 + 32 + meta = with lib; { 33 + description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order"; 34 + homepage = "https://sourceforge.net/projects/ruamel-yaml/"; 35 + license = licenses.mit; 36 + maintainers = with maintainers; [ SuperSandro2000 ]; 37 + }; 38 + }
+33
pkgs/development/python-modules/ruamel-yaml/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , ruamel-base 5 + , ruamel-yaml-clib 6 + , isPyPy 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "ruamel-yaml"; 11 + version = "0.17.16"; 12 + 13 + src = fetchPypi { 14 + pname = "ruamel.yaml"; 15 + inherit version; 16 + sha256 = "1a771fc92d3823682b7f0893ad56cb5a5c87c48e62b5399d6f42c8759a583b33"; 17 + }; 18 + 19 + # Tests use relative paths 20 + doCheck = false; 21 + 22 + propagatedBuildInputs = [ ruamel-base ] 23 + ++ lib.optional (!isPyPy) ruamel-yaml-clib; 24 + 25 + pythonImportsCheck = [ "ruamel.yaml" ]; 26 + 27 + meta = with lib; { 28 + description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order"; 29 + homepage = "https://sourceforge.net/projects/ruamel-yaml/"; 30 + license = licenses.mit; 31 + maintainers = with maintainers; [ SuperSandro2000 ]; 32 + }; 33 + }
+9 -3
pkgs/development/python-modules/ruamel_base/default.nix pkgs/development/python-modules/ruamel-base/default.nix
··· 4 4 }: 5 5 6 6 buildPythonPackage rec { 7 - pname = "ruamel.base"; 7 + pname = "ruamel-base"; 8 8 version = "1.0.0"; 9 9 10 10 src = fetchPypi { 11 - inherit pname version; 11 + pname = "ruamel.base"; 12 + inherit version; 12 13 sha256 = "1wswxrn4givsm917mfl39rafgadimf1sldpbjdjws00g1wx36hf0"; 13 14 }; 14 15 16 + # no tests 17 + doCheck = false; 18 + 19 + pythonImportsCheck = [ "ruamel.base" ]; 20 + 15 21 meta = with lib; { 16 22 description = "Common routines for ruamel packages"; 17 23 homepage = "https://sourceforge.net/projects/ruamel-base/"; 18 24 license = licenses.mit; 25 + maintainers = with maintainers; [ SuperSandro2000 ]; 19 26 }; 20 - 21 27 }
+4 -3
pkgs/development/python-modules/ruamel_ordereddict/default.nix pkgs/development/python-modules/ruamel-ordereddict/default.nix
··· 6 6 }: 7 7 8 8 buildPythonPackage rec { 9 - pname = "ruamel.ordereddict"; 9 + pname = "ruamel-ordereddict"; 10 10 version = "0.4.15"; 11 11 disabled = isPy3k || isPyPy; 12 12 13 13 src = fetchPypi { 14 - inherit pname version; 14 + pname = "ruamel.ordereddict"; 15 + inherit version; 15 16 sha256 = "d7d9cf8b11e7662deb460260cf062980cd84b87a1d0457132060ab9d44e0a5f4"; 16 17 }; 17 18 ··· 19 20 description = "A version of dict that keeps keys in insertion resp. sorted order"; 20 21 homepage = "https://sourceforge.net/projects/ruamel-ordereddict/"; 21 22 license = licenses.mit; 23 + maintainers = with maintainers; [ SuperSandro2000 ]; 22 24 }; 23 - 24 25 }
-40
pkgs/development/python-modules/ruamel_yaml/0.16.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchPypi 4 - , ruamel_base 5 - , ruamel_ordereddict ? null 6 - , ruamel_yaml_clib ? null 7 - , isPy3k 8 - , isPyPy 9 - }: 10 - 11 - buildPythonPackage rec { 12 - pname = "ruamel.yaml"; 13 - version = "0.16.13"; 14 - 15 - src = fetchPypi { 16 - inherit pname version; 17 - sha256 = "0hm9yg785f46bkrgqknd6fdvmkby9dpzjnm0b63qf0i748acaj5v"; 18 - }; 19 - 20 - # Tests use relative paths 21 - doCheck = false; 22 - 23 - propagatedBuildInputs = [ ruamel_base ] 24 - ++ lib.optional (!isPy3k) ruamel_ordereddict 25 - ++ lib.optional (!isPyPy) ruamel_yaml_clib; 26 - 27 - # causes namespace clash on py27 28 - dontUsePythonImportsCheck = !isPy3k; 29 - pythonImportsCheck = [ 30 - "ruamel.yaml" 31 - "ruamel.base" 32 - ]; 33 - 34 - meta = with lib; { 35 - description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order"; 36 - homepage = "https://sourceforge.net/projects/ruamel-yaml/"; 37 - license = licenses.mit; 38 - }; 39 - 40 - }
-40
pkgs/development/python-modules/ruamel_yaml/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchPypi 4 - , ruamel_base 5 - , ruamel_ordereddict ? null 6 - , ruamel_yaml_clib ? null 7 - , isPy3k 8 - , isPyPy 9 - }: 10 - 11 - buildPythonPackage rec { 12 - pname = "ruamel.yaml"; 13 - version = "0.17.16"; 14 - 15 - src = fetchPypi { 16 - inherit pname version; 17 - sha256 = "1a771fc92d3823682b7f0893ad56cb5a5c87c48e62b5399d6f42c8759a583b33"; 18 - }; 19 - 20 - # Tests use relative paths 21 - doCheck = false; 22 - 23 - propagatedBuildInputs = [ ruamel_base ] 24 - ++ lib.optional (!isPy3k) ruamel_ordereddict 25 - ++ lib.optional (!isPyPy) ruamel_yaml_clib; 26 - 27 - # causes namespace clash on py27 28 - dontUsePythonImportsCheck = !isPy3k; 29 - pythonImportsCheck = [ 30 - "ruamel.yaml" 31 - "ruamel.base" 32 - ]; 33 - 34 - meta = with lib; { 35 - description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order"; 36 - homepage = "https://sourceforge.net/projects/ruamel-yaml/"; 37 - license = licenses.mit; 38 - }; 39 - 40 - }
+8 -5
pkgs/development/python-modules/ruamel_yaml_clib/default.nix pkgs/development/python-modules/ruamel-yaml-clib/default.nix
··· 4 4 }: 5 5 6 6 buildPythonPackage rec { 7 - pname = "ruamel.yaml.clib"; 8 - version = "0.2.0"; 7 + pname = "ruamel-yaml-clib"; 8 + version = "0.2.4"; 9 9 10 10 src = fetchhg { 11 11 url = "http://hg.code.sf.net/p/ruamel-yaml-clib/code"; 12 12 rev = version; 13 - sha256 = "0kq6zi96qlm72lzj90fc2rfk6nm5kqhk6qxdl8wl9s3a42b0v6wl"; 13 + sha256 = "sha256-HQZY1opUvVQdXUHmsZmcYX2vfgjKsl6xATmVIXjnBlc="; 14 14 }; 15 15 16 - # outputs match wheel 16 + # no tests 17 17 doCheck = false; 18 18 19 + # circular depedency with ruamel-yaml 20 + # pythonImportsCheck = [ "_ruamel_yaml" ]; 21 + 19 22 meta = with lib; { 20 23 description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order"; 21 24 homepage = "https://sourceforge.net/projects/ruamel-yaml-clib/"; 22 25 license = licenses.mit; 26 + maintainers = with maintainers; [ SuperSandro2000 ]; 23 27 }; 24 - 25 28 }
+2 -2
pkgs/development/python-modules/schema-salad/default.nix
··· 7 7 , mistune 8 8 , rdflib 9 9 , rdflib-jsonld 10 - , ruamel_yaml 10 + , ruamel-yaml 11 11 , pytestCheckHook 12 12 , pythonOlder 13 13 }: ··· 30 30 mistune 31 31 rdflib 32 32 rdflib-jsonld 33 - ruamel_yaml 33 + ruamel-yaml 34 34 ]; 35 35 36 36 checkInputs = [
+2
pkgs/development/python-modules/smbus-cffi/default.nix
··· 24 24 }) 25 25 ]; 26 26 27 + propagatedNativeBuildInputs = [ cffi ]; 28 + 27 29 propagatedBuildInputs = [ cffi ]; 28 30 29 31 installCheckPhase = ''
+1
pkgs/development/python-modules/soundfile/default.nix
··· 21 21 22 22 checkInputs = [ pytest ]; 23 23 propagatedBuildInputs = [ numpy libsndfile cffi ]; 24 + propagatedNativeBuildInputs = [ cffi ]; 24 25 25 26 meta = { 26 27 description = "An audio library based on libsndfile, CFFI and NumPy";
+2 -11
pkgs/development/python-modules/sphinx/default.nix
··· 2 2 , buildPythonPackage 3 3 , pythonOlder 4 4 , fetchFromGitHub 5 - , fetchpatch 6 5 # propagatedBuildInputs 7 6 , Babel 8 7 , alabaster ··· 29 28 30 29 buildPythonPackage rec { 31 30 pname = "sphinx"; 32 - version = "4.0.2"; 31 + version = "4.2.0"; 33 32 disabled = pythonOlder "3.5"; 34 33 35 34 src = fetchFromGitHub { 36 35 owner = "sphinx-doc"; 37 36 repo = pname; 38 37 rev = "v${version}"; 39 - sha256 = "sha256-0QdgHFX4r40BDHjpi9R40lXqT4n5ZgrIny+w070LZPE="; 38 + sha256 = "1i38n5bxqiycjwmiv9dl72r3f5ks4zmif30znqg8zilclbx6g16x"; 40 39 }; 41 - 42 - patches = [ 43 - (fetchpatch { 44 - # Fix tests with pygments 2.10 45 - url = "https://github.com/sphinx-doc/sphinx/commit/bde6c8d2effc56dc8b9098abee796167f972c306.patch"; 46 - sha256 = "0d0ddhgrrh7z9ix0f3zrc2gjb4d73f6ffm98zl62fzv5l4fd00lr"; 47 - }) 48 - ]; 49 40 50 41 propagatedBuildInputs = [ 51 42 Babel
+2 -2
pkgs/development/python-modules/strictyaml/default.nix
··· 2 2 , lib 3 3 , fetchPypi 4 4 , isPy27 5 - , ruamel_yaml 5 + , ruamel-yaml 6 6 , python-dateutil 7 7 }: 8 8 ··· 21 21 --replace "ruamel.yaml==0.17.4" "ruamel.yaml" 22 22 ''; 23 23 24 - propagatedBuildInputs = [ ruamel_yaml python-dateutil ]; 24 + propagatedBuildInputs = [ ruamel-yaml python-dateutil ]; 25 25 26 26 # Library tested with external tool 27 27 # https://hitchdev.com/approach/contributing-to-hitch-libraries/
+18 -26
pkgs/development/python-modules/tinycss2/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , pythonOlder 4 - , fetchPypi 5 - , fetchpatch 4 + , fetchFromGitHub 6 5 , webencodings 7 - # Check inputs 8 - , pytest 9 - , pytest-runner 10 - , pytest-cov 11 - , pytest-flake8 12 - , pytest-isort 6 + , pytestCheckHook 13 7 }: 14 8 15 9 buildPythonPackage rec { 16 10 pname = "tinycss2"; 17 - version = "1.0.2"; 11 + version = "1.1.0"; 18 12 disabled = pythonOlder "3.5"; 13 + format = "flit"; 19 14 20 - src = fetchPypi { 21 - inherit pname version; 22 - sha256 = "1kw84y09lggji4krkc58jyhsfj31w8npwhznr7lf19d0zbix09v4"; 15 + src = fetchFromGitHub { 16 + owner = "kozea"; 17 + repo = "tinycss2"; 18 + rev = "v${version}"; 19 + # for tests 20 + fetchSubmodules = true; 21 + sha256 = "sha256-WA88EYolL76WqeA1UKR3Sfw11j8NuOGOxPezujYizH8="; 23 22 }; 24 - 25 - patches = [ 26 - ( 27 - fetchpatch { 28 - name = "tinycss2-fix-pytest-flake8-fail.patch"; 29 - url = "https://github.com/Kozea/tinycss2/commit/6556604fb98c2153412384d6f0f705db2da1aa60.patch"; 30 - sha256 = "1srvdzg1bak65fawd611rlskcgn5abmwmyjnk8qrrrasr554bc59"; 31 - } 32 - ) 33 - ]; 34 23 35 24 propagatedBuildInputs = [ webencodings ]; 36 25 37 - checkInputs = [ pytest pytest-runner pytest-cov pytest-flake8 pytest-isort ]; 26 + checkInputs = [ 27 + pytestCheckHook 28 + ]; 38 29 39 - # https://github.com/PyCQA/pycodestyle/issues/598 40 - preCheck = '' 41 - printf "[flake8]\nignore=W504,E741,E126" >> setup.cfg 30 + postPatch = '' 31 + substituteInPlace pyproject.toml \ 32 + --replace "'pytest-cov', 'pytest-flake8', 'pytest-isort', 'coverage[toml]'" "" \ 33 + --replace "--isort --flake8 --cov" "" 42 34 ''; 43 35 44 36 meta = with lib; {
-2
pkgs/development/python-modules/watchdog/default.nix
··· 2 2 , stdenv 3 3 , buildPythonPackage 4 4 , fetchPypi 5 - , argh 6 5 , pathtools 7 6 , pyyaml 8 7 , flaky ··· 23 22 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; 24 23 25 24 propagatedBuildInputs = [ 26 - argh 27 25 pathtools 28 26 pyyaml 29 27 ];
+2
pkgs/development/python-modules/xcffib/default.nix
··· 23 23 24 24 propagatedBuildInputs = [ cffi six ]; 25 25 26 + propagatedNativeBuildInputs = [ cffi ]; 27 + 26 28 checkInputs = [ nose ]; 27 29 28 30 pythonImportsCheck = [ "xcffib" ];
+3 -1
pkgs/development/python-modules/xpybutil/default.nix
··· 13 13 }; 14 14 15 15 # pillow is a dependency in image.py which is not listed in setup.py 16 - propagatedBuildInputs = [ xcffib pillow ]; 16 + propagatedBuildInputs = [ pillow xcffib ]; 17 + 18 + propagatedNativeBuildInputs = [ xcffib ]; 17 19 18 20 checkInputs = [ nose ]; 19 21
+2 -2
pkgs/development/python-modules/yamale/default.nix
··· 4 4 , pythonOlder 5 5 , pytestCheckHook 6 6 , pyyaml 7 - , ruamel_yaml 7 + , ruamel-yaml 8 8 }: 9 9 10 10 buildPythonPackage rec { ··· 23 23 24 24 propagatedBuildInputs = [ 25 25 pyyaml 26 - ruamel_yaml 26 + ruamel-yaml 27 27 ]; 28 28 29 29 checkInputs = [
+8 -3
pkgs/development/python-modules/zopfli/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, pytest }: 1 + { lib, buildPythonPackage, fetchPypi, setuptools-scm, zopfli, pytest }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "zopfli"; 5 - version = "0.1.8"; 5 + version = "0.1.9"; 6 6 7 7 src = fetchPypi { 8 8 inherit pname version; 9 - sha256 = "8b977dc07e3797907ab59e08096583bcd0b7e6c739849fbbeec09263f6356623"; 9 + sha256 = "78de3cc08a8efaa8013d61528907d91ac4d6cc014ffd8a41cc10ee75e9e60d7b"; 10 10 extension = "zip"; 11 11 }; 12 + 13 + nativeBuildInputs = [ setuptools-scm ]; 14 + 15 + buildInputs = [ zopfli ]; 16 + USE_SYSTEM_ZOPFLI = "True"; 12 17 13 18 # doesn't work with pytestCheckHook 14 19 checkInputs = [ pytest ];
+2
pkgs/development/python-modules/zstandard/default.nix
··· 14 14 sha256 = "eaae2d3e8fdf8bfe269628385087e4b648beef85bb0c187644e7df4fb0fe9046"; 15 15 }; 16 16 17 + propagatedNativeBuildInputs = [ cffi ]; 18 + 17 19 propagatedBuildInputs = [ cffi ]; 18 20 19 21 checkInputs = [ hypothesis ];
+10 -10
pkgs/development/tools/analysis/clang-analyzer/0001-Fix-scan-build-to-use-NIX_CFLAGS_COMPILE.patch
··· 1 - From 40239d92957f1969652cdd41d6d2749c41ac4338 Mon Sep 17 00:00:00 2001 1 + From 99a7e55a60c8d96e160f9104a3dd31b7914d3488 Mon Sep 17 00:00:00 2001 2 2 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io> 3 3 Date: Fri, 31 Jul 2020 09:22:03 +0100 4 - Subject: [PATCH] [PATCH] Fix scan-build to use NIX_CFLAGS_COMPILE 4 + Subject: [PATCH] Fix scan-build to use NIX_CFLAGS_COMPILE 5 5 MIME-Version: 1.0 6 6 Content-Type: text/plain; charset=UTF-8 7 7 Content-Transfer-Encoding: 8bit 8 8 9 9 Signed-off-by: Jörg Thalheim <joerg@thalheim.io> 10 10 --- 11 - tools/scan-build/libexec/ccc-analyzer | 8 ++++++++ 11 + clang/tools/scan-build/libexec/ccc-analyzer | 8 ++++++++ 12 12 1 file changed, 8 insertions(+) 13 13 14 - diff --git a/tools/scan-build/libexec/ccc-analyzer b/tools/scan-build/libexec/ccc-analyzer 15 - index 800f38b5..0fb50fb3 100755 16 - --- a/tools/scan-build/libexec/ccc-analyzer 17 - +++ b/tools/scan-build/libexec/ccc-analyzer 18 - @@ -246,6 +246,14 @@ sub Analyze { 14 + diff --git a/clang/tools/scan-build/libexec/ccc-analyzer 15 + b/clang/tools/scan-build/libexec/ccc-analyzer 16 + index ed0d4d3d73f3..2d5113435ca5 100755 17 + --- a/clang/tools/scan-build/libexec/ccc-analyzer 18 + +++ b/clang/tools/scan-build/libexec/ccc-analyzer 19 + @@ -249,6 +249,14 @@ sub Analyze { 19 20 push @Args, "-target", $AnalyzerTarget; 20 21 } 21 22 ··· 31 32 @CmdArgs = @$AnalysisArgs; 32 33 } 33 34 -- 34 - 2.27.0 35 - 35 + 2.33.0
+8 -4
pkgs/development/tools/analysis/clang-analyzer/default.nix
··· 12 12 13 13 installPhase = '' 14 14 mkdir -p $out/share/scan-view $out/bin 15 - cp -R tools/scan-view/share/* $out/share/scan-view 16 - cp -R tools/scan-view/bin/* $out/bin/scan-view 17 - cp -R tools/scan-build/* $out 15 + cp -R clang/tools/scan-view/share/* $out/share/scan-view 16 + cp -R clang/tools/scan-view/bin/* $out/bin/scan-view 17 + cp -R clang/tools/scan-build/* $out 18 18 19 19 rm $out/bin/*.bat $out/libexec/*.bat $out/CMakeLists.txt 20 20 ··· 26 26 27 27 meta = { 28 28 description = "Clang Static Analyzer"; 29 - homepage = "http://clang-analyzer.llvm.org"; 29 + longDescription = '' 30 + The Clang Static Analyzer is a source code analysis tool that finds bugs 31 + in C, C++, and Objective-C programs. 32 + ''; 33 + homepage = "https://clang-analyzer.llvm.org/"; 30 34 license = lib.licenses.bsd3; 31 35 platforms = lib.platforms.unix; 32 36 maintainers = [ lib.maintainers.thoughtpolice ];
+2 -2
pkgs/development/tools/analysis/valgrind/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "valgrind"; 5 - version = "3.17.0"; 5 + version = "3.18.1"; 6 6 7 7 src = fetchurl { 8 8 url = "https://sourceware.org/pub/${pname}/${pname}-${version}.tar.bz2"; 9 - sha256 = "18l5jbk301j3462gipqn9bkfx44mdmwn0pwr73r40gl1irkfqfmd"; 9 + sha256 = "sha256-AIWaoTp3Lt33giIl9LRu4NOa++Bx0yd42k2ZmECB9/U="; 10 10 }; 11 11 12 12 outputs = [ "out" "dev" "man" "doc" ];
+7 -2
pkgs/development/tools/build-managers/waf/default.nix
··· 1 - { lib, stdenv, fetchFromGitLab, python, ensureNewerSourcesForZipFilesHook 1 + { lib, stdenv, fetchFromGitLab, python3, ensureNewerSourcesForZipFilesHook 2 2 # optional list of extra waf tools, e.g. `[ "doxygen" "pytest" ]` 3 3 , withTools ? null 4 4 }: ··· 17 17 sha256 = "sha256-WGGyhvQdFYmC0NOA5VVqCRMF1fvfPcTI42x1nHvz0W0="; 18 18 }; 19 19 20 - buildInputs = [ python ensureNewerSourcesForZipFilesHook ]; 20 + nativeBuildInputs = [ python3 ensureNewerSourcesForZipFilesHook ]; 21 + 22 + # waf bin has #!/usr/bin/env python 23 + buildInputs = [ python3 ]; 21 24 22 25 configurePhase = '' 23 26 python waf-light configure ··· 28 31 installPhase = '' 29 32 install -D waf $out/bin/waf 30 33 ''; 34 + 35 + strictDeps = true; 31 36 32 37 meta = with lib; { 33 38 description = "Meta build system";
+12 -2
pkgs/development/tools/documentation/gi-docgen/default.nix
··· 1 1 { lib 2 2 , fetchFromGitLab 3 + , fetchpatch 3 4 , meson 4 5 , ninja 5 6 , python3 ··· 7 8 8 9 python3.pkgs.buildPythonApplication rec { 9 10 pname = "gi-docgen"; 10 - version = "2021.7"; 11 + version = "2021.8"; 11 12 12 13 format = "other"; 13 14 ··· 16 17 owner = "GNOME"; 17 18 repo = pname; 18 19 rev = version; 19 - sha256 = "i2s4JXg+D9sYq1QwVcDRLIr9qnRmzHC+cBInHv4SXHI="; 20 + sha256 = "Y1IdCH6bytxbKIj48IAw/3XUQhoqwPshvdj/d1hRS3o="; 20 21 }; 22 + 23 + patches = [ 24 + # Fix building docs of some packages (e.g. gnome-builder) 25 + # https://gitlab.gnome.org/GNOME/gi-docgen/-/issues/111 26 + (fetchpatch { 27 + url = "https://gitlab.gnome.org/GNOME/gi-docgen/-/commit/72f3c5dbe27aabb5f7a376afda23f3dfc3c2e212.patch"; 28 + sha256 = "iVXc3idmcjmFVZQdE2QX2V53YZ79lqxZid9nWdxAZ/Q="; 29 + }) 30 + ]; 21 31 22 32 nativeBuildInputs = [ 23 33 meson
+2 -2
pkgs/development/tools/dt-schema/default.nix
··· 2 2 , buildPythonPackage 3 3 , fetchPypi 4 4 , git 5 - , ruamel_yaml 5 + , ruamel-yaml 6 6 , jsonschema 7 7 , rfc3987 8 8 , setuptools ··· 21 21 nativeBuildInputs = [ setuptools-scm git ]; 22 22 propagatedBuildInputs = [ 23 23 setuptools 24 - ruamel_yaml 24 + ruamel-yaml 25 25 jsonschema 26 26 rfc3987 27 27 ];
+1 -1
pkgs/development/tools/fdroidserver/default.nix
··· 44 44 pyyaml 45 45 qrcode 46 46 requests 47 - ruamel_yaml 47 + ruamel-yaml 48 48 yamllint 49 49 ]; 50 50
+2 -2
pkgs/development/tools/misc/autogen/default.nix
··· 86 86 done 87 87 88 88 '' + lib.optionalString (!stdenv.hostPlatform.isDarwin) '' 89 - # remove /build/** from RPATHs 89 + # remove build directory (/build/**, or /tmp/nix-build-**) from RPATHs 90 90 for f in "$bin"/bin/*; do 91 - local nrp="$(patchelf --print-rpath "$f" | sed -E 's@(:|^)/build/[^:]*:@\1@g')" 91 + local nrp="$(patchelf --print-rpath "$f" | sed -E 's@(:|^)'$NIX_BUILD_TOP'[^:]*:@\1@g')" 92 92 patchelf --set-rpath "$nrp" "$f" 93 93 done 94 94 '';
+73
pkgs/development/tools/misc/binutils/CVE-2021-3487.patch
··· 1 + From: Nick Clifton <nickc@redhat.com> 2 + Date: Thu, 26 Nov 2020 17:08:33 +0000 (+0000) 3 + Subject: Prevent a memory allocation failure when parsing corrupt DWARF debug sections. 4 + X-Git-Tag: binutils-2_36~485 5 + X-Git-Url: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=647cebce12a6b0a26960220caff96ff38978cf24;hp=239ca5e497dda2c151009d664d500086a5c2173a 6 + 7 + Prevent a memory allocation failure when parsing corrupt DWARF debug sections. 8 + 9 + PR 26946 10 + * dwarf2.c (read_section): Check for debug sections with excessive 11 + sizes. 12 + --- 13 + 14 + diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c 15 + index 977bf43a6a1..8bbfc81d3e7 100644 16 + --- a/bfd/dwarf2.c 17 + +++ b/bfd/dwarf2.c 18 + @@ -531,22 +531,24 @@ read_section (bfd * abfd, 19 + bfd_byte ** section_buffer, 20 + bfd_size_type * section_size) 21 + { 22 + - asection *msec; 23 + const char *section_name = sec->uncompressed_name; 24 + bfd_byte *contents = *section_buffer; 25 + - bfd_size_type amt; 26 + 27 + /* The section may have already been read. */ 28 + if (contents == NULL) 29 + { 30 + + bfd_size_type amt; 31 + + asection *msec; 32 + + ufile_ptr filesize; 33 + + 34 + msec = bfd_get_section_by_name (abfd, section_name); 35 + - if (! msec) 36 + + if (msec == NULL) 37 + { 38 + section_name = sec->compressed_name; 39 + if (section_name != NULL) 40 + msec = bfd_get_section_by_name (abfd, section_name); 41 + } 42 + - if (! msec) 43 + + if (msec == NULL) 44 + { 45 + _bfd_error_handler (_("DWARF error: can't find %s section."), 46 + sec->uncompressed_name); 47 + @@ -554,12 +556,23 @@ read_section (bfd * abfd, 48 + return FALSE; 49 + } 50 + 51 + - *section_size = msec->rawsize ? msec->rawsize : msec->size; 52 + + amt = bfd_get_section_limit_octets (abfd, msec); 53 + + filesize = bfd_get_file_size (abfd); 54 + + if (amt >= filesize) 55 + + { 56 + + /* PR 26946 */ 57 + + _bfd_error_handler (_("DWARF error: section %s is larger than its filesize! (0x%lx vs 0x%lx)"), 58 + + section_name, (long) amt, (long) filesize); 59 + + bfd_set_error (bfd_error_bad_value); 60 + + return FALSE; 61 + + } 62 + + *section_size = amt; 63 + /* Paranoia - alloc one extra so that we can make sure a string 64 + section is NUL terminated. */ 65 + - amt = *section_size + 1; 66 + + amt += 1; 67 + if (amt == 0) 68 + { 69 + + /* Paranoia - this should never happen. */ 70 + bfd_set_error (bfd_error_no_memory); 71 + return FALSE; 72 + } 73 +
+3 -2
pkgs/development/tools/misc/binutils/default.nix
··· 27 27 let 28 28 reuseLibs = enableShared && withAllTargets; 29 29 30 - version = "2.35.1"; 30 + version = "2.35.2"; 31 31 basename = "binutils"; 32 32 # The targetPrefix prepended to binary names to allow multiple binuntils on the 33 33 # PATH to both be usable. ··· 42 42 # HACK to ensure that we preserve source from bootstrap binutils to not rebuild LLVM 43 43 normal-src = stdenv.__bootPackages.binutils-unwrapped.src or (fetchurl { 44 44 url = "mirror://gnu/binutils/${basename}-${version}.tar.bz2"; 45 - sha256 = "sha256-Mg56HQ9G/Nn0E/EEbiFsviO7K85t62xqYzBEJeSLGUI="; 45 + sha256 = "sha256-z6dkTb7PRZHhNutAfBwdoWV4vSsD8MLorNzroZS7nWE="; 46 46 }); 47 47 in 48 48 ··· 84 84 ./gold-Update-GNU_PROPERTY_X86_XXX-macros.patch 85 85 86 86 ./CVE-2020-35448.patch 87 + ./CVE-2021-3487.patch 87 88 ] ++ lib.optional stdenv.targetPlatform.isiOS ./support-ios.patch 88 89 ++ # This patch was suggested by Nick Clifton to fix 89 90 # https://sourceware.org/bugzilla/show_bug.cgi?id=16177
+2 -2
pkgs/development/tools/misc/help2man/default.nix
··· 7 7 8 8 stdenv.mkDerivation rec { 9 9 pname = "help2man"; 10 - version = "1.48.1"; 10 + version = "1.48.5"; 11 11 12 12 src = fetchurl { 13 13 url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz"; 14 - sha256 = "sha256-3op0dAvQWGRlZ7kqtOzeudqfGgfMfE9gejwU3TjRB5k="; 14 + sha256 = "sha256-ZznkyqQuau0zmb5Dh8p5OZZAlnM06RcohjuOqpIlgr4="; 15 15 }; 16 16 17 17 nativeBuildInputs = [ gettext perlPackages.LocaleGettext ];
+1 -1
pkgs/development/tools/misc/replacement/default.nix
··· 17 17 }; 18 18 19 19 propagatedBuildInputs = with python3Packages; [ 20 - ruamel_yaml 20 + ruamel-yaml 21 21 ]; 22 22 23 23 checkInputs = with python3Packages; [
+10 -4
pkgs/development/tools/parsing/bison/default.nix
··· 7 7 8 8 stdenv.mkDerivation rec { 9 9 pname = "bison"; 10 - version = "3.7.6"; 10 + version = "3.8.2"; 11 11 12 12 src = fetchurl { 13 13 url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz"; 14 - sha256 = "sha256-adwLtG6o/DB9TKHgthyMNV6yB9Cwxp9PhGIyjnTXueo="; 14 + sha256 = "sha256-BsnhO99+sk1M62tZIFpPZ8LH5yExGWREMP6C+9FKCrs="; 15 15 }; 16 16 17 + # gnulib relies on --host= to detect iconv() features on musl(). 18 + # Otherwise tests fail due to incorrect unicode symbol oconversion. 19 + configurePlatforms = [ "build" "host" ]; 20 + 17 21 nativeBuildInputs = [ m4 perl ] ++ lib.optional stdenv.isSunOS help2man; 18 22 propagatedBuildInputs = [ m4 ]; 19 23 20 - doCheck = false; # fails 21 - doInstallCheck = false; # fails 24 + enableParallelBuilding = true; 25 + 26 + doCheck = true; 27 + doInstallCheck = true; 22 28 23 29 meta = { 24 30 homepage = "https://www.gnu.org/software/bison/";
+1 -1
pkgs/games/steam/fhsenv.nix
··· 187 187 xorg.libICE 188 188 gnome2.GConf 189 189 freetype 190 - (curl.override { gnutlsSupport = true; sslSupport = false; }) 190 + (curl.override { gnutlsSupport = true; opensslSupport = false; }) 191 191 nspr 192 192 nss 193 193 fontconfig
+1 -1
pkgs/misc/cups/default.nix
··· 8 8 , libtiff 9 9 , pam 10 10 , dbus 11 - , enableSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isMusl 11 + , enableSystemd ? stdenv.isLinux 12 12 , systemd 13 13 , acl 14 14 , gmp
+2 -2
pkgs/os-specific/linux/cryptsetup/default.nix
··· 3 3 4 4 stdenv.mkDerivation rec { 5 5 pname = "cryptsetup"; 6 - version = "2.4.0"; 6 + version = "2.4.1"; 7 7 8 8 outputs = [ "out" "dev" "man" ]; 9 9 10 10 src = fetchurl { 11 11 url = "mirror://kernel/linux/utils/cryptsetup/v2.4/${pname}-${version}.tar.xz"; 12 - sha256 = "sha256-xci9oxFZqcAQ6nLnCAU8xCUs9e69ylIOFQq8Bgkof/g="; 12 + sha256 = "sha256-o1anJ6g6RkreVm6VI5Yioi2+Tg9IKxmP2wSrDTpanF8="; 13 13 }; 14 14 15 15 # Disable 4 test cases that fail in a sandbox
+2 -2
pkgs/os-specific/linux/ell/default.nix
··· 7 7 8 8 stdenv.mkDerivation rec { 9 9 pname = "ell"; 10 - version = "0.43"; 10 + version = "0.44"; 11 11 12 12 outputs = [ "out" "dev" ]; 13 13 14 14 src = fetchgit { 15 15 url = "https://git.kernel.org/pub/scm/libs/${pname}/${pname}.git"; 16 16 rev = version; 17 - sha256 = "sha256-ttKFKV8spxnkFpZHV4Dn9BxJdjxYLWYrHY+qq6uAOlg="; 17 + sha256 = "sha256-8korsEvlQOtfyuGkzFun1Xbuc4uhI2I0YpACUfxlpIM="; 18 18 }; 19 19 20 20 nativeBuildInputs = [
+3
pkgs/os-specific/linux/kernel/common-config.nix
··· 129 129 XDP_SOCKETS = whenAtLeast "4.19" yes; 130 130 XDP_SOCKETS_DIAG = whenAtLeast "5.1" yes; 131 131 WAN = yes; 132 + TCP_CONG_ADVANCED = yes; 132 133 TCP_CONG_CUBIC = yes; # This is the default congestion control algorithm since 2.6.19 133 134 # Required by systemd per-cgroup firewalling 134 135 CGROUP_BPF = option yes; ··· 759 760 DVB_DYNAMIC_MINORS = option yes; # we use udev 760 761 761 762 EFI_STUB = yes; # EFI bootloader in the bzImage itself 763 + EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER = 764 + whenAtLeast "5.8" yes; # initrd kernel parameter for EFI 762 765 CGROUPS = yes; # used by systemd 763 766 FHANDLE = yes; # used by systemd 764 767 SECCOMP = yes; # used by systemd >= 231
+7 -1
pkgs/os-specific/linux/kernel/manual-config.nix
··· 128 128 # See also https://kernelnewbies.org/BuildId 129 129 sed -i Makefile -e 's|--build-id=[^ ]*|--build-id=none|' 130 130 131 - patchShebangs scripts 131 + # Some linux-hardened patches now remove certain files in the scripts directory, so we cannot 132 + # patch all scripts until after patches are applied. 133 + # However, scripts/ld-version.sh is still ran when generating a configfile for a kernel, so it needs 134 + # to be patched prior to patchPhase 135 + patchShebangs scripts/ld-version.sh 132 136 ''; 133 137 134 138 postPatch = '' ··· 142 146 --replace NIXOS_RANDSTRUCT_SEED \ 143 147 $(echo ${randstructSeed}${src} ${configfile} | sha256sum | cut -d ' ' -f 1 | tr -d '\n') 144 148 fi 149 + 150 + patchShebangs scripts 145 151 ''; 146 152 147 153 configurePhase = ''
+3 -20
pkgs/os-specific/linux/kexec-tools/default.nix
··· 1 - { lib, stdenv, buildPackages, fetchurl, zlib, fetchpatch }: 1 + { lib, stdenv, buildPackages, fetchurl, zlib }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "kexec-tools"; 5 - version = "2.0.20"; 5 + version = "2.0.23"; 6 6 7 7 src = fetchurl { 8 8 urls = [ 9 9 "mirror://kernel/linux/utils/kernel/kexec/${pname}-${version}.tar.xz" 10 10 "http://horms.net/projects/kexec/kexec-tools/${pname}-${version}.tar.xz" 11 11 ]; 12 - sha256 = "1j7qlhxk1rbv9jbj8wd6hb7zl8p2mp29ymrmccgmsi0m0dzhgn6s"; 12 + sha256 = "qmPNbH3ZWwbOumJAp/3GeSeJytp1plXmcUmHF1IkJBs="; 13 13 }; 14 14 15 15 hardeningDisable = [ "format" "pic" "relro" "pie" ]; ··· 20 20 configureFlags = [ "BUILD_CC=${buildPackages.stdenv.cc.targetPrefix}cc" ]; 21 21 depsBuildBuild = [ buildPackages.stdenv.cc ]; 22 22 buildInputs = [ zlib ]; 23 - 24 - patches = [ 25 - # fix build on i686 26 - # See: https://src.fedoraproject.org/rpms/kexec-tools/c/cb1e5463b5298b064e9b6c86ad6fe3505fec9298 27 - (fetchpatch { 28 - name = "kexec-tools-2.0.20-fix-broken-multiboot2-buliding-for-i386.patch"; 29 - url = "https://src.fedoraproject.org/rpms/kexec-tools/raw/cb1e5463b5298b064e9b6c86ad6fe3505fec9298/f/kexec-tools-2.0.20-fix-broken-multiboot2-buliding-for-i386.patch"; 30 - sha256 = "1kzmcsbhwfdgxlc5s88ir0n494phww1j16yk0z42x09qlkxxkg0l"; 31 - }) 32 - 33 - (fetchpatch { 34 - # upstream build fix against -fno-common compilers like >=gcc-10 35 - name = "fno-common.patch"; 36 - url = "https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/patch/?id=cc087b11462af9f971a2c090d07e8d780a867b50"; 37 - sha256 = "043hcsy6m14h64p6b9w25c7a3y0f487322dj81l6mbm6sws6s9lv"; 38 - }) 39 - ]; 40 23 41 24 meta = with lib; { 42 25 homepage = "http://horms.net/projects/kexec/kexec-tools";
+1
pkgs/os-specific/linux/libselinux/default.nix
··· 39 39 "SHLIBDIR=$(out)/lib" 40 40 41 41 "LIBSEPOLA=${lib.getLib libsepol}/lib/libsepol.a" 42 + "ARCH=${stdenv.hostPlatform.linuxArch}" 42 43 ] ++ optionals enablePython [ 43 44 "PYTHON=${python3.pythonForBuild.interpreter}" 44 45 "PYTHONLIBDIR=$(py)/${python3.sitePackages}"
+4
pkgs/os-specific/linux/lvm2/2_02.nix
··· 1 + import ./common.nix { 2 + version = "2.02.187"; 3 + sha256Hash = "sha256-Dg1SGoY6XbJEDy4edie6grcCc65KsLvhMIUdsNWOWvE="; 4 + }
+4
pkgs/os-specific/linux/lvm2/2_03.nix
··· 1 + import ./common.nix { 2 + version = "2.03.12"; 3 + sha256Hash = "1shczwfd0888dchjiaqzd48ampm6f8y0ngsqd99fy4nxlbr5q1vn"; 4 + }
+6 -3
pkgs/os-specific/linux/lvm2/default.nix pkgs/os-specific/linux/lvm2/common.nix
··· 1 + { version, sha256Hash }: 2 + 1 3 { lib, stdenv 2 4 , fetchpatch 3 5 , fetchurl ··· 15 17 assert enableDmeventd -> enableCmdlib; 16 18 17 19 stdenv.mkDerivation rec { 18 - pname = "lvm2" + lib.optionalString enableDmeventd "with-dmeventd"; 19 - version = "2.03.12"; 20 + pname = "lvm2" + lib.optionalString enableDmeventd "-with-dmeventd"; 21 + inherit version; 20 22 21 23 src = fetchurl { 22 24 url = "https://mirrors.kernel.org/sourceware/lvm2/LVM2.${version}.tgz"; 23 - sha256 = "1shczwfd0888dchjiaqzd48ampm6f8y0ngsqd99fy4nxlbr5q1vn"; 25 + sha256 = sha256Hash; 24 26 }; 25 27 26 28 nativeBuildInputs = [ pkg-config ]; ··· 60 62 --replace "(BINDIR)/systemd-run" /run/current-system/systemd/bin/systemd-run 61 63 62 64 substituteInPlace make.tmpl.in --replace "@systemdsystemunitdir@" "$out/lib/systemd/system" 65 + '' + lib.optionalString (lib.versionAtLeast version "2.03") '' 63 66 substituteInPlace libdm/make.tmpl.in --replace "@systemdsystemunitdir@" "$out/lib/systemd/system" 64 67 ''; 65 68
+2 -2
pkgs/os-specific/linux/pam/default.nix
··· 1 - { lib, stdenv, buildPackages, fetchurl, flex, cracklib, db4, gettext 1 + { lib, stdenv, buildPackages, fetchurl, flex, cracklib, db4, gettext, audit 2 2 , nixosTests 3 3 , withLibxcrypt ? false, libxcrypt 4 4 }: ··· 18 18 nativeBuildInputs = [ flex ] 19 19 ++ lib.optional stdenv.buildPlatform.isDarwin gettext; 20 20 21 - buildInputs = [ cracklib db4 ] 21 + buildInputs = [ cracklib db4 audit ] 22 22 ++ lib.optional withLibxcrypt libxcrypt; 23 23 24 24 enableParallelBuilding = true;
+2 -2
pkgs/os-specific/linux/systemd/0001-Start-device-units-for-uninitialised-encrypted-devic.patch
··· 1 - From 57e31a2d4a5d5bd7a9e1cd8a0d8bc6a00624ad68 Mon Sep 17 00:00:00 2001 1 + From 06a8dbb65584b6f705fee8a486f32dab12f72082 Mon Sep 17 00:00:00 2001 2 2 From: Eelco Dolstra <eelco.dolstra@logicblox.com> 3 3 Date: Tue, 8 Jan 2013 15:46:30 +0100 4 4 Subject: [PATCH 01/19] Start device units for uninitialised encrypted devices ··· 28 28 SUBSYSTEM=="block", ENV{ID_PART_GPT_AUTO_ROOT}=="1", ENV{ID_FS_TYPE}!="crypto_LUKS", SYMLINK+="gpt-auto-root" 29 29 SUBSYSTEM=="block", ENV{ID_PART_GPT_AUTO_ROOT}=="1", ENV{ID_FS_TYPE}=="crypto_LUKS", SYMLINK+="gpt-auto-root-luks" 30 30 -- 31 - 2.32.0 31 + 2.33.0 32 32
+2 -2
pkgs/os-specific/linux/systemd/0002-Don-t-try-to-unmount-nix-or-nix-store.patch
··· 1 - From 43465a392b47238a32f8719f603ed9e2c9bb0363 Mon Sep 17 00:00:00 2001 1 + From 2c98ff115f7027bebde14cf3e74f2c51b343874c Mon Sep 17 00:00:00 2001 2 2 From: Eelco Dolstra <eelco.dolstra@logicblox.com> 3 3 Date: Fri, 12 Apr 2013 13:16:57 +0200 4 4 Subject: [PATCH 02/19] Don't try to unmount /nix or /nix/store ··· 38 38 || path_equal(path, "/usr") 39 39 #endif 40 40 -- 41 - 2.32.0 41 + 2.33.0 42 42
+3 -3
pkgs/os-specific/linux/systemd/0003-Fix-NixOS-containers.patch
··· 1 - From a99666d3d7012c2162fdacf84a57fc0b848fd957 Mon Sep 17 00:00:00 2001 1 + From 16f441b6495ff4c4d1d0b71a7f1650505147173d Mon Sep 17 00:00:00 2001 2 2 From: Eelco Dolstra <eelco.dolstra@logicblox.com> 3 3 Date: Wed, 16 Apr 2014 10:59:28 +0200 4 4 Subject: [PATCH 03/19] Fix NixOS containers ··· 10 10 1 file changed, 2 insertions(+) 11 11 12 12 diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c 13 - index 04685fecba..0e5ece5f91 100644 13 + index 575b9da447..438ca294db 100644 14 14 --- a/src/nspawn/nspawn.c 15 15 +++ b/src/nspawn/nspawn.c 16 16 @@ -5590,6 +5590,7 @@ static int run(int argc, char *argv[]) { ··· 30 30 31 31 } else { 32 32 -- 33 - 2.32.0 33 + 2.33.0 34 34
+2 -2
pkgs/os-specific/linux/systemd/0004-Look-for-fsck-in-the-right-place.patch
··· 1 - From 3f0780b25bdbe4156a2f761c90083bbba5f4d473 Mon Sep 17 00:00:00 2001 1 + From 261423bc039378115ad9223c2b6ede9c395847b2 Mon Sep 17 00:00:00 2001 2 2 From: Eelco Dolstra <eelco.dolstra@logicblox.com> 3 3 Date: Thu, 1 May 2014 14:10:10 +0200 4 4 Subject: [PATCH 04/19] Look for fsck in the right place ··· 21 21 cmdline[i++] = "-T"; 22 22 23 23 -- 24 - 2.32.0 24 + 2.33.0 25 25
+3 -3
pkgs/os-specific/linux/systemd/0005-Add-some-NixOS-specific-unit-directories.patch
··· 1 - From 82698c6a5142e710c302f9c38367ed00d8ec94ba Mon Sep 17 00:00:00 2001 1 + From 18b45c20499747bcc66714ee87edf34d4f6e3dca Mon Sep 17 00:00:00 2001 2 2 From: Eelco Dolstra <eelco.dolstra@logicblox.com> 3 3 Date: Fri, 19 Dec 2014 14:46:17 +0100 4 4 Subject: [PATCH 05/19] Add some NixOS-specific unit directories ··· 92 92 93 93 if (!add) 94 94 diff --git a/src/core/systemd.pc.in b/src/core/systemd.pc.in 95 - index fc0f8c34fa..ded74ce50a 100644 95 + index fc0f8c34fa..162432e77f 100644 96 96 --- a/src/core/systemd.pc.in 97 97 +++ b/src/core/systemd.pc.in 98 98 @@ -38,10 +38,10 @@ systemdsystemconfdir=${systemd_system_conf_dir} ··· 122 122 123 123 systemd_sleep_dir=${root_prefix}/lib/systemd/system-sleep 124 124 -- 125 - 2.32.0 125 + 2.33.0 126 126
+3 -3
pkgs/os-specific/linux/systemd/0006-Get-rid-of-a-useless-message-in-user-sessions.patch
··· 1 - From e2a8db60ebfb1e0477ce989f6c3d4a95f2e08120 Mon Sep 17 00:00:00 2001 1 + From 8b8f4168828a12cac17c3e8803cacebf31608c68 Mon Sep 17 00:00:00 2001 2 2 From: Eelco Dolstra <eelco.dolstra@logicblox.com> 3 3 Date: Mon, 11 May 2015 15:39:38 +0200 4 4 Subject: [PATCH 06/19] Get rid of a useless message in user sessions ··· 13 13 1 file changed, 2 insertions(+), 1 deletion(-) 14 14 15 15 diff --git a/src/core/manager.c b/src/core/manager.c 16 - index 8884437347..e23d47b4a4 100644 16 + index 34891a8754..b9b4789720 100644 17 17 --- a/src/core/manager.c 18 18 +++ b/src/core/manager.c 19 19 @@ -1375,7 +1375,8 @@ static unsigned manager_dispatch_stop_when_bound_queue(Manager *m) { ··· 27 27 /* If stopping a unit fails continuously we might enter a stop loop here, hence stop acting on the 28 28 * service being unnecessary after a while. */ 29 29 -- 30 - 2.32.0 30 + 2.33.0 31 31
+3 -3
pkgs/os-specific/linux/systemd/0007-hostnamed-localed-timedated-disable-methods-that-cha.patch
··· 1 - From 56ae06b48c6852071dfc57c1203c04f07309d757 Mon Sep 17 00:00:00 2001 1 + From e147e9defaf2bb5e8040566537661d90b4008daf Mon Sep 17 00:00:00 2001 2 2 From: Gabriel Ebner <gebner@gebner.org> 3 3 Date: Sun, 6 Dec 2015 14:26:36 +0100 4 4 Subject: [PATCH 07/19] hostnamed, localed, timedated: disable methods that ··· 35 35 36 36 context_read_machine_info(c); 37 37 diff --git a/src/locale/localed.c b/src/locale/localed.c 38 - index df0eb030d4..d026eae97e 100644 38 + index c228385d0e..942ccaa038 100644 39 39 --- a/src/locale/localed.c 40 40 +++ b/src/locale/localed.c 41 41 @@ -360,6 +360,9 @@ static int method_set_locale(sd_bus_message *m, void *userdata, sd_bus_error *er ··· 104 104 if (r < 0) 105 105 return r; 106 106 -- 107 - 2.32.0 107 + 2.33.0 108 108
+2 -2
pkgs/os-specific/linux/systemd/0008-Fix-hwdb-paths.patch
··· 1 - From b783b2da164482f26ac5e6e347dc41930c072ea5 Mon Sep 17 00:00:00 2001 1 + From 992d0e6abb09aacceee2f8646c4bcdacf7277dc7 Mon Sep 17 00:00:00 2001 2 2 From: Nikolay Amiantov <ab@fmap.me> 3 3 Date: Thu, 7 Jul 2016 02:47:13 +0300 4 4 Subject: [PATCH 08/19] Fix hwdb paths ··· 24 24 + "/etc/udev/hwdb.bin\0" 25 25 + 26 26 -- 27 - 2.32.0 27 + 2.33.0 28 28
+3 -3
pkgs/os-specific/linux/systemd/0009-Change-usr-share-zoneinfo-to-etc-zoneinfo.patch
··· 1 - From e24c05ef8cfe48c4f0ebdb92e8147ae2151e4c87 Mon Sep 17 00:00:00 2001 1 + From 462bc01b3a38468fd617066a3d7f27b1acca9e0a Mon Sep 17 00:00:00 2001 2 2 From: Nikolay Amiantov <ab@fmap.me> 3 3 Date: Tue, 11 Oct 2016 13:12:08 +0300 4 4 Subject: [PATCH 09/19] Change /usr/share/zoneinfo to /etc/zoneinfo ··· 88 88 (void) mkdir_parents(etc_localtime, 0755); 89 89 if (symlink(e, etc_localtime) < 0) 90 90 diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c 91 - index 0e5ece5f91..cc46435472 100644 91 + index 438ca294db..98bd110d92 100644 92 92 --- a/src/nspawn/nspawn.c 93 93 +++ b/src/nspawn/nspawn.c 94 94 @@ -1887,8 +1887,8 @@ int userns_mkdir(const char *root, const char *path, mode_t mode, uid_t uid, gid ··· 137 137 return -ENOMEM; 138 138 139 139 -- 140 - 2.32.0 140 + 2.33.0 141 141
+2 -2
pkgs/os-specific/linux/systemd/0010-localectl-use-etc-X11-xkb-for-list-x11.patch
··· 1 - From 09f6ca91b4131637038686dafd57b5da642c100e Mon Sep 17 00:00:00 2001 1 + From fbb302d00c63dc17a210f83648f24a1da983b2c0 Mon Sep 17 00:00:00 2001 2 2 From: Imuli <i@imu.li> 3 3 Date: Wed, 19 Oct 2016 08:46:47 -0400 4 4 Subject: [PATCH 10/19] localectl: use /etc/X11/xkb for list-x11-* ··· 23 23 return log_error_errno(errno, "Failed to open keyboard mapping list. %m"); 24 24 25 25 -- 26 - 2.32.0 26 + 2.33.0 27 27
+4 -4
pkgs/os-specific/linux/systemd/0011-build-don-t-create-statedir-and-don-t-touch-prefixdi.patch
··· 1 - From d5716cd93fdaad16b590a581f39d95954f40748e Mon Sep 17 00:00:00 2001 1 + From b850dae349de8ac6906d4f920a21ef275cecb2de Mon Sep 17 00:00:00 2001 2 2 From: Franz Pletz <fpletz@fnordicwalking.de> 3 3 Date: Sun, 11 Feb 2018 04:37:44 +0100 4 4 Subject: [PATCH 11/19] build: don't create statedir and don't touch prefixdir ··· 8 8 1 file changed, 3 deletions(-) 9 9 10 10 diff --git a/meson.build b/meson.build 11 - index 738879eb21..453ee4b1c0 100644 11 + index b5a51b6d0d..99b071542c 100644 12 12 --- a/meson.build 13 13 +++ b/meson.build 14 - @@ -3538,9 +3538,6 @@ install_data('LICENSE.GPL2', 14 + @@ -3540,9 +3540,6 @@ install_data('LICENSE.GPL2', 15 15 'docs/GVARIANT-SERIALIZATION.md', 16 16 install_dir : docdir) 17 17 ··· 22 22 23 23 # Ensure that changes to the docs/ directory do not break the 24 24 -- 25 - 2.32.0 25 + 2.33.0 26 26
+4 -4
pkgs/os-specific/linux/systemd/0012-inherit-systemd-environment-when-calling-generators.patch
··· 1 - From 40a5df71e7af5feefacae9fc95bf94e72c6c12f4 Mon Sep 17 00:00:00 2001 1 + From beefb6d381286769cc47c71c82b831a37a405d90 Mon Sep 17 00:00:00 2001 2 2 From: Andreas Rammhold <andreas@rammhold.de> 3 3 Date: Fri, 2 Nov 2018 21:15:42 +0100 4 4 Subject: [PATCH 12/19] inherit systemd environment when calling generators. ··· 16 16 1 file changed, 9 insertions(+), 4 deletions(-) 17 17 18 18 diff --git a/src/core/manager.c b/src/core/manager.c 19 - index e23d47b4a4..1047aadebc 100644 19 + index b9b4789720..79239afe4a 100644 20 20 --- a/src/core/manager.c 21 21 +++ b/src/core/manager.c 22 - @@ -4145,10 +4145,15 @@ static int manager_run_generators(Manager *m) { 22 + @@ -4149,10 +4149,15 @@ static int manager_run_generators(Manager *m) { 23 23 argv[4] = NULL; 24 24 25 25 RUN_WITH_UMASK(0022) ··· 40 40 41 41 finish: 42 42 -- 43 - 2.32.0 43 + 2.33.0 44 44
+2 -2
pkgs/os-specific/linux/systemd/0013-add-rootprefix-to-lookup-dir-paths.patch
··· 1 - From fe3aff271cf127c1484533237fe0a024e07ae7bc Mon Sep 17 00:00:00 2001 1 + From 146b79d55cc4fdfdb5fd4978e68b21f5c1df1679 Mon Sep 17 00:00:00 2001 2 2 From: Andreas Rammhold <andreas@rammhold.de> 3 3 Date: Thu, 9 May 2019 11:15:22 +0200 4 4 Subject: [PATCH 13/19] add rootprefix to lookup dir paths ··· 34 34 #define CONF_PATHS(n) \ 35 35 CONF_PATHS_USR(n) \ 36 36 -- 37 - 2.32.0 37 + 2.33.0 38 38
+2 -2
pkgs/os-specific/linux/systemd/0014-systemd-shutdown-execute-scripts-in-etc-systemd-syst.patch
··· 1 - From 31732478745f7a200004fb8ec013f54dbc536f2e Mon Sep 17 00:00:00 2001 1 + From 8edd810e74e2308f34eba6e8072e559e69307830 Mon Sep 17 00:00:00 2001 2 2 From: Nikolay Amiantov <ab@fmap.me> 3 3 Date: Thu, 25 Jul 2019 20:45:55 +0300 4 4 Subject: [PATCH 14/19] systemd-shutdown: execute scripts in ··· 23 23 /* The log target defaults to console, but the original systemd process will pass its log target in through a 24 24 * command line argument, which will override this default. Also, ensure we'll never log to the journal or 25 25 -- 26 - 2.32.0 26 + 2.33.0 27 27
+2 -2
pkgs/os-specific/linux/systemd/0015-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch
··· 1 - From 3f2277b86f39cb55936ae11c2365feb283b547cb Mon Sep 17 00:00:00 2001 1 + From 9ed24199dd3ce91d3f7fbfbdf823312c124aba56 Mon Sep 17 00:00:00 2001 2 2 From: Nikolay Amiantov <ab@fmap.me> 3 3 Date: Thu, 25 Jul 2019 20:46:58 +0300 4 4 Subject: [PATCH 15/19] systemd-sleep: execute scripts in ··· 22 22 }; 23 23 24 24 -- 25 - 2.32.0 25 + 2.33.0 26 26
+2 -2
pkgs/os-specific/linux/systemd/0016-kmod-static-nodes.service-Update-ConditionFileNotEmp.patch
··· 1 - From 330490aa8a44206bc03205654680913ab01408a1 Mon Sep 17 00:00:00 2001 1 + From 6db7ad4d5526a82e4ed9b135daf1054a8b71e1c7 Mon Sep 17 00:00:00 2001 2 2 From: Florian Klink <flokli@flokli.de> 3 3 Date: Sat, 7 Mar 2020 22:40:27 +0100 4 4 Subject: [PATCH 16/19] kmod-static-nodes.service: Update ConditionFileNotEmpty ··· 23 23 [Service] 24 24 Type=oneshot 25 25 -- 26 - 2.32.0 26 + 2.33.0 27 27
+2 -2
pkgs/os-specific/linux/systemd/0017-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch
··· 1 - From 216018be7b422586b937dae8fd83f51989479a41 Mon Sep 17 00:00:00 2001 1 + From 160d32c336c96744bbfb618eae4c12cb90138644 Mon Sep 17 00:00:00 2001 2 2 From: Florian Klink <flokli@flokli.de> 3 3 Date: Sun, 8 Mar 2020 01:05:54 +0100 4 4 Subject: [PATCH 17/19] path-util.h: add placeholder for DEFAULT_PATH_NORMAL ··· 29 29 #if HAVE_SPLIT_USR 30 30 # define DEFAULT_PATH DEFAULT_PATH_SPLIT_USR 31 31 -- 32 - 2.32.0 32 + 2.33.0 33 33
-26
pkgs/os-specific/linux/systemd/0018-logind-seat-debus-show-CanMultiSession-again.patch
··· 1 - From beb594ff3bceb95598ffa8ec47c31bacb2449473 Mon Sep 17 00:00:00 2001 2 - From: Thomas Tuegel <ttuegel@mailbox.org> 3 - Date: Mon, 26 Oct 2020 21:21:38 +0100 4 - Subject: [PATCH 18/19] logind-seat-debus: show CanMultiSession again 5 - 6 - Fixes the "switch user" function in Plasma < 5.20. 7 - --- 8 - src/login/logind-seat-dbus.c | 2 +- 9 - 1 file changed, 1 insertion(+), 1 deletion(-) 10 - 11 - diff --git a/src/login/logind-seat-dbus.c b/src/login/logind-seat-dbus.c 12 - index cceb3b1d2d..94b4723bb9 100644 13 - --- a/src/login/logind-seat-dbus.c 14 - +++ b/src/login/logind-seat-dbus.c 15 - @@ -419,7 +419,7 @@ static const sd_bus_vtable seat_vtable[] = { 16 - 17 - SD_BUS_PROPERTY("Id", "s", NULL, offsetof(Seat, id), SD_BUS_VTABLE_PROPERTY_CONST), 18 - SD_BUS_PROPERTY("ActiveSession", "(so)", property_get_active_session, 0, SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE), 19 - - SD_BUS_PROPERTY("CanMultiSession", "b", property_get_const_true, 0, SD_BUS_VTABLE_PROPERTY_CONST|SD_BUS_VTABLE_HIDDEN), 20 - + SD_BUS_PROPERTY("CanMultiSession", "b", property_get_const_true, 0, SD_BUS_VTABLE_PROPERTY_CONST), 21 - SD_BUS_PROPERTY("CanTTY", "b", property_get_can_tty, 0, SD_BUS_VTABLE_PROPERTY_CONST), 22 - SD_BUS_PROPERTY("CanGraphical", "b", property_get_can_graphical, 0, SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE), 23 - SD_BUS_PROPERTY("Sessions", "a(so)", property_get_sessions, 0, 0), 24 - -- 25 - 2.32.0 26 -
+4 -4
pkgs/os-specific/linux/systemd/0019-pkg-config-derive-prefix-from-prefix.patch pkgs/os-specific/linux/systemd/0018-pkg-config-derive-prefix-from-prefix.patch
··· 1 - From 2e7477dc29095141a0556ded11f0ee370d82bfbb Mon Sep 17 00:00:00 2001 1 + From 777d61550f95b1dcf253e1d2132f9db7010a18f3 Mon Sep 17 00:00:00 2001 2 2 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io> 3 3 Date: Sun, 6 Dec 2020 08:34:19 +0100 4 - Subject: [PATCH 19/19] pkg-config: derive prefix from --prefix 4 + Subject: [PATCH 18/19] pkg-config: derive prefix from --prefix 5 5 6 6 Point prefix to the one configured, instead of `/usr` `systemd` has limited 7 7 support for making the pkgconfig prefix overridable, and interpolates those ··· 16 16 1 file changed, 1 insertion(+), 1 deletion(-) 17 17 18 18 diff --git a/src/core/systemd.pc.in b/src/core/systemd.pc.in 19 - index ded74ce50a..0262f53154 100644 19 + index 162432e77f..2fc20daf03 100644 20 20 --- a/src/core/systemd.pc.in 21 21 +++ b/src/core/systemd.pc.in 22 22 @@ -11,7 +11,7 @@ ··· 29 29 rootprefix=${root_prefix} 30 30 sysconf_dir={{SYSCONF_DIR}} 31 31 -- 32 - 2.32.0 32 + 2.33.0 33 33
-31
pkgs/os-specific/linux/systemd/0020-core-respect-install_sysconfdir_samples-in-meson-fil.patch
··· 1 - From 1a2d24d210c9329e8b900fdb01576c57374581d8 Mon Sep 17 00:00:00 2001 2 - From: Andreas Rammhold <andreas@rammhold.de> 3 - Date: Mon, 26 Jul 2021 16:57:43 +0200 4 - Subject: [PATCH 20/20] core: respect install_sysconfdir_samples in meson file 5 - 6 - The refactoring done in e11a25cadbe caused the configuration files to be 7 - installed into the pkgsysconfdir regardless of the state of the 8 - install_sysconfdir_samples boolean that indicated whether or not the 9 - sample files should be installed. 10 - --- 11 - src/core/meson.build | 4 ++++ 12 - 1 file changed, 4 insertions(+) 13 - 14 - diff --git a/src/core/meson.build b/src/core/meson.build 15 - index f0d2c6f642..4ff7e00e36 100644 16 - --- a/src/core/meson.build 17 - +++ b/src/core/meson.build 18 - @@ -187,6 +187,10 @@ foreach item : in_files 19 - file = item[0] 20 - dir = item[1] 21 - 22 - + if not install_sysconfdir_samples and dir == pkgsysconfdir 23 - + continue 24 - + endif 25 - + 26 - custom_target( 27 - file, 28 - input : file + '.in', 29 - -- 30 - 2.32.0 31 -
-29
pkgs/os-specific/linux/systemd/0021-login-respect-install_sysconfdir_samples-in-meson-fi.patch
··· 1 - From 189ba3af8b21cfc53527453907e800a2917b1bfd Mon Sep 17 00:00:00 2001 2 - From: Andreas Rammhold <andreas@rammhold.de> 3 - Date: Mon, 26 Jul 2021 17:20:34 +0200 4 - Subject: [PATCH] login: respect install_sysconfdir_samples in meson file 5 - 6 - The refactoring done in c900d89faa0 caused the configuration files to be 7 - installed into the pkgsysconfdir regardless of the state of the 8 - install_sysconfdir_samples boolean that indicates whether or not the 9 - sample files should be installed. 10 - --- 11 - src/login/meson.build | 2 +- 12 - 1 file changed, 1 insertion(+), 1 deletion(-) 13 - 14 - diff --git a/src/login/meson.build b/src/login/meson.build 15 - index 8c20e6be65..b637adc9a2 100644 16 - --- a/src/login/meson.build 17 - +++ b/src/login/meson.build 18 - @@ -67,7 +67,7 @@ pam_systemd_c = files('pam_systemd.c') 19 - 20 - enable_logind = conf.get('ENABLE_LOGIND') == 1 21 - in_files = [ 22 - - ['logind.conf', pkgsysconfdir, enable_logind], 23 - + ['logind.conf', pkgsysconfdir, enable_logind and install_sysconfdir_samples], 24 - ['70-uaccess.rules', udevrulesdir, enable_logind and conf.get('HAVE_ACL') == 1], 25 - ['71-seat.rules', udevrulesdir, enable_logind], 26 - ['73-seat-late.rules', udevrulesdir, enable_logind], 27 - -- 28 - 2.32.0 29 -
+4 -4
pkgs/os-specific/linux/systemd/0022-core-Handle-lookup-paths-being-symlinks.patch pkgs/os-specific/linux/systemd/0019-core-handle-lookup-paths-being-symlinks.patch
··· 1 - From 5f17b65d30480e489e135b403a072b38535b2911 Mon Sep 17 00:00:00 2001 1 + From 273e706ff561f2164b84c714148346ac92dd8846 Mon Sep 17 00:00:00 2001 2 2 From: Andreas Rammhold <andreas@rammhold.de> 3 3 Date: Wed, 18 Aug 2021 19:10:08 +0200 4 - Subject: [PATCH] core: handle lookup paths being symlinks 4 + Subject: [PATCH 19/19] core: handle lookup paths being symlinks 5 5 6 6 With a recent change paths leaving the statically known lookup paths 7 7 would be treated differently then those that remained within those. That ··· 15 15 1 file changed, 31 insertions(+), 2 deletions(-) 16 16 17 17 diff --git a/src/basic/unit-file.c b/src/basic/unit-file.c 18 - index 884a0674a9..3ae2a115d0 100644 18 + index 0d58b1c4fe..7314f1245f 100644 19 19 --- a/src/basic/unit-file.c 20 20 +++ b/src/basic/unit-file.c 21 21 @@ -254,6 +254,7 @@ int unit_file_build_name_map( ··· 76 76 log_debug("%s: linked unit file: %s → %s", 77 77 __func__, filename, simplified); 78 78 -- 79 - 2.32.0 79 + 2.33.0 80 80
-29
pkgs/os-specific/linux/systemd/0023-path-util-make-find_executable-work-without-proc-mounted.patch
··· 1 - From 93413acd3ef3a637a0f31a1d133b103e1dc81fd6 Mon Sep 17 00:00:00 2001 2 - From: Yu Watanabe <watanabe.yu+github@gmail.com> 3 - Date: Mon, 23 Aug 2021 06:16:48 +0900 4 - Subject: [PATCH] path-util: make find_executable() work without /proc mounted 5 - 6 - Follow-up for 888f65ace6296ed61285d31db846babf1c11885e. 7 - 8 - Hopefully fixes #20514. 9 - --- 10 - src/basic/path-util.c | 6 +++++- 11 - 1 file changed, 5 insertions(+), 1 deletion(-) 12 - 13 - diff --git a/src/basic/path-util.c b/src/basic/path-util.c 14 - index d11f254a9f6a..a21981616b59 100644 15 - --- a/src/basic/path-util.c 16 - +++ b/src/basic/path-util.c 17 - @@ -630,7 +630,11 @@ static int check_x_access(const char *path, int *ret_fd) { 18 - return r; 19 - 20 - r = access_fd(fd, X_OK); 21 - - if (r < 0) 22 - + if (r == -ENOSYS) { 23 - + /* /proc is not mounted. Fallback to access(). */ 24 - + if (access(path, X_OK) < 0) 25 - + return -errno; 26 - + } else if (r < 0) 27 - return r; 28 - 29 - if (ret_fd)
+60 -32
pkgs/os-specific/linux/systemd/default.nix
··· 4 4 , lib 5 5 , fetchFromGitHub 6 6 , fetchpatch 7 + , fetchzip 7 8 , buildPackages 8 9 , ninja 9 10 , meson ··· 75 76 , withHomed ? false 76 77 , withHostnamed ? true 77 78 , withHwdb ? true 78 - , withImportd ? true 79 + , withImportd ? !stdenv.hostPlatform.isMusl 79 80 , withLibBPF ? false # currently fails while generating BPF objects 80 81 , withLocaled ? true 81 82 , withLogind ? true 82 83 , withMachined ? true 83 84 , withNetworkd ? true 84 - , withNss ? true 85 + , withNss ? !stdenv.hostPlatform.isMusl 85 86 , withOomd ? false 86 87 , withPCRE2 ? true 87 88 , withPolkit ? true 88 89 , withPortabled ? false 89 - , withRemote ? true 90 + , withRemote ? !stdenv.hostPlatform.isMusl 90 91 , withResolved ? true 91 92 , withShellCompletions ? true 92 93 , withTimedated ? true 93 94 , withTimesyncd ? true 94 - , withTpm2Tss ? true 95 - , withUserDb ? true 95 + , withTpm2Tss ? !stdenv.hostPlatform.isMusl 96 + , withUserDb ? !stdenv.hostPlatform.isMusl 96 97 , libfido2 97 98 , p11-kit 98 99 ··· 119 120 assert withCryptsetup -> (cryptsetup != null); 120 121 let 121 122 wantCurl = withRemote || withImportd; 122 - version = "249.4"; 123 + version = "249.5"; 123 124 in 124 125 stdenv.mkDerivation { 125 126 inherit pname version; ··· 130 131 owner = "systemd"; 131 132 repo = "systemd-stable"; 132 133 rev = "v${version}"; 133 - sha256 = "0pqi9gbk9kgwvd0idf13ybxz7s4h5przn01bwj6fna44jr0wy41c"; 134 + sha256 = "0bir2syy20rdi59sv8xp8nw1c92zl9z0wmv7ggsll8dca7niqwbp"; 134 135 }; 135 136 136 137 # If these need to be regenerated, `git am path/to/00*.patch` them into a ··· 155 156 ./0015-systemd-sleep-execute-scripts-in-etc-systemd-system-.patch 156 157 ./0016-kmod-static-nodes.service-Update-ConditionFileNotEmp.patch 157 158 ./0017-path-util.h-add-placeholder-for-DEFAULT_PATH_NORMAL.patch 158 - ./0018-logind-seat-debus-show-CanMultiSession-again.patch 159 - ./0019-pkg-config-derive-prefix-from-prefix.patch 160 - 161 - # In v249 a bunch of meson files had been touched as part of the migration to 162 - # jinja2 for templating. Unfortunately some of those files lost the `install_sysconfdir_samples` check. 163 - # The following two patches are part of a PR that was filed to fix those cases. 164 - # https://github.com/systemd/systemd/pull/20303 165 - ./0020-core-respect-install_sysconfdir_samples-in-meson-fil.patch 166 - ./0021-login-respect-install_sysconfdir_samples-in-meson-fi.patch 159 + ./0018-pkg-config-derive-prefix-from-prefix.patch 167 160 168 - # In v248 or v249 we started to get in trouble due to our /etc/systemd/sytem being 169 - # a symlink and thus being treated differently by systemd. With the below 170 - # patch we mitigate that effect by special casing all our root unit dirs 171 - # if they are symlinks. This does exactly what we need (AFAICT). 172 - ./0022-core-Handle-lookup-paths-being-symlinks.patch 161 + # In v248 or v249 we started to get in trouble due to our 162 + # /etc/systemd/system being a symlink and thus being treated differently by 163 + # systemd. With the below patch we mitigate that effect by special casing 164 + # all our root unit dirs if they are symlinks. This does exactly what we 165 + # need (AFAICT). 166 + ./0019-core-handle-lookup-paths-being-symlinks.patch 167 + ] ++ lib.optional stdenv.hostPlatform.isMusl (let 168 + oe-core = fetchzip { 169 + url = "https://git.openembedded.org/openembedded-core/snapshot/openembedded-core-14c6e5a4b72d0e4665279158a0740dd1dc21f72f.tar.bz2"; 170 + sha256 = "1jixya4czkr5p5rdcw3d6ips8zzr82dvnanvzvgjh67730scflya"; 171 + }; 172 + musl-patches = oe-core + "/meta/recipes-core/systemd/systemd"; 173 + in [ 174 + (musl-patches + "/0002-don-t-use-glibc-specific-qsort_r.patch") 175 + (musl-patches + "/0003-missing_type.h-add-__compare_fn_t-and-comparison_fn_.patch") 176 + (musl-patches + "/0004-add-fallback-parse_printf_format-implementation.patch") 177 + (musl-patches + "/0005-src-basic-missing.h-check-for-missing-strndupa.patch") 178 + (musl-patches + "/0006-Include-netinet-if_ether.h.patch") 179 + (musl-patches + "/0007-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch") 180 + (musl-patches + "/0008-add-missing-FTW_-macros-for-musl.patch") 181 + (musl-patches + "/0009-fix-missing-of-__register_atfork-for-non-glibc-build.patch") 182 + (musl-patches + "/0010-Use-uintmax_t-for-handling-rlim_t.patch") 183 + (musl-patches + "/0011-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch") 184 + (musl-patches + "/0012-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch") 185 + (musl-patches + "/0013-Define-glibc-compatible-basename-for-non-glibc-syste.patch") 186 + (musl-patches + "/0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch") 187 + (musl-patches + "/0015-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch") 188 + (musl-patches + "/0016-Hide-__start_BUS_ERROR_MAP-and-__stop_BUS_ERROR_MAP.patch") 189 + (musl-patches + "/0017-missing_type.h-add-__compar_d_fn_t-definition.patch") 190 + (musl-patches + "/0018-avoid-redefinition-of-prctl_mm_map-structure.patch") 191 + (musl-patches + "/0019-Handle-missing-LOCK_EX.patch") 192 + (musl-patches + "/0021-test-json.c-define-M_PIl.patch") 193 + (musl-patches + "/0022-do-not-disable-buffer-in-writing-files.patch") 194 + (musl-patches + "/0025-Handle-__cpu_mask-usage.patch") 195 + (musl-patches + "/0026-Handle-missing-gshadow.patch") 196 + (musl-patches + "/0028-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch") 173 197 174 - # The way files are being tested for being executable changed in v248/v249 175 - # which caused our confinement setup to fail as we do not mount /proc by 176 - # default. 177 - # The issue has been reported upstream and this patch carries the upstream 178 - # fix for the same. Upstream now has a test for this scenario. 179 - # https://github.com/systemd/systemd/issues/20514 180 - ./0023-path-util-make-find_executable-work-without-proc-mounted.patch 181 - ]; 198 + # Being discussed upstream: https://lists.openembedded.org/g/openembedded-core/topic/86411771#157056 199 + ./musl.diff 200 + ]); 182 201 183 202 postPatch = '' 184 203 substituteInPlace src/basic/path-util.h --replace "@defaultPathNormal@" "${placeholder "out"}/bin/" ··· 458 477 "-Dnss-systemd=false" 459 478 ] ++ lib.optionals withLibBPF [ 460 479 "-Dbpf-framework=true" 461 - ] ++ lib.optional withTpm2Tss "-Dtpm2=true"; 480 + ] ++ lib.optionals withTpm2Tss [ 481 + "-Dtpm2=true" 482 + ] ++ lib.optionals stdenv.hostPlatform.isMusl [ 483 + "-Dgshadow=false" 484 + "-Dutmp=false" 485 + "-Didn=false" 486 + ]; 462 487 463 488 preConfigure = '' 464 489 mesonFlagsArray+=(-Dntp-servers="0.nixos.pool.ntp.org 1.nixos.pool.ntp.org 2.nixos.pool.ntp.org 3.nixos.pool.ntp.org") ··· 520 545 --replace "SYSTEMD_CGROUP_AGENT_PATH" "_SYSTEMD_CGROUP_AGENT_PATH" 521 546 ''; 522 547 523 - NIX_CFLAGS_COMPILE = toString [ 548 + NIX_CFLAGS_COMPILE = toString ([ 524 549 # Can't say ${polkit.bin}/bin/pkttyagent here because that would 525 550 # lead to a cyclic dependency. 526 551 "-UPOLKIT_AGENT_BINARY_PATH" ··· 534 559 535 560 "-USYSTEMD_BINARY_PATH" 536 561 "-DSYSTEMD_BINARY_PATH=\"/run/current-system/systemd/lib/systemd/systemd\"" 537 - ]; 562 + 563 + ] ++ lib.optionals stdenv.hostPlatform.isMusl [ 564 + "-D__UAPI_DEF_ETHHDR=0" 565 + ]); 538 566 539 567 doCheck = false; # fails a bunch of tests 540 568
+12
pkgs/os-specific/linux/systemd/musl.diff
··· 1 + diff --git a/src/shared/mount-setup.c b/src/shared/mount-setup.c 2 + index ef3527e..cc1ba23 100644 3 + --- a/src/shared/mount-setup.c 4 + +++ b/src/shared/mount-setup.c 5 + @@ -32,6 +32,7 @@ 6 + #include "strv.h" 7 + #include "user-util.h" 8 + #include "virt.h" 9 + +#include "missing_type.h" 10 + 11 + typedef enum MountMode { 12 + MNT_NONE = 0,
+1 -1
pkgs/servers/home-assistant/default.nix
··· 205 205 pytz 206 206 pyyaml 207 207 requests 208 - ruamel_yaml 208 + ruamel-yaml 209 209 voluptuous 210 210 voluptuous-serialize 211 211 yarl
+2 -2
pkgs/servers/jicofo/default.nix
··· 2 2 3 3 let 4 4 pname = "jicofo"; 5 - version = "1.0-798"; 5 + version = "1.0-813"; 6 6 src = fetchurl { 7 7 url = "https://download.jitsi.org/stable/${pname}_${version}-1_all.deb"; 8 - sha256 = "55JagMfiBbBw0nqRxcMmfiwGF7B/1LA+pb5n6ZOZvag="; 8 + sha256 = "MVlGD2l0e1a2AtYPU1fkBoEfdPhjf2nOehAcacQl4Jk="; 9 9 }; 10 10 in 11 11 stdenv.mkDerivation {
+1 -1
pkgs/servers/mautrix-facebook/default.nix
··· 27 27 pycryptodome 28 28 python-olm 29 29 python_magic 30 - ruamel_yaml 30 + ruamel-yaml 31 31 unpaddedbase64 32 32 yarl 33 33 ] ++ lib.optional enableSystemd systemd;
+1 -1
pkgs/servers/mautrix-signal/default.nix
··· 24 24 python-olm 25 25 python_magic 26 26 qrcode 27 - ruamel_yaml 27 + ruamel-yaml 28 28 unpaddedbase64 29 29 yarl 30 30 ];
+1 -1
pkgs/servers/mautrix-telegram/default.nix
··· 47 47 mautrix 48 48 sqlalchemy 49 49 CommonMark 50 - ruamel_yaml 50 + ruamel-yaml 51 51 python_magic 52 52 telethon 53 53 telethon-session-sqlalchemy
+1 -1
pkgs/servers/nosql/redis/default.nix
··· 1 1 { lib, stdenv, fetchurl, lua, pkg-config, nixosTests 2 - , withSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isMusl, systemd 2 + , withSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isStatic, systemd 3 3 # dependency ordering is broken at the moment when building with openssl 4 4 , tlsSupport ? !stdenv.hostPlatform.isStatic, openssl 5 5 }:
+6 -6
pkgs/servers/x11/xorg/default.nix
··· 1032 1032 # THIS IS A GENERATED FILE. DO NOT EDIT! 1033 1033 libXi = callPackage ({ stdenv, pkg-config, fetchurl, xorgproto, libX11, libXext, libXfixes }: stdenv.mkDerivation { 1034 1034 pname = "libXi"; 1035 - version = "1.7.10"; 1035 + version = "1.8"; 1036 1036 builder = ./builder.sh; 1037 1037 src = fetchurl { 1038 - url = "mirror://xorg/individual/lib/libXi-1.7.10.tar.bz2"; 1039 - sha256 = "0q8hz3slga3w3ch8wp0k7ay9ilhz315qnab0w1y2x9w3cf7hv8rn"; 1038 + url = "mirror://xorg/individual/lib/libXi-1.8.tar.bz2"; 1039 + sha256 = "005sicls6faddkcj449858i9xz1nafy70y26frsk7iv1d9283l9f"; 1040 1040 }; 1041 1041 hardeningDisable = [ "bindnow" "relro" ]; 1042 1042 nativeBuildInputs = [ pkg-config ]; ··· 1977 1977 # THIS IS A GENERATED FILE. DO NOT EDIT! 1978 1978 xf86inputlibinput = callPackage ({ stdenv, pkg-config, fetchurl, xorgproto, libinput, xorgserver }: stdenv.mkDerivation { 1979 1979 pname = "xf86-input-libinput"; 1980 - version = "1.1.0"; 1980 + version = "1.2.0"; 1981 1981 builder = ./builder.sh; 1982 1982 src = fetchurl { 1983 - url = "mirror://xorg/individual/driver/xf86-input-libinput-1.1.0.tar.bz2"; 1984 - sha256 = "05ldqr10f2rrnshyk3lc773rz0gp3ccdzwa8n7lsc94i850jl7g1"; 1983 + url = "mirror://xorg/individual/driver/xf86-input-libinput-1.2.0.tar.bz2"; 1984 + sha256 = "1xk9b05csndcgcj8kbb6fkwa3c7njzzxc6qvz9bvy77y2k2s63gq"; 1985 1985 }; 1986 1986 hardeningDisable = [ "bindnow" "relro" ]; 1987 1987 nativeBuildInputs = [ pkg-config ];
+2 -2
pkgs/servers/x11/xorg/tarballs.list
··· 81 81 mirror://xorg/individual/driver/xf86-input-evdev-2.10.6.tar.bz2 82 82 mirror://xorg/individual/driver/xf86-input-joystick-1.6.3.tar.bz2 83 83 mirror://xorg/individual/driver/xf86-input-keyboard-1.9.0.tar.bz2 84 - mirror://xorg/individual/driver/xf86-input-libinput-1.1.0.tar.bz2 84 + mirror://xorg/individual/driver/xf86-input-libinput-1.2.0.tar.bz2 85 85 mirror://xorg/individual/driver/xf86-input-mouse-1.9.3.tar.bz2 86 86 mirror://xorg/individual/driver/xf86-input-synaptics-1.9.1.tar.bz2 87 87 mirror://xorg/individual/driver/xf86-input-vmmouse-13.1.0.tar.bz2 ··· 189 189 mirror://xorg/individual/lib/libXfont-1.5.4.tar.bz2 190 190 mirror://xorg/individual/lib/libXfont2-2.0.5.tar.bz2 191 191 mirror://xorg/individual/lib/libXft-2.3.4.tar.bz2 192 - mirror://xorg/individual/lib/libXi-1.7.10.tar.bz2 192 + mirror://xorg/individual/lib/libXi-1.8.tar.bz2 193 193 mirror://xorg/individual/lib/libXinerama-1.1.4.tar.bz2 194 194 mirror://xorg/individual/lib/libxkbfile-1.1.0.tar.bz2 195 195 mirror://xorg/individual/lib/libXmu-1.1.3.tar.bz2
+2 -2
pkgs/stdenv/generic/setup.sh
··· 859 859 case "$fn" in 860 860 *.tar.xz | *.tar.lzma | *.txz) 861 861 # Don't rely on tar knowing about .xz. 862 - xz -d < "$fn" | tar xf - 862 + xz -d < "$fn" | tar xf - --warning=no-timestamp 863 863 ;; 864 864 *.tar | *.tar.* | *.tgz | *.tbz2 | *.tbz) 865 865 # GNU tar can automatically select the decompression method 866 866 # (info "(tar) gzip"). 867 - tar xf "$fn" 867 + tar xf "$fn" --warning=no-timestamp 868 868 ;; 869 869 *) 870 870 return 1
+1 -1
pkgs/tools/admin/awscli2/default.nix
··· 75 75 prompt-toolkit 76 76 pyyaml 77 77 rsa 78 - ruamel_yaml 78 + ruamel-yaml 79 79 s3transfer 80 80 six 81 81 wcwidth
+1 -1
pkgs/tools/backup/borgmatic/default.nix
··· 21 21 borgbackup 22 22 colorama 23 23 jsonschema 24 - ruamel_yaml 24 + ruamel-yaml 25 25 requests 26 26 setuptools 27 27 ];
+2 -2
pkgs/tools/filesystems/e2fsprogs/default.nix
··· 4 4 5 5 stdenv.mkDerivation rec { 6 6 pname = "e2fsprogs"; 7 - version = "1.46.2"; 7 + version = "1.46.4"; 8 8 9 9 src = fetchurl { 10 10 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz"; 11 - sha256 = "sha256-958mtPZb3AWfyhLh7GowQMPOGlA/tw65Fb7nGQOBXNU="; 11 + sha256 = "0ra2d1wasksy1zy3rgviwdni40dnamchisjrrqqi940y545m493m"; 12 12 }; 13 13 14 14 outputs = [ "bin" "dev" "out" "man" "info" ];
+3 -3
pkgs/tools/filesystems/xfsprogs/default.nix
··· 1 - { lib, stdenv, buildPackages, fetchpatch, fetchurl, autoconf, automake, gettext, libtool, pkg-config 1 + { lib, stdenv, buildPackages, fetchurl, autoconf, automake, gettext, libtool, pkg-config 2 2 , icu, libuuid, readline, inih 3 3 }: 4 4 5 5 stdenv.mkDerivation rec { 6 6 pname = "xfsprogs"; 7 - version = "5.11.0"; 7 + version = "5.13.0"; 8 8 9 9 src = fetchurl { 10 10 url = "mirror://kernel/linux/utils/fs/xfs/xfsprogs/${pname}-${version}.tar.xz"; 11 - sha256 = "0lxks616nmdk8zkdbwpq5sf9zz19smgy5rpmp3hpk2mvrl7kk70f"; 11 + sha256 = "sha256-ThQtS6vghq35AW2MYGyAWCnaCORjiaRDP0A0YgT5DNs="; 12 12 }; 13 13 14 14 outputs = [ "bin" "dev" "out" "doc" ];
+4 -4
pkgs/tools/graphics/graphviz/default.nix
··· 1 1 import ./base.nix rec { 2 - rev = "887cd2207e6858ff2c0fe6e461dd309a435c8d5a"; # use rev as tags have disappeared before 3 - version = "2.47.3"; 4 - sha256 = "sha256-WUu3eAycG/oHTnT7HiZvf0B45I8miYolwRi9fHfA3uA="; 5 - } 2 + rev = "3425dae078262591d04fec107ec71ab010651852"; # use rev as tags have disappeared before 3 + version = "2.49.3"; 4 + sha256 = "1qvyjly7r1ihacdvxq0r59l4csr09sc05palpshzqsiz2wb1izk0"; 5 + }
+5
pkgs/tools/inputmethods/m17n-lib/default.nix
··· 15 15 16 16 buildInputs = [ m17n_db ]; 17 17 18 + # Fails parallel build due to missing intra-package depends: 19 + # https://savannah.nongnu.org/bugs/index.php?61377 20 + # make[2]: *** No rule to make target '../src/libm17n-core.la', needed by 'libm17n.la'. Stop. 21 + enableParallelBuilding = false; 22 + 18 23 meta = { 19 24 homepage = "https://www.nongnu.org/m17n/"; 20 25 description = "Multilingual text processing library (runtime)";
+1 -1
pkgs/tools/misc/bkyml/default.nix
··· 32 32 pythonImportsCheck = [ "bkyml" ]; 33 33 34 34 propagatedBuildInputs = [ 35 - ruamel_yaml 35 + ruamel-yaml 36 36 setuptools 37 37 ]; 38 38
+1 -3
pkgs/tools/misc/coreutils/default.nix
··· 121 121 # Prevents attempts of running 'help2man' on cross-built binaries. 122 122 PERL = if stdenv.hostPlatform == stdenv.buildPlatform then null else "missing"; 123 123 124 - # Saw random failures like ‘help2man: can't get '--help' info from 125 - # man/sha512sum.td/sha512sum’. 126 - enableParallelBuilding = false; 124 + enableParallelBuilding = true; 127 125 128 126 NIX_LDFLAGS = optionalString selinuxSupport "-lsepol"; 129 127 FORCE_UNSAFE_CONFIGURE = optionalString stdenv.hostPlatform.isSunOS "1";
+4 -12
pkgs/tools/misc/file/default.nix
··· 1 - { lib, stdenv, fetchurl, file, zlib, libgnurx, fetchpatch }: 1 + { lib, stdenv, fetchurl, file, zlib, libgnurx }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "file"; 5 - version = "5.40"; 5 + version = "5.41"; 6 6 7 7 src = fetchurl { 8 8 urls = [ 9 9 "ftp://ftp.astron.com/pub/file/${pname}-${version}.tar.gz" 10 10 "https://distfiles.macports.org/file/${pname}-${version}.tar.gz" 11 11 ]; 12 - sha256 = "0myxlpj9gy2diqavx33vq88kpvr1k1bpzsm0d0zmb2hl7ks22wqn"; 12 + sha256 = "sha256-E+Uyx7Nk99V+I9/uoxRxAxUMuQWTpXr4bBDk9uQRYD8="; 13 13 }; 14 14 15 15 nativeBuildInputs = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) file; 16 16 buildInputs = [ zlib ] 17 17 ++ lib.optional stdenv.hostPlatform.isWindows libgnurx; 18 18 19 - patches = [ 20 - # Fix the mime type detection of xz file. Is merged in master. 21 - (fetchpatch { 22 - url = "https://github.com/file/file/commit/9b0459afab309a82aa4e46f73a4e50dd641f3d39.patch"; 23 - sha256 = "sha256-6vjyIn5gVbgmhUlfXJKFRVltm8YKATKmh0/X6+2lLnM="; 24 - }) 25 - ]; 26 - 27 19 doCheck = true; 28 20 29 21 makeFlags = lib.optional stdenv.hostPlatform.isWindows "FILE_COMPILE=file"; ··· 31 23 meta = with lib; { 32 24 homepage = "https://darwinsys.com/file"; 33 25 description = "A program that shows the type of files"; 34 - maintainers = with maintainers; [ ]; 26 + maintainers = with maintainers; [ doronbehar ]; 35 27 license = licenses.bsd2; 36 28 platforms = platforms.all; 37 29 };
+1 -1
pkgs/tools/misc/ntfy/default.nix
··· 16 16 ]; 17 17 18 18 propagatedBuildInputs = with python3Packages; [ 19 - requests ruamel_yaml appdirs 19 + requests ruamel-yaml appdirs 20 20 sleekxmpp dnspython 21 21 emoji 22 22 psutil
+3 -3
pkgs/tools/misc/starship/default.nix
··· 11 11 12 12 rustPlatform.buildRustPackage rec { 13 13 pname = "starship"; 14 - version = "0.58.0"; 14 + version = "1.0.0"; 15 15 16 16 src = fetchFromGitHub { 17 17 owner = "starship"; 18 18 repo = pname; 19 19 rev = "v${version}"; 20 - sha256 = "sha256-s84fIpCyTF7FrJZGATjIJHt/+aknlhlz1V9s+c4f+Ig="; 20 + sha256 = "sha256-KU9IbvQ6qPbSoHVRN/g7iETV47Y4wMMESzpRHMQ0Uxw="; 21 21 }; 22 22 23 23 nativeBuildInputs = [ installShellFiles ] ++ lib.optionals stdenv.isLinux [ pkg-config ]; ··· 32 32 done 33 33 ''; 34 34 35 - cargoSha256 = "sha256-5YOF0nXn4rdp3uxatzdvaqdAbLlHK6nq5H4+ZX/7joM="; 35 + cargoSha256 = "sha256-IzTRvvQ1uHS2WY2Cf8VQOq423PjwXYNW4bub0ZyvTIE="; 36 36 37 37 preCheck = '' 38 38 HOME=$TMPDIR
+8 -4
pkgs/tools/misc/synth/default.nix
··· 4 4 , pkg-config 5 5 , openssl 6 6 , stdenv 7 + , AppKit 7 8 , Security 8 9 }: 9 10 10 11 rustPlatform.buildRustPackage rec { 11 12 pname = "synth"; 12 - version = "0.6.0"; 13 + version = "0.6.1"; 13 14 14 15 src = fetchFromGitHub { 15 16 owner = "getsynth"; 16 17 repo = pname; 17 18 rev = "v${version}"; 18 - sha256 = "sha256-i5X2HUOCgY2znH4rDzhFpsPXsFeM7GR4soAO/rFDjjo="; 19 + sha256 = "sha256-VsvGrlFmn8Q7dhvo3Buy8G0oeNErtBT4lZ8k8WFC8Zo="; 19 20 }; 20 21 21 - cargoSha256 = "sha256-47i46Y6JjTGWC7mfMd2x2k8v0SY1o2UHdEU4rF0VrsY="; 22 + cargoSha256 = "sha256-10b2n7wMuBt90GZ6AVnSMT7r2501tounw13eJhyrmS4="; 22 23 23 24 nativeBuildInputs = [ pkg-config ]; 24 25 25 - buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security; 26 + buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ 27 + AppKit 28 + Security 29 + ]; 26 30 27 31 # requires unstable rust features 28 32 RUSTC_BOOTSTRAP = 1;
+3 -3
pkgs/tools/misc/zellij/default.nix
··· 10 10 11 11 rustPlatform.buildRustPackage rec { 12 12 pname = "zellij"; 13 - version = "0.19.0"; 13 + version = "0.20.1"; 14 14 15 15 src = fetchFromGitHub { 16 16 owner = "zellij-org"; 17 17 repo = "zellij"; 18 18 rev = "v${version}"; 19 - sha256 = "sha256-/1ngmthzWp9K7pBBOBiSMUv0yC66K3Tg2g2PoBskpTU="; 19 + sha256 = "sha256-VeFKUNAOhNvNAqIp4yg0dulIVC6vCvD3ClYjMg1vM1g="; 20 20 }; 21 21 22 - cargoSha256 = "sha256-eFWsqjXO6QFTO26ppZ4tiJXc/PEYD+5ZdbTBMoDoLFI="; 22 + cargoSha256 = "sha256-qZjyl+irC5Cj3tpUs97jLxs1UB+7E1xZKbnF3TPFhKE="; 23 23 24 24 nativeBuildInputs = [ 25 25 installShellFiles
+52
pkgs/tools/networking/curl/7.79.1-darwin-no-systemconfiguration.patch
··· 1 + On darwin, providing SystemConfiguration to curl currently results in a 2 + reference loop, so we have to disable the check for it and the feature 3 + which requires it (NAT64). 4 + 5 + Patching actual configure script here as we also don't want to require 6 + autoconf in the bootstrap loop just to regenerate a patched configure.ac. 7 + 8 + --- a/configure 2021-10-16 00:51:59.000000000 +0100 9 + +++ b/configure 2021-10-16 01:06:46.000000000 +0100 10 + @@ -20810,7 +20810,7 @@ 11 + if test "x$build_for_macos" != xno; then 12 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13 + printf "%s\n" "yes" >&6; } 14 + - LDFLAGS="$LDFLAGS -framework CoreFoundation -framework SystemConfiguration" 15 + + LDFLAGS="$LDFLAGS -framework CoreFoundation" 16 + else 17 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18 + printf "%s\n" "no" >&6; } 19 + @@ -22211,9 +22211,6 @@ 20 + fi 21 + 22 + 23 + -if test "$HAVE_GETHOSTBYNAME" != "1"; then 24 + - as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5 25 + -fi 26 + 27 + 28 + curl_includes_winsock2="\ 29 + diff --git a/lib/curl_setup.h b/lib/curl_setup.h 30 + index 99048c489..19abfbbac 100644 31 + --- a/lib/curl_setup.h 32 + +++ b/lib/curl_setup.h 33 + @@ -247,19 +247,6 @@ 34 + # include "setup-win32.h" 35 + #endif 36 + 37 + -/* 38 + - * Use getaddrinfo to resolve the IPv4 address literal. If the current network 39 + - * interface doesn't support IPv4, but supports IPv6, NAT64, and DNS64, 40 + - * performing this task will result in a synthesized IPv6 address. 41 + - */ 42 + -#if defined(__APPLE__) && !defined(USE_ARES) 43 + -#include <TargetConditionals.h> 44 + -#define USE_RESOLVE_ON_IPS 1 45 + -# if defined(TARGET_OS_OSX) && TARGET_OS_OSX 46 + -# define CURL_OSX_CALL_COPYPROXIES 1 47 + -# endif 48 + -#endif 49 + - 50 + #ifdef USE_LWIPSOCK 51 + # include <lwip/init.h> 52 + # include <lwip/sockets.h>
-64
pkgs/tools/networking/curl/CVE-2021-22897.patch
··· 1 - From bbb71507b7bab52002f9b1e0880bed6a32834511 Mon Sep 17 00:00:00 2001 2 - From: Daniel Stenberg <daniel@haxx.se> 3 - Date: Fri, 23 Apr 2021 10:54:10 +0200 4 - Subject: [PATCH] schannel: don't use static to store selected ciphers 5 - 6 - CVE-2021-22897 7 - 8 - Bug: https://curl.se/docs/CVE-2021-22897.html 9 - --- 10 - lib/vtls/schannel.c | 9 +++++---- 11 - lib/vtls/schannel.h | 3 +++ 12 - 2 files changed, 8 insertions(+), 4 deletions(-) 13 - 14 - diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c 15 - index 8c25ac5dd5a5..dba7072273a9 100644 16 - --- a/lib/vtls/schannel.c 17 - +++ b/lib/vtls/schannel.c 18 - @@ -328,12 +328,12 @@ get_alg_id_by_name(char *name) 19 - } 20 - 21 - static CURLcode 22 - -set_ssl_ciphers(SCHANNEL_CRED *schannel_cred, char *ciphers) 23 - +set_ssl_ciphers(SCHANNEL_CRED *schannel_cred, char *ciphers, 24 - + int *algIds) 25 - { 26 - char *startCur = ciphers; 27 - int algCount = 0; 28 - - static ALG_ID algIds[45]; /*There are 45 listed in the MS headers*/ 29 - - while(startCur && (0 != *startCur) && (algCount < 45)) { 30 - + while(startCur && (0 != *startCur) && (algCount < NUMOF_CIPHERS)) { 31 - long alg = strtol(startCur, 0, 0); 32 - if(!alg) 33 - alg = get_alg_id_by_name(startCur); 34 - @@ -593,7 +593,8 @@ schannel_connect_step1(struct Curl_easy *data, struct connectdata *conn, 35 - } 36 - 37 - if(SSL_CONN_CONFIG(cipher_list)) { 38 - - result = set_ssl_ciphers(&schannel_cred, SSL_CONN_CONFIG(cipher_list)); 39 - + result = set_ssl_ciphers(&schannel_cred, SSL_CONN_CONFIG(cipher_list), 40 - + BACKEND->algIds); 41 - if(CURLE_OK != result) { 42 - failf(data, "Unable to set ciphers to passed via SSL_CONN_CONFIG"); 43 - return result; 44 - diff --git a/lib/vtls/schannel.h b/lib/vtls/schannel.h 45 - index 2952caa1a5a1..77853aa30f96 100644 46 - --- a/lib/vtls/schannel.h 47 - +++ b/lib/vtls/schannel.h 48 - @@ -71,6 +71,8 @@ CURLcode Curl_verify_certificate(struct Curl_easy *data, 49 - #endif 50 - #endif 51 - 52 - +#define NUMOF_CIPHERS 45 /* There are 45 listed in the MS headers */ 53 - + 54 - struct Curl_schannel_cred { 55 - CredHandle cred_handle; 56 - TimeStamp time_stamp; 57 - @@ -102,6 +104,7 @@ struct ssl_backend_data { 58 - #ifdef HAS_MANUAL_VERIFY_API 59 - bool use_manual_cred_validation; /* true if manual cred validation is used */ 60 - #endif 61 - + ALG_ID algIds[NUMOF_CIPHERS]; 62 - }; 63 - #endif /* EXPOSE_SCHANNEL_INTERNAL_STRUCTS */ 64 -
-25
pkgs/tools/networking/curl/CVE-2021-22898.patch
··· 1 - From 39ce47f219b09c380b81f89fe54ac586c8db6bde Mon Sep 17 00:00:00 2001 2 - From: Harry Sintonen <sintonen@iki.fi> 3 - Date: Fri, 7 May 2021 13:09:57 +0200 4 - Subject: [PATCH] telnet: check sscanf() for correct number of matches 5 - 6 - CVE-2021-22898 7 - 8 - Bug: https://curl.se/docs/CVE-2021-22898.html 9 - --- 10 - lib/telnet.c | 2 +- 11 - 1 file changed, 1 insertion(+), 1 deletion(-) 12 - 13 - diff --git a/lib/telnet.c b/lib/telnet.c 14 - index 26e0658ba9cc..fdd137fb0c04 100644 15 - --- a/lib/telnet.c 16 - +++ b/lib/telnet.c 17 - @@ -922,7 +922,7 @@ static void suboption(struct Curl_easy *data) 18 - size_t tmplen = (strlen(v->data) + 1); 19 - /* Add the variable only if it fits */ 20 - if(len + tmplen < (int)sizeof(temp)-6) { 21 - - if(sscanf(v->data, "%127[^,],%127s", varname, varval)) { 22 - + if(sscanf(v->data, "%127[^,],%127s", varname, varval) == 2) { 23 - msnprintf((char *)&temp[len], sizeof(temp) - len, 24 - "%c%s%c%s", CURL_NEW_ENV_VAR, varname, 25 - CURL_NEW_ENV_VALUE, varval);
-437
pkgs/tools/networking/curl/CVE-2021-22901.patch
··· 1 - Based on upstream 7f4a9a9b2a49547eae24d2e19bc5c346e9026479, modified by ris to 2 - apply without 0c55fbab45bedb761766109d41c3da49c4bc66c6 3 - 4 - diff --git a/lib/multi.c b/lib/multi.c 5 - index 54365f399e9b..1b3e261c682a 100644 6 - --- a/lib/multi.c 7 - +++ b/lib/multi.c 8 - @@ -878,8 +878,10 @@ bool Curl_multiplex_wanted(const struct Curl_multi *multi) 9 - void Curl_detach_connnection(struct Curl_easy *data) 10 - { 11 - struct connectdata *conn = data->conn; 12 - - if(conn) 13 - + if(conn) { 14 - Curl_llist_remove(&conn->easyq, &data->conn_queue, NULL); 15 - + Curl_ssl_detach_conn(data, conn); 16 - + } 17 - data->conn = NULL; 18 - } 19 - 20 - @@ -896,6 +898,7 @@ void Curl_attach_connnection(struct Curl_easy *data, 21 - data->conn = conn; 22 - Curl_llist_insert_next(&conn->easyq, conn->easyq.tail, data, 23 - &data->conn_queue); 24 - + Curl_ssl_associate_conn(data, conn); 25 - } 26 - 27 - static int waitconnect_getsock(struct connectdata *conn, 28 - diff --git a/lib/vtls/gskit.c b/lib/vtls/gskit.c 29 - index c648f624579b..ca953769d1ba 100644 30 - --- a/lib/vtls/gskit.c 31 - +++ b/lib/vtls/gskit.c 32 - @@ -1304,7 +1304,9 @@ const struct Curl_ssl Curl_ssl_gskit = { 33 - Curl_none_set_engine_default, /* set_engine_default */ 34 - Curl_none_engines_list, /* engines_list */ 35 - Curl_none_false_start, /* false_start */ 36 - - NULL /* sha256sum */ 37 - + NULL, /* sha256sum */ 38 - + NULL, /* associate_connection */ 39 - + NULL /* disassociate_connection */ 40 - }; 41 - 42 - #endif /* USE_GSKIT */ 43 - diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c 44 - index a10c0dbcca05..ecde5c44deeb 100644 45 - --- a/lib/vtls/gtls.c 46 - +++ b/lib/vtls/gtls.c 47 - @@ -1656,7 +1656,9 @@ const struct Curl_ssl Curl_ssl_gnutls = { 48 - Curl_none_set_engine_default, /* set_engine_default */ 49 - Curl_none_engines_list, /* engines_list */ 50 - Curl_none_false_start, /* false_start */ 51 - - gtls_sha256sum /* sha256sum */ 52 - + gtls_sha256sum, /* sha256sum */ 53 - + NULL, /* associate_connection */ 54 - + NULL /* disassociate_connection */ 55 - }; 56 - 57 - #endif /* USE_GNUTLS */ 58 - diff --git a/lib/vtls/mbedtls.c b/lib/vtls/mbedtls.c 59 - index ca77de58667c..3a0be0f04b4f 100644 60 - --- a/lib/vtls/mbedtls.c 61 - +++ b/lib/vtls/mbedtls.c 62 - @@ -1093,7 +1093,9 @@ const struct Curl_ssl Curl_ssl_mbedtls = { 63 - Curl_none_set_engine_default, /* set_engine_default */ 64 - Curl_none_engines_list, /* engines_list */ 65 - Curl_none_false_start, /* false_start */ 66 - - mbedtls_sha256sum /* sha256sum */ 67 - + mbedtls_sha256sum, /* sha256sum */ 68 - + NULL, /* associate_connection */ 69 - + NULL /* disassociate_connection */ 70 - }; 71 - 72 - #endif /* USE_MBEDTLS */ 73 - diff --git a/lib/vtls/mesalink.c b/lib/vtls/mesalink.c 74 - index f16c77c27fe0..bf8600d3230b 100644 75 - --- a/lib/vtls/mesalink.c 76 - +++ b/lib/vtls/mesalink.c 77 - @@ -666,7 +666,9 @@ const struct Curl_ssl Curl_ssl_mesalink = { 78 - Curl_none_set_engine_default, /* set_engine_default */ 79 - Curl_none_engines_list, /* engines_list */ 80 - Curl_none_false_start, /* false_start */ 81 - - NULL /* sha256sum */ 82 - + NULL, /* sha256sum */ 83 - + NULL, /* associate_connection */ 84 - + NULL /* disassociate_connection */ 85 - }; 86 - 87 - #endif 88 - diff --git a/lib/vtls/nss.c b/lib/vtls/nss.c 89 - index 2aa4bdaa134f..1582b1e580a9 100644 90 - --- a/lib/vtls/nss.c 91 - +++ b/lib/vtls/nss.c 92 - @@ -2465,7 +2465,9 @@ const struct Curl_ssl Curl_ssl_nss = { 93 - Curl_none_set_engine_default, /* set_engine_default */ 94 - Curl_none_engines_list, /* engines_list */ 95 - nss_false_start, /* false_start */ 96 - - nss_sha256sum /* sha256sum */ 97 - + nss_sha256sum, /* sha256sum */ 98 - + NULL, /* associate_connection */ 99 - + NULL /* disassociate_connection */ 100 - }; 101 - 102 - #endif /* USE_NSS */ 103 - diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c 104 - index 1521600dd5f6..ebd7abc3b4ac 100644 105 - --- a/lib/vtls/openssl.c 106 - +++ b/lib/vtls/openssl.c 107 - @@ -240,6 +240,10 @@ struct ssl_backend_data { 108 - #endif 109 - }; 110 - 111 - +static void ossl_associate_connection(struct Curl_easy *data, 112 - + struct connectdata *conn, 113 - + int sockindex); 114 - + 115 - /* 116 - * Number of bytes to read from the random number seed file. This must be 117 - * a finite value (because some entropy "files" like /dev/urandom have 118 - @@ -2581,6 +2585,7 @@ static CURLcode ossl_connect_step1(struct Curl_easy *data, 119 - curl_socket_t sockfd = conn->sock[sockindex]; 120 - struct ssl_connect_data *connssl = &conn->ssl[sockindex]; 121 - ctx_option_t ctx_options = 0; 122 - + void *ssl_sessionid = NULL; 123 - 124 - #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME 125 - bool sni; 126 - @@ -3225,46 +3230,23 @@ static CURLcode ossl_connect_step1(struct Curl_easy *data, 127 - } 128 - #endif 129 - 130 - - /* Check if there's a cached ID we can/should use here! */ 131 - - if(SSL_SET_OPTION(primary.sessionid)) { 132 - - void *ssl_sessionid = NULL; 133 - - int data_idx = ossl_get_ssl_data_index(); 134 - - int connectdata_idx = ossl_get_ssl_conn_index(); 135 - - int sockindex_idx = ossl_get_ssl_sockindex_index(); 136 - - int proxy_idx = ossl_get_proxy_index(); 137 - - 138 - - if(data_idx >= 0 && connectdata_idx >= 0 && sockindex_idx >= 0 && 139 - - proxy_idx >= 0) { 140 - - /* Store the data needed for the "new session" callback. 141 - - * The sockindex is stored as a pointer to an array element. */ 142 - - SSL_set_ex_data(backend->handle, data_idx, data); 143 - - SSL_set_ex_data(backend->handle, connectdata_idx, conn); 144 - - SSL_set_ex_data(backend->handle, sockindex_idx, conn->sock + sockindex); 145 - -#ifndef CURL_DISABLE_PROXY 146 - - SSL_set_ex_data(backend->handle, proxy_idx, SSL_IS_PROXY() ? (void *) 1: 147 - - NULL); 148 - -#else 149 - - SSL_set_ex_data(backend->handle, proxy_idx, NULL); 150 - -#endif 151 - - 152 - - } 153 - + ossl_associate_connection(data, conn, sockindex); 154 - 155 - - Curl_ssl_sessionid_lock(data); 156 - - if(!Curl_ssl_getsessionid(data, conn, SSL_IS_PROXY() ? TRUE : FALSE, 157 - - &ssl_sessionid, NULL, sockindex)) { 158 - - /* we got a session id, use it! */ 159 - - if(!SSL_set_session(backend->handle, ssl_sessionid)) { 160 - - Curl_ssl_sessionid_unlock(data); 161 - - failf(data, "SSL: SSL_set_session failed: %s", 162 - - ossl_strerror(ERR_get_error(), error_buffer, 163 - - sizeof(error_buffer))); 164 - - return CURLE_SSL_CONNECT_ERROR; 165 - - } 166 - - /* Informational message */ 167 - - infof(data, "SSL re-using session ID\n"); 168 - + Curl_ssl_sessionid_lock(data); 169 - + if(!Curl_ssl_getsessionid(data, conn, SSL_IS_PROXY() ? TRUE : FALSE, 170 - + &ssl_sessionid, NULL, sockindex)) { 171 - + /* we got a session id, use it! */ 172 - + if(!SSL_set_session(backend->handle, ssl_sessionid)) { 173 - + Curl_ssl_sessionid_unlock(data); 174 - + failf(data, "SSL: SSL_set_session failed: %s", 175 - + ossl_strerror(ERR_get_error(), error_buffer, 176 - + sizeof(error_buffer))); 177 - + return CURLE_SSL_CONNECT_ERROR; 178 - } 179 - - Curl_ssl_sessionid_unlock(data); 180 - + /* Informational message */ 181 - + infof(data, "SSL re-using session ID\n"); 182 - } 183 - + Curl_ssl_sessionid_unlock(data); 184 - 185 - #ifndef CURL_DISABLE_PROXY 186 - if(conn->proxy_ssl[sockindex].use) { 187 - @@ -4498,6 +4480,90 @@ static void *ossl_get_internals(struct ssl_connect_data *connssl, 188 - (void *)backend->ctx : (void *)backend->handle; 189 - } 190 - 191 - +static void ossl_associate_connection(struct Curl_easy *data, 192 - + struct connectdata *conn, 193 - + int sockindex) 194 - +{ 195 - + struct ssl_connect_data *connssl = &conn->ssl[sockindex]; 196 - + struct ssl_backend_data *backend = connssl->backend; 197 - + 198 - + /* If we don't have SSL context, do nothing. */ 199 - + if(!backend->handle) 200 - + return; 201 - + 202 - + if(SSL_SET_OPTION(primary.sessionid)) { 203 - + int data_idx = ossl_get_ssl_data_index(); 204 - + int connectdata_idx = ossl_get_ssl_conn_index(); 205 - + int sockindex_idx = ossl_get_ssl_sockindex_index(); 206 - + int proxy_idx = ossl_get_proxy_index(); 207 - + 208 - + if(data_idx >= 0 && connectdata_idx >= 0 && sockindex_idx >= 0 && 209 - + proxy_idx >= 0) { 210 - + /* Store the data needed for the "new session" callback. 211 - + * The sockindex is stored as a pointer to an array element. */ 212 - + SSL_set_ex_data(backend->handle, data_idx, data); 213 - + SSL_set_ex_data(backend->handle, connectdata_idx, conn); 214 - + SSL_set_ex_data(backend->handle, sockindex_idx, conn->sock + sockindex); 215 - +#ifndef CURL_DISABLE_PROXY 216 - + SSL_set_ex_data(backend->handle, proxy_idx, SSL_IS_PROXY() ? (void *) 1: 217 - + NULL); 218 - +#else 219 - + SSL_set_ex_data(backend->handle, proxy_idx, NULL); 220 - +#endif 221 - + } 222 - + } 223 - +} 224 - + 225 - +/* 226 - + * Starting with TLS 1.3, the ossl_new_session_cb callback gets called after 227 - + * the handshake. If the transfer that sets up the callback gets killed before 228 - + * this callback arrives, we must make sure to properly clear the data to 229 - + * avoid UAF problems. A future optimization could be to instead store another 230 - + * transfer that might still be using the same connection. 231 - + */ 232 - + 233 - +static void ossl_disassociate_connection(struct Curl_easy *data, 234 - + int sockindex) 235 - +{ 236 - + struct connectdata *conn = data->conn; 237 - + struct ssl_connect_data *connssl = &conn->ssl[sockindex]; 238 - + struct ssl_backend_data *backend = connssl->backend; 239 - + 240 - + /* If we don't have SSL context, do nothing. */ 241 - + if(!backend->handle) 242 - + return; 243 - + 244 - + if(SSL_SET_OPTION(primary.sessionid)) { 245 - + bool isproxy = FALSE; 246 - + bool incache; 247 - + void *old_ssl_sessionid = NULL; 248 - + int data_idx = ossl_get_ssl_data_index(); 249 - + int connectdata_idx = ossl_get_ssl_conn_index(); 250 - + int sockindex_idx = ossl_get_ssl_sockindex_index(); 251 - + int proxy_idx = ossl_get_proxy_index(); 252 - + 253 - + if(data_idx >= 0 && connectdata_idx >= 0 && sockindex_idx >= 0 && 254 - + proxy_idx >= 0) { 255 - + /* Invalidate the session cache entry, if any */ 256 - + isproxy = SSL_get_ex_data(backend->handle, proxy_idx) ? TRUE : FALSE; 257 - + 258 - + /* Disable references to data in "new session" callback to avoid 259 - + * accessing a stale pointer. */ 260 - + SSL_set_ex_data(backend->handle, data_idx, NULL); 261 - + SSL_set_ex_data(backend->handle, connectdata_idx, NULL); 262 - + SSL_set_ex_data(backend->handle, sockindex_idx, NULL); 263 - + SSL_set_ex_data(backend->handle, proxy_idx, NULL); 264 - + } 265 - + 266 - + Curl_ssl_sessionid_lock(data); 267 - + incache = !(Curl_ssl_getsessionid(data, conn, isproxy, 268 - + &old_ssl_sessionid, NULL, sockindex)); 269 - + if(incache) 270 - + Curl_ssl_delsessionid(data, old_ssl_sessionid); 271 - + Curl_ssl_sessionid_unlock(data); 272 - + } 273 - +} 274 - + 275 - const struct Curl_ssl Curl_ssl_openssl = { 276 - { CURLSSLBACKEND_OPENSSL, "openssl" }, /* info */ 277 - 278 - @@ -4533,10 +4599,12 @@ const struct Curl_ssl Curl_ssl_openssl = { 279 - ossl_engines_list, /* engines_list */ 280 - Curl_none_false_start, /* false_start */ 281 - #if (OPENSSL_VERSION_NUMBER >= 0x0090800fL) && !defined(OPENSSL_NO_SHA256) 282 - - ossl_sha256sum /* sha256sum */ 283 - + ossl_sha256sum, /* sha256sum */ 284 - #else 285 - - NULL /* sha256sum */ 286 - + NULL, /* sha256sum */ 287 - #endif 288 - + ossl_associate_connection, /* associate_connection */ 289 - + ossl_disassociate_connection /* disassociate_connection */ 290 - }; 291 - 292 - #endif /* USE_OPENSSL */ 293 - diff --git a/lib/vtls/rustls.c b/lib/vtls/rustls.c 294 - index 9dfbd2c3c4c2..161f3bf51d75 100644 295 - --- a/lib/vtls/rustls.c 296 - +++ b/lib/vtls/rustls.c 297 - @@ -604,7 +604,9 @@ const struct Curl_ssl Curl_ssl_rustls = { 298 - Curl_none_set_engine_default, /* set_engine_default */ 299 - Curl_none_engines_list, /* engines_list */ 300 - Curl_none_false_start, /* false_start */ 301 - - NULL /* sha256sum */ 302 - + NULL, /* sha256sum */ 303 - + NULL, /* associate_connection */ 304 - + NULL /* disassociate_connection */ 305 - }; 306 - 307 - #endif /* USE_RUSTLS */ 308 - diff --git a/lib/vtls/schannel.c b/lib/vtls/schannel.c 309 - index dba7072273a9..2bcf11db2576 100644 310 - --- a/lib/vtls/schannel.c 311 - +++ b/lib/vtls/schannel.c 312 - @@ -329,7 +329,7 @@ get_alg_id_by_name(char *name) 313 - 314 - static CURLcode 315 - set_ssl_ciphers(SCHANNEL_CRED *schannel_cred, char *ciphers, 316 - - int *algIds) 317 - + ALG_ID *algIds) 318 - { 319 - char *startCur = ciphers; 320 - int algCount = 0; 321 - @@ -2433,7 +2433,9 @@ const struct Curl_ssl Curl_ssl_schannel = { 322 - Curl_none_set_engine_default, /* set_engine_default */ 323 - Curl_none_engines_list, /* engines_list */ 324 - Curl_none_false_start, /* false_start */ 325 - - schannel_sha256sum /* sha256sum */ 326 - + schannel_sha256sum, /* sha256sum */ 327 - + NULL, /* associate_connection */ 328 - + NULL /* disassociate_connection */ 329 - }; 330 - 331 - #endif /* USE_SCHANNEL */ 332 - diff --git a/lib/vtls/sectransp.c b/lib/vtls/sectransp.c 333 - index 4276b89cfb3a..8b1e84ed7715 100644 334 - --- a/lib/vtls/sectransp.c 335 - +++ b/lib/vtls/sectransp.c 336 - @@ -3453,6 +3453,8 @@ const struct Curl_ssl Curl_ssl_sectransp = { 337 - Curl_none_engines_list, /* engines_list */ 338 - sectransp_false_start, /* false_start */ 339 - sectransp_sha256sum /* sha256sum */ 340 - + NULL, /* associate_connection */ 341 - + NULL /* disassociate_connection */ 342 - }; 343 - 344 - #ifdef __clang__ 345 - diff --git a/lib/vtls/vtls.c b/lib/vtls/vtls.c 346 - index d63fd5c76386..65f4f773dd63 100644 347 - --- a/lib/vtls/vtls.c 348 - +++ b/lib/vtls/vtls.c 349 - @@ -586,6 +586,25 @@ CURLcode Curl_ssl_addsessionid(struct Curl_easy *data, 350 - return CURLE_OK; 351 - } 352 - 353 - +void Curl_ssl_associate_conn(struct Curl_easy *data, 354 - + struct connectdata *conn) 355 - +{ 356 - + if(Curl_ssl->associate_connection) { 357 - + Curl_ssl->associate_connection(data, conn, FIRSTSOCKET); 358 - + if(conn->sock[SECONDARYSOCKET] && conn->bits.sock_accepted) 359 - + Curl_ssl->associate_connection(data, conn, SECONDARYSOCKET); 360 - + } 361 - +} 362 - + 363 - +void Curl_ssl_detach_conn(struct Curl_easy *data, 364 - + struct connectdata *conn) 365 - +{ 366 - + if(Curl_ssl->disassociate_connection) { 367 - + Curl_ssl->disassociate_connection(data, FIRSTSOCKET); 368 - + if(conn->sock[SECONDARYSOCKET] && conn->bits.sock_accepted) 369 - + Curl_ssl->disassociate_connection(data, SECONDARYSOCKET); 370 - + } 371 - +} 372 - 373 - void Curl_ssl_close_all(struct Curl_easy *data) 374 - { 375 - @@ -1214,7 +1233,9 @@ static const struct Curl_ssl Curl_ssl_multi = { 376 - Curl_none_set_engine_default, /* set_engine_default */ 377 - Curl_none_engines_list, /* engines_list */ 378 - Curl_none_false_start, /* false_start */ 379 - - NULL /* sha256sum */ 380 - + NULL, /* sha256sum */ 381 - + NULL, /* associate_connection */ 382 - + NULL /* disassociate_connection */ 383 - }; 384 - 385 - const struct Curl_ssl *Curl_ssl = 386 - diff --git a/lib/vtls/vtls.h b/lib/vtls/vtls.h 387 - index a22d526ca810..7f93e7aedb21 100644 388 - --- a/lib/vtls/vtls.h 389 - +++ b/lib/vtls/vtls.h 390 - @@ -84,6 +84,11 @@ struct Curl_ssl { 391 - bool (*false_start)(void); 392 - CURLcode (*sha256sum)(const unsigned char *input, size_t inputlen, 393 - unsigned char *sha256sum, size_t sha256sumlen); 394 - + 395 - + void (*associate_connection)(struct Curl_easy *data, 396 - + struct connectdata *conn, 397 - + int sockindex); 398 - + void (*disassociate_connection)(struct Curl_easy *data, int sockindex); 399 - }; 400 - 401 - #ifdef USE_SSL 402 - @@ -283,6 +288,11 @@ bool Curl_ssl_cert_status_request(void); 403 - 404 - bool Curl_ssl_false_start(void); 405 - 406 - +void Curl_ssl_associate_conn(struct Curl_easy *data, 407 - + struct connectdata *conn); 408 - +void Curl_ssl_detach_conn(struct Curl_easy *data, 409 - + struct connectdata *conn); 410 - + 411 - #define SSL_SHUTDOWN_TIMEOUT 10000 /* ms */ 412 - 413 - #else /* if not USE_SSL */ 414 - @@ -309,6 +319,8 @@ bool Curl_ssl_false_start(void); 415 - #define Curl_ssl_cert_status_request() FALSE 416 - #define Curl_ssl_false_start() FALSE 417 - #define Curl_ssl_tls13_ciphersuites() FALSE 418 - +#define Curl_ssl_associate_conn(a,b) Curl_nop_stmt 419 - +#define Curl_ssl_detach_conn(a,b) Curl_nop_stmt 420 - #endif 421 - 422 - #endif /* HEADER_CURL_VTLS_H */ 423 - diff --git a/lib/vtls/wolfssl.c b/lib/vtls/wolfssl.c 424 - index 02fcd236697e..60e27e366252 100644 425 - --- a/lib/vtls/wolfssl.c 426 - +++ b/lib/vtls/wolfssl.c 427 - @@ -1125,7 +1125,9 @@ const struct Curl_ssl Curl_ssl_wolfssl = { 428 - Curl_none_set_engine_default, /* set_engine_default */ 429 - Curl_none_engines_list, /* engines_list */ 430 - Curl_none_false_start, /* false_start */ 431 - - wolfssl_sha256sum /* sha256sum */ 432 - + wolfssl_sha256sum, /* sha256sum */ 433 - + NULL, /* associate_connection */ 434 - + NULL /* disassociate_connection */ 435 - }; 436 - 437 - #endif
-27
pkgs/tools/networking/curl/CVE-2021-22945.patch
··· 1 - From 43157490a5054bd24256fe12876931e8abc9df49 Mon Sep 17 00:00:00 2001 2 - From: z2_ on hackerone <> 3 - Date: Tue, 24 Aug 2021 09:50:33 +0200 4 - Subject: [PATCH] mqtt: clear the leftovers pointer when sending succeeds 5 - 6 - CVE-2021-22945 7 - 8 - Bug: https://curl.se/docs/CVE-2021-22945.html 9 - --- 10 - lib/mqtt.c | 4 ++++ 11 - 1 file changed, 4 insertions(+) 12 - 13 - diff --git a/lib/mqtt.c b/lib/mqtt.c 14 - index f077e6c3dc44..fcd40b41e600 100644 15 - --- a/lib/mqtt.c 16 - +++ b/lib/mqtt.c 17 - @@ -128,6 +128,10 @@ static CURLcode mqtt_send(struct Curl_easy *data, 18 - mq->sendleftovers = sendleftovers; 19 - mq->nsend = nsend; 20 - } 21 - + else { 22 - + mq->sendleftovers = NULL; 23 - + mq->nsend = 0; 24 - + } 25 - return result; 26 - } 27 -
+10 -13
pkgs/tools/networking/curl/default.nix
··· 3 3 , idnSupport ? false, libidn ? null 4 4 , ldapSupport ? false, openldap ? null 5 5 , zlibSupport ? true, zlib ? null 6 - , sslSupport ? zlibSupport, openssl ? null 6 + , opensslSupport ? zlibSupport, openssl ? null 7 7 , gnutlsSupport ? false, gnutls ? null 8 8 , wolfsslSupport ? false, wolfssl ? null 9 9 , scpSupport ? zlibSupport && !stdenv.isSunOS && !stdenv.isCygwin, libssh2 ? null ··· 30 30 assert idnSupport -> libidn != null; 31 31 assert ldapSupport -> openldap != null; 32 32 assert zlibSupport -> zlib != null; 33 - assert sslSupport -> openssl != null; 34 - assert !(gnutlsSupport && sslSupport); 33 + assert opensslSupport -> openssl != null; 34 + assert !(gnutlsSupport && opensslSupport); 35 35 assert !(gnutlsSupport && wolfsslSupport); 36 - assert !(sslSupport && wolfsslSupport); 36 + assert !(opensslSupport && wolfsslSupport); 37 37 assert gnutlsSupport -> gnutls != null; 38 38 assert wolfsslSupport -> wolfssl != null; 39 39 assert scpSupport -> libssh2 != null; ··· 43 43 44 44 stdenv.mkDerivation rec { 45 45 pname = "curl"; 46 - version = "7.76.1"; 46 + version = "7.79.1"; 47 47 48 48 src = fetchurl { 49 49 urls = [ 50 50 "https://curl.haxx.se/download/${pname}-${version}.tar.bz2" 51 51 "https://github.com/curl/curl/releases/download/${lib.replaceStrings ["."] ["_"] pname}-${version}/${pname}-${version}.tar.bz2" 52 52 ]; 53 - sha256 = "1scmfrp0c27pkd7yva9k50miprjpsyfbb33apx72qc9igm6ii3ks"; 53 + sha256 = "0lbq73wz44p4fm2gp05mzrqrzfvhlmvlgfg8c8wkj5lkkamw8qny"; 54 54 }; 55 55 56 56 patches = [ 57 - ./CVE-2021-22897.patch 58 - ./CVE-2021-22898.patch 59 - ./CVE-2021-22901.patch 60 - ./CVE-2021-22945.patch 57 + ./7.79.1-darwin-no-systemconfiguration.patch 61 58 ]; 62 59 63 60 outputs = [ "bin" "dev" "out" "man" "devdoc" ]; ··· 79 76 optional zlibSupport zlib ++ 80 77 optional gssSupport libkrb5 ++ 81 78 optional c-aresSupport c-ares ++ 82 - optional sslSupport openssl ++ 79 + optional opensslSupport openssl ++ 83 80 optional gnutlsSupport gnutls ++ 84 81 optional wolfsslSupport wolfssl ++ 85 82 optional scpSupport libssh2 ++ ··· 99 96 # The build fails when using wolfssl with --with-ca-fallback 100 97 (lib.withFeature (!wolfsslSupport) "ca-fallback") 101 98 "--disable-manual" 102 - (lib.withFeatureAs sslSupport "ssl" openssl.dev) 99 + (lib.withFeatureAs opensslSupport "openssl" openssl.dev) 103 100 (lib.withFeatureAs gnutlsSupport "gnutls" gnutls.dev) 104 101 (lib.withFeatureAs scpSupport "libssh2" libssh2.dev) 105 102 (lib.enableFeature ldapSupport "ldap") ··· 137 134 ''; 138 135 139 136 passthru = { 140 - inherit sslSupport openssl; 137 + inherit opensslSupport openssl; 141 138 }; 142 139 143 140 meta = with lib; {
+11 -1
pkgs/tools/networking/mtr/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, autoreconfHook, pkg-config 1 + { stdenv, lib, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config 2 2 , libcap, ncurses, jansson 3 3 , withGtk ? false, gtk3 }: 4 4 ··· 12 12 rev = "v${version}"; 13 13 sha256 = "0wnz87cr2lcl74bj8qxq9xgai40az3pk9k0z893scyc8svd61xz6"; 14 14 }; 15 + 16 + patches = [ 17 + # pull patch to fix build failure against ncurses-6.3: 18 + # https://github.com/traviscross/mtr/pull/411 19 + (fetchpatch { 20 + name = "ncurses-6.3.patch"; 21 + url = "https://github.com/traviscross/mtr/commit/aeb493e08eabcb4e6178bda0bb84e9cd01c9f213.patch"; 22 + sha256 = "1qk8lf4sha18g36mr84vbdvll2s8khgbzyyq0as3ifx44lv0qlf2"; 23 + }) 24 + ]; 15 25 16 26 # we need this before autoreconfHook does its thing 17 27 postPatch = ''
+1 -1
pkgs/tools/networking/unbound/default.nix
··· 82 82 "--with-libhiredis=${hiredis}" 83 83 ]; 84 84 85 - PROTOC_C = if withDNSTAP then "${protobufc}/bin/protoc-c" else null; 85 + PROTOC_C = lib.optionalString withDNSTAP "${protobufc}/bin/protoc-c"; 86 86 87 87 # Remove references to compile-time dependencies that are included in the configure flags 88 88 postConfigure = let
+7 -7
pkgs/tools/package-management/cargo-about/default.nix
··· 1 - { lib, rustPlatform, fetchFromGitHub, stdenv, libiconv }: 1 + { lib, rustPlatform, fetchFromGitHub }: 2 + 2 3 rustPlatform.buildRustPackage rec { 3 4 pname = "cargo-about"; 4 - version = "0.3.0"; 5 + version = "0.4.1"; 5 6 6 7 src = fetchFromGitHub { 7 8 owner = "EmbarkStudios"; 8 9 repo = "cargo-about"; 9 10 rev = version; 10 - sha256 = "sha256-MsXNneKj2xCci1guj1TKcIrX7XByJ5/lWUmjxAsgzPY="; 11 + sha256 = "sha256-Am0VwF37fYsZvUogxnSlP/kwy20J7maFu3Is8f/1b1E="; 11 12 }; 12 13 13 - cargoSha256 = "sha256-ssAmY+o+/2+C9sol+PeFlpNwVuN5JNoofgkr3cUW+S4="; 14 - 15 - buildInputs = lib.optional stdenv.isDarwin libiconv; 14 + cargoSha256 = "sha256-gf5OtRGjXmGbnXA4ZYOys6JU+JkF+rYnRSnjy3JE7c0="; 16 15 17 16 meta = with lib; { 18 17 description = "Cargo plugin to generate list of all licenses for a crate"; 19 18 homepage = "https://github.com/EmbarkStudios/cargo-about"; 19 + changelog = "https://github.com/EmbarkStudios/cargo-about/blob/${version}/CHANGELOG.md"; 20 20 license = with licenses; [ mit /* or */ asl20 ]; 21 - maintainers = with maintainers; [ evanjs ]; 21 + maintainers = with maintainers; [ evanjs figsoda ]; 22 22 }; 23 23 }
+10 -1
pkgs/tools/security/ibm-sw-tpm2/default.nix
··· 1 - { stdenv, fetchurl, lib, openssl }: 1 + { stdenv, fetchurl, fetchpatch, lib, openssl }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "ibm-sw-tpm2"; ··· 8 8 url = "mirror://sourceforge/ibmswtpm2/ibmtpm${version}.tar.gz"; 9 9 sha256 = "sha256-VRRZKK0rJPNL5qDqz5+0kuEODqkZuEKMch+pcOhdYUc="; 10 10 }; 11 + 12 + patches = [ 13 + (fetchpatch { 14 + url = "https://github.com/kgoldman/ibmswtpm2/commit/e6684009aff9c1bad38875e3319c2e02ef791424.patch"; 15 + sha256 = "1flzlri807c88agmpb0w8xvh5f16mmqv86xw4ic4z272iynzd40j"; 16 + }) 17 + ]; 18 + 19 + patchFlags = [ "-p2" ]; 11 20 12 21 buildInputs = [ openssl ]; 13 22
+4 -3
pkgs/tools/security/pcsclite/default.nix
··· 2 2 , lib 3 3 , fetchurl 4 4 , autoreconfHook 5 + , autoconf-archive 5 6 , pkg-config 6 7 , perl 7 8 , python3 ··· 13 14 14 15 stdenv.mkDerivation rec { 15 16 pname = "pcsclite"; 16 - version = "1.9.1"; 17 + version = "1.9.4"; 17 18 18 19 outputs = [ "bin" "out" "dev" "doc" "man" ]; 19 20 20 21 src = fetchurl { 21 22 url = "https://pcsclite.apdu.fr/files/pcsc-lite-${version}.tar.bz2"; 22 - sha256 = "sha256-c8R4m3h2qDOnD0k82iFlXf6FaJ2bfilwHCQyduVeaDo="; 23 + sha256 = "sha256:0jqwnpywk9ka3q88b1k93p8s0xhmx1isdpcqa80nd8p04z1am34a"; 23 24 }; 24 25 25 26 patches = [ ./no-dropdir-literals.patch ]; ··· 55 56 56 57 enableParallelBuilding = true; 57 58 58 - nativeBuildInputs = [ autoreconfHook pkg-config perl ]; 59 + nativeBuildInputs = [ autoreconfHook autoconf-archive pkg-config perl ]; 59 60 60 61 buildInputs = [ python3 ] 61 62 ++ lib.optionals stdenv.isLinux [ dbus polkit systemd ]
+9 -8
pkgs/tools/system/kmon/default.nix
··· 1 - { lib, fetchFromGitHub, rustPlatform, python3, libxcb }: 1 + { lib, rustPlatform, fetchFromGitHub, installShellFiles, python3, libxcb }: 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "kmon"; 5 - version = "1.5.5"; 5 + version = "1.6.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "orhun"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-x4P9p2zXthGtokfKcWR/xaX/E7a9mEuQiK6cjFw4nS8="; 11 + sha256 = "sha256-0sjRTbTLtBUTyx6+HnihL9TggoeIOqX9zKRaXjBUfE0="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-ZAHp7eR2pu+xEP9NZOLoczEF8QSFA5Z/8bKsCYqk4Ww="; 14 + cargoSha256 = "sha256-QMJ3Rpgcfrza2zFiA5LFBuYedn+VnffzpyzAGeC0PSM="; 15 15 16 - nativeBuildInputs = [ python3 ]; 16 + nativeBuildInputs = [ installShellFiles python3 ]; 17 17 18 18 buildInputs = [ libxcb ]; 19 19 20 20 postInstall = '' 21 - install -D man/kmon.8 -t $out/share/man/man8/ 21 + installManPage man/kmon.8 22 22 ''; 23 23 24 24 meta = with lib; { 25 25 description = "Linux Kernel Manager and Activity Monitor"; 26 26 homepage = "https://github.com/orhun/kmon"; 27 - license = with licenses; [ gpl3 ]; 27 + changelog = "https://github.com/orhun/kmon/blob/v${version}/CHANGELOG.md"; 28 + license = licenses.gpl3Only; 28 29 platforms = platforms.linux; 29 - maintainers = with maintainers; [ misuzu ]; 30 + maintainers = with maintainers; [ figsoda misuzu ]; 30 31 }; 31 32 }
+27 -27
pkgs/top-level/all-packages.nix
··· 3555 3555 sydbox = callPackage ../os-specific/linux/sydbox { }; 3556 3556 3557 3557 synth = callPackage ../tools/misc/synth { 3558 - inherit (darwin.apple_sdk.frameworks) Security; 3558 + inherit (darwin.apple_sdk.frameworks) AppKit Security; 3559 3559 }; 3560 3560 3561 3561 syscall_limiter = callPackage ../os-specific/linux/syscall_limiter {}; ··· 10743 10743 10744 10744 volumeicon = callPackage ../tools/audio/volumeicon { }; 10745 10745 10746 - waf = callPackage ../development/tools/build-managers/waf { python = python3; }; 10746 + waf = callPackage ../development/tools/build-managers/waf { }; 10747 10747 wafHook = callPackage ../development/tools/build-managers/wafHook { }; 10748 10748 10749 10749 wagyu = callPackage ../tools/misc/wagyu { ··· 12509 12509 stdenv = gcc7Stdenv; 12510 12510 })); 12511 12511 12512 - llvmPackages_latest = llvmPackages_12; 12512 + llvmPackages_latest = llvmPackages_13; 12513 12513 12514 12514 llvmPackages_rocm = recurseIntoAttrs (callPackage ../development/compilers/llvm/rocm { }); 12515 12515 ··· 12715 12715 inherit (darwin) apple_sdk; 12716 12716 }; 12717 12717 12718 - rust_1_55 = callPackage ../development/compilers/rust/1_55.nix { 12718 + rust_1_56 = callPackage ../development/compilers/rust/1_56.nix { 12719 12719 inherit (darwin.apple_sdk.frameworks) CoreFoundation Security SystemConfiguration; 12720 - llvm_12 = llvmPackages_12.libllvm; 12720 + llvm_13 = llvmPackages_13.libllvm; 12721 12721 }; 12722 - rust = rust_1_55; 12722 + rust = rust_1_56; 12723 12723 12724 12724 mrustc = callPackage ../development/compilers/mrustc { }; 12725 12725 mrustc-minicargo = callPackage ../development/compilers/mrustc/minicargo.nix { }; 12726 12726 mrustc-bootstrap = callPackage ../development/compilers/mrustc/bootstrap.nix { }; 12727 12727 12728 - rustPackages_1_55 = rust_1_55.packages.stable; 12729 - rustPackages = rustPackages_1_55; 12728 + rustPackages_1_56 = rust_1_56.packages.stable; 12729 + rustPackages = rustPackages_1_56; 12730 12730 12731 12731 inherit (rustPackages) cargo clippy rustc rustPlatform; 12732 12732 ··· 13614 13614 inherit (callPackage ../development/interpreters/ruby { 13615 13615 inherit (darwin) libiconv libobjc libunwind; 13616 13616 inherit (darwin.apple_sdk.frameworks) Foundation; 13617 - autoreconfHook = buildPackages.autoreconfHook269; 13618 - bison = buildPackages.bison_3_5; 13619 13617 }) 13620 13618 ruby_2_7 13621 13619 ruby_3_0; ··· 14061 14059 }; 14062 14060 14063 14061 bison = callPackage ../development/tools/parsing/bison { }; 14064 - 14065 - # Ruby fails to build with current bison 14066 - bison_3_5 = bison.overrideAttrs (oldAttrs: rec { 14067 - version = "3.5.4"; 14068 - src = fetchurl { 14069 - url = "mirror://gnu/${oldAttrs.pname}/${oldAttrs.pname}-${version}.tar.gz"; 14070 - sha256 = "0a2cbrqh7mgx2dwf5qm10v68iakv1i0dqh9di4x5aqxsz96ibpf0"; 14071 - }; 14072 - }); 14073 14062 14074 14063 bisoncpp = callPackage ../development/tools/parsing/bisonc++ { }; 14075 14064 ··· 16468 16457 16469 16458 relibc = callPackage ../development/libraries/relibc { }; 16470 16459 16471 - # Only supported on Linux, using glibc 16472 - glibcLocales = if stdenv.hostPlatform.libc == "glibc" then callPackage ../development/libraries/glibc/locales.nix { } else null; 16460 + # Only supported on Linux 16461 + glibcLocales = if stdenv.hostPlatform.isLinux then callPackage ../development/libraries/glibc/locales.nix { } else null; 16473 16462 16474 16463 glibcInfo = callPackage ../development/libraries/glibc/info.nix { }; 16475 16464 ··· 16940 16929 } // (lib.optionalAttrs (stdenv.hostPlatform.isi686 && stdenv.cc.isGNU) { 16941 16930 stdenv = gcc6Stdenv; # with gcc-7: undefined reference to `__divmoddi4' 16942 16931 })); 16932 + icu70 = callPackage ../development/libraries/icu/70.nix ({ 16933 + nativeBuildRoot = buildPackages.icu70.override { buildRootOnly = true; }; 16934 + } // (lib.optionalAttrs (stdenv.hostPlatform.isi686 && stdenv.cc.isGNU) { 16935 + stdenv = gcc6Stdenv; # with gcc-7: undefined reference to `__divmoddi4' 16936 + })); 16943 16937 16944 - icu = icu69; 16938 + icu = icu70; 16945 16939 16946 16940 id3lib = callPackage ../development/libraries/id3lib { }; 16947 16941 ··· 17078 17072 }; 17079 17073 17080 17074 keybinder3 = callPackage ../development/libraries/keybinder3 { 17075 + gtk3 = if stdenv.isDarwin then gtk3-x11 else gtk3; 17081 17076 automake = automake111x; 17082 17077 }; 17083 17078 ··· 19062 19057 19063 19058 prospector = callPackage ../development/tools/prospector { }; 19064 19059 19065 - protobuf = protobuf3_18; 19060 + protobuf = protobuf3_19; 19066 19061 19062 + protobuf3_19 = callPackage ../development/libraries/protobuf/3.19.nix { }; 19067 19063 protobuf3_18 = callPackage ../development/libraries/protobuf/3.18.nix { }; 19068 19064 protobuf3_17 = callPackage ../development/libraries/protobuf/3.17.nix { }; 19069 19065 protobuf3_16 = callPackage ../development/libraries/protobuf/3.16.nix { }; ··· 22185 22181 22186 22182 lsscsi = callPackage ../os-specific/linux/lsscsi { }; 22187 22183 22188 - lvm2 = callPackage ../os-specific/linux/lvm2 { 22184 + lvm2-2_03 = callPackage ../os-specific/linux/lvm2/2_03.nix { 22189 22185 # udev is the same package as systemd which depends on cryptsetup 22190 22186 # which depends on lvm2 again. But we only need the libudev part 22191 22187 # which does not depend on cryptsetup. 22192 22188 udev = systemdMinimal; 22193 22189 }; 22194 - lvm2_dmeventd = callPackage ../os-specific/linux/lvm2 { 22190 + lvm2-2_02 = callPackage ../os-specific/linux/lvm2/2_02.nix { 22191 + udev = systemdMinimal; 22192 + }; 22193 + lvm2 = if stdenv.targetPlatform.isMusl then lvm2-2_02 else lvm2-2_03; 22194 + 22195 + lvm2_dmeventd = lvm2.override { 22195 22196 enableDmeventd = true; 22196 22197 enableCmdlib = true; 22197 22198 }; ··· 24814 24815 fluidsynth = callPackage ../applications/audio/fluidsynth { 24815 24816 inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio CoreMIDI CoreServices; 24816 24817 }; 24817 - fluidsynth_1 = fluidsynth.override { version = "1"; }; 24818 24818 24819 24819 fmit = libsForQt5.callPackage ../applications/audio/fmit { }; 24820 24820 ··· 28138 28138 28139 28139 spotify-unwrapped = callPackage ../applications/audio/spotify { 28140 28140 curl = curl.override { 28141 - sslSupport = false; gnutlsSupport = true; 28141 + opensslSupport = false; gnutlsSupport = true; 28142 28142 }; 28143 28143 }; 28144 28144
+1 -2
pkgs/top-level/metrics.nix
··· 4 4 5 5 runCommand "nixpkgs-metrics" 6 6 { nativeBuildInputs = with pkgs.lib; map getBin [ nix time jq ]; 7 - #FIXME: the job doesn't work, see issue #76776 8 - #requiredSystemFeatures = [ "benchmark" ]; # dedicated machine, by @vcunat last time 7 + requiredSystemFeatures = [ "benchmark" ]; # dedicated `t2a` machine, by @vcunat 9 8 } 10 9 '' 11 10 export NIX_STORE_DIR=$TMPDIR/store
+14
pkgs/top-level/perl-packages.nix
··· 11810 11810 url = "mirror://cpan/authors/id/S/SH/SHAY/libnet-3.12.tar.gz"; 11811 11811 sha256 = "1px35q9qchzd7rxqldj87vbrall8v31blidhmh0d25d5hyq9lw25"; 11812 11812 }; 11813 + patches = [ 11814 + (fetchpatch { 11815 + name = "deterministic-libnet.cfg"; 11816 + url = "https://github.com/steve-m-hay/perl-libnet/commit/7d076c4352f67ee4ed64092cfad3963a2321bd53.patch"; 11817 + sha256 = "0pg9w2m08janqn5nrp4x9w5hbcsyxz87hfskd21zzfrzjk8z28qv"; 11818 + }) 11819 + ]; 11813 11820 meta = { 11814 11821 description = "Collection of network protocol modules"; 11815 11822 license = with lib.licenses; [ artistic1 gpl1Plus ]; ··· 24546 24553 url = "mirror://cpan/authors/id/M/MS/MSTPLBG/X11-XCB-0.18.tar.gz"; 24547 24554 sha256 = "1cjpghw7cnackw20lbd7yzm222kz5bnrwz52f8ay24d1f4pwrnxf"; 24548 24555 }; 24556 + patches = [ 24557 + # Pull upstream fix for parallel build failure 24558 + (fetchpatch { 24559 + url = "https://github.com/stapelberg/X11-XCB/commit/813608dacdae1ae35c9eb0f171a958617e014520.patch"; 24560 + sha256 = "017f5r4fyryhzgp99lw3csrl21r27hmqv483vp9fdz9xkvrmh743"; 24561 + }) 24562 + ]; 24549 24563 AUTOMATED_TESTING = false; 24550 24564 buildInputs = [ pkgs.xorg.libxcb pkgs.xorg.xcbproto pkgs.xorg.xcbutil pkgs.xorg.xcbutilwm ExtUtilsDepends ExtUtilsPkgConfig TestDeep TestException XSObjectMagic ]; 24551 24565 propagatedBuildInputs = [ DataDump MouseXNativeTraits XMLDescent XMLSimple ];
+3
pkgs/top-level/python-aliases.nix
··· 83 83 qasm2image = throw "qasm2image is no longer maintained (since November 2018), and is not compatible with the latest pythonPackages.qiskit versions."; # added 2020-12-09 84 84 requests_toolbelt = requests-toolbelt; # added 2017-09-26 85 85 rotate-backups = throw "rotate-backups was removed in favor of the top-level rotate-backups"; # added 2021-07-01 86 + ruamel_base = ruamel-base; # added 2021-11-01 87 + ruamel_yaml = ruamel-yaml; # added 2021-11-01 88 + ruamel_yaml_clib = ruamel-yaml-clib; # added 2021-11-01 86 89 scikitlearn = scikit-learn; # added 2021-07-21 87 90 selectors34 = throw "selectors34 has been removed: functionality provided by Python itself; archived by upstream."; # added 2021-06-10 88 91 setuptools_scm = setuptools-scm; # added 2021-06-03
+6 -7
pkgs/top-level/python-packages.nix
··· 8282 8282 8283 8283 rtslib = callPackage ../development/python-modules/rtslib { }; 8284 8284 8285 - ruamel-base = self.ruamel_base; 8286 - ruamel_base = callPackage ../development/python-modules/ruamel_base { }; 8285 + ruamel-base = callPackage ../development/python-modules/ruamel-base { }; 8287 8286 8288 - ruamel-yaml = self.ruamel_yaml; 8289 - ruamel_yaml = callPackage ../development/python-modules/ruamel_yaml { }; 8287 + ruamel-yaml = callPackage ../development/python-modules/ruamel-yaml { }; 8290 8288 8291 - ruamel-yaml-clib = self.ruamel_yaml_clib; 8292 - ruamel_yaml_clib = callPackage ../development/python-modules/ruamel_yaml_clib { }; 8289 + ruamel-yaml-clib = callPackage ../development/python-modules/ruamel-yaml-clib { }; 8293 8290 8294 8291 rubymarshal = callPackage ../development/python-modules/rubymarshal { }; 8295 8292 ··· 10262 10259 10263 10260 zope_testrunner = callPackage ../development/python-modules/zope_testrunner { }; 10264 10261 10265 - zopfli = callPackage ../development/python-modules/zopfli { }; 10262 + zopfli = callPackage ../development/python-modules/zopfli { 10263 + inherit (pkgs) zopfli; 10264 + }; 10266 10265 10267 10266 zstandard = callPackage ../development/python-modules/zstandard { }; 10268 10267
+2 -4
pkgs/top-level/python2-packages.nix
··· 535 535 536 536 robotframework-ride = callPackage ../development/python-modules/robotframework-ride { }; 537 537 538 - ruamel-ordereddict = self.ruamel_ordereddict; 539 - ruamel_ordereddict = callPackage ../development/python-modules/ruamel_ordereddict { }; 538 + ruamel-ordereddict = callPackage ../development/python-modules/ruamel-ordereddict { }; 540 539 541 - ruamel_yaml = self.ruamel-yaml; 542 - ruamel-yaml = callPackage ../development/python-modules/ruamel_yaml/0.16.nix { }; 540 + ruamel-yaml = callPackage ../development/python-modules/ruamel-yaml/0.16.nix { }; 543 541 544 542 runsnakerun = callPackage ../development/python-modules/runsnakerun { }; 545 543