Compare commits

...

114 Commits

Author SHA1 Message Date
chn
4a5eef80f1 remove unused patches: yubikey TOTP authFile, firefoxpwa, haskell mods 2023-10-27 22:18:17 +08:00
chn
971dfdc169 restore upstream .github 2023-10-27 22:07:35 +08:00
chn
ac9600a32b Merge remote-tracking branch 'upstream/nixos-unstable' into nixos-unstable-next 2023-10-27 22:02:13 +08:00
chn
cad11601e9 add haskell patch 2023-10-22 00:03:27 +08:00
chn
c3cf1cffb3 Merge remote-tracking branch 'upstream/nixos-unstable' into nixos-unstable-next 2023-10-05 21:11:10 +08:00
chn
82e02a1546 vips: update 2023-09-24 21:37:43 +08:00
chn
1523dd436e openexr: fix build 2023-09-21 13:59:47 +08:00
chn
26881752a5 openexr: fix patch 2023-09-19 00:39:48 +08:00
chn
1f2c18194b Merge remote-tracking branch 'upstream/nixos-unstable' into nixos-unstable 2023-09-19 00:35:02 +08:00
R. Ryantm
4944d71d43 openexr_3: 3.1.10 -> 3.1.11 2023-09-11 10:12:35 +08:00
chn
6b10eef17e meilisearch: bump version 2023-09-09 12:32:53 +08:00
chn
00d372876c Merge remote-tracking branch 'upstream/nixos-unstable' into nixos-unstable 2023-09-09 12:30:10 +08:00
chn
213db13a5e update slack 2023-09-05 00:46:16 +08:00
R. Ryantm
e7e8dca748 zoom-us: 5.15.10.6882 -> 5.15.11.7239 2023-09-04 23:59:45 +08:00
skorpy
568a8f49dc zoom-us: 5.15.5.5603 -> 5.15.10.6882
Signed-off-by: skorpy <skorpy@frankfurt.ccc.de>
2023-09-04 23:59:45 +08:00
Icy-Thought
4ce4bd9564 zoom-us: adding missing meta.mainProgram 2023-09-04 23:59:45 +08:00
chn
f2e552c441 nomacs: fix build with CUDA support 2023-09-03 21:00:12 +08:00
chn
f8b44a89b7 Revert "intel-ocl: update"
This reverts commit 3a1a900fc1.
2023-08-31 22:59:59 +08:00
chn
91c48193d2 Revert "暂存"
This reverts commit 7c6258dc01.
2023-08-31 22:59:56 +08:00
chn
7c6258dc01 暂存 2023-08-31 22:59:50 +08:00
chn
3a1a900fc1 intel-ocl: update 2023-08-31 22:37:59 +08:00
chn
002ec00405 Revert "add intel-oneapi-compiler and update intel-ocl"
This reverts commit 01ed435bfd.
2023-08-31 22:23:51 +08:00
chn
8c3688ce69 Revert "add intel mpi"
This reverts commit a832e71387.
2023-08-31 22:23:47 +08:00
chn
a832e71387 add intel mpi 2023-08-31 22:08:35 +08:00
chn
01ed435bfd add intel-oneapi-compiler and update intel-ocl 2023-08-31 19:08:39 +08:00
chn
176373493f disable failed test for broadwell 2023-08-29 12:47:15 +08:00
chn
c59d0401ea disable failed test for broadwell 2023-08-28 14:28:45 +08:00
chn
79d27b4bd8 bump meilisearch to 1.3.2 2023-08-26 22:57:48 +08:00
Adam Joseph
6eaecd9676 update kernel
partial revert of f3719756b5

Revert "linuxManualConfig: restore functionality of isModular and buildDTBs"

This reverts commit 284d76ee3d.

Revert "lib/systems: strip kernel to avoid reference cycles"

This reverts commit 2458c94c9e.

Revert "linuxManualConfig: set badPlatforms"

This reverts commit 5c5e5e2f1f.

Revert "linux.configfile: remove unused kernelTarget attr"

This reverts commit 01b3642589.

Revert "linuxManualConfig: always depend on ubootTools"

This reverts commit e5e02f3214.

Revert "linux: default stdenv.hostPlatform.linux-kernel"

This reverts commit febe477628.

Revert "linux: manual-config: use a non-random path for $buildRoot"

This reverts commit a695425e46.

Revert "linuxManualConfig: fix inaccurate FIXME comment"

This reverts commit 4d15632caf.

Revert "linuxManualConfig: get rid of drvAttrs"

This reverts commit f521f46133.

Revert "linuxManualConfig: install GDB scripts"

This reverts commit d57568fcad.

Revert "linuxManualConfig: use the default make target"

This reverts commit 41f788b121.

Revert "linuxManualConfig: unpack directly into $dev"

This reverts commit 7de3f08ce3.

Revert "linuxManualConfig: don't build inside source tree"

This reverts commit d75cff2ee3.

kernel: fix passthru.tests

https://github.com/NixOS/nixpkgs/pull/191540 indirectly broke kernel
passthru.tests; calling the testsForLinuxPackages and testsForKernel functions
with some args intended for some other exposed test-internal function.

Organise the passed-through functions under `passthru` to prevent this from
happening.

linuxPackages_testing.perf: fix patchShebang

Without the change `perf` build fails as:

    $ nix build --no-link -f. linuxPackages_testing.perf -L

    build flags: SHELL=/nix/store/p6dlr3skfhxpyphipg2bqnj52999banh-bash-5.2-p15/bin/bash prefix=\$\(out\) WERROR=0 ASCIIDOC8=1 O=\$\(buildRoot\) CC=/nix/store/bxic6j2whyg3z4h2x3xjyqgp7fl83bnp-gcc-wrapper-12.3.0/bin/cc HOSTCC=/nix/store/bxic6j2whyg3z4h2x3xjyqgp7fl83bnp-gcc-wrapper-12.3.0/bin/cc HOSTLD=/nix/store/kcp78dk7h5gcs7d4qss7rbz3skxhzdnn-binutils-wrapper-2.40/bin/ld ARCH=x86_64 NO_GTK2=1
      BUILD:   Doing 'make -j16' parallel build
      HOSTCC  fixdep.o
      HOSTLD  fixdep-in.o
      LINK    fixdep
    make[1]: ./check-headers.sh: No such file or directory
    make[1]: *** [Makefile.perf:241: sub-make] Error 127
    make: *** [Makefile:70: all] Error 2

This started happening because upstream linux commit
    d674838509
changed shebang from /bin/sh to /bin/bash.

Let's retroactively switch all `perf` releases to shell interpreter from
store.

linux: 4.14.320 -> 4.14.321

linux: 4.19.289 -> 4.19.290

linux: 5.10.188 -> 5.10.189

linux: 5.15.124 -> 5.15.125

linux: 5.4.251 -> 5.4.252

linux: 6.1.43 -> 6.1.44

linux: 6.4.8 -> 6.4.9

linux: disable KUnit (#247826)

linux_testing: 6.5-rc3 -> 6.5-rc5

rc5: https://lwn.net/Articles/940617/
rc4: https://lwn.net/Articles/939684/

linux: 4.14.321 -> 4.14.322

linux: 4.19.290 -> 4.19.291

linux: 5.10.189 -> 5.10.190

linux: 5.4.252 -> 5.4.253

linux: 6.1.44 -> 6.1.45

linux: 6.4.9 -> 6.4.10

linux-rt_5_15: 5.15.119-rt65 -> 5.15.125-rt66

linux: 5.15.125 -> 5.15.126

linux: disable KUNIT only at 5.5 and later

`KUNIT` knob was added around 5.5 release:
    914cc63eea

linux_xanmod: 6.1.43 -> 6.1.45

linux_xanmod_latest: 6.4.8 -> 6.4.10

linux: 4.14.322 -> 4.14.323

linux: 4.19.291 -> 4.19.292

linux: 5.10.190 -> 5.10.191

linux: 5.15.126 -> 5.15.127

linux: 5.4.253 -> 5.4.254

linux: 6.1.45 -> 6.1.46

linux: 6.4.10 -> 6.4.11

linux_latest-libre: 19337 -> 19386

linux/hardened/patches/4.14: 4.14.320-hardened1 -> 4.14.322-hardened1

linux/hardened/patches/4.19: 4.19.289-hardened1 -> 4.19.291-hardened1

linux/hardened/patches/5.10: 5.10.188-hardened1 -> 5.10.190-hardened1

linux/hardened/patches/5.15: 5.15.123-hardened1 -> 5.15.126-hardened1

linux/hardened/patches/5.4: 5.4.251-hardened1 -> 5.4.253-hardened1

linux/hardened/patches/6.1: 6.1.42-hardened1 -> 6.1.45-hardened1

linux/hardened/patches/6.4: 6.4.7-hardened1 -> 6.4.10-hardened1

linux_xanmod: 6.1.45 -> 6.1.46

linux_xanmod_latest: 6.4.10 -> 6.4.11

linux-rt_6_1: 6.1.33-rt11 -> 6.1.46-rt13

linux: make main update script slightly more robust

On #249636 I had to manually run the updaters for hardened & libre kernels.
The cause was that `update-rt.sh` suddenly broke. Because I didn't want to
inhibit other kernel updates because of a rather niche variant, I decided to
move forward temporarily and take care of it later.

One issue was that the script failed silently, i.e. I only saw that the
script terminated early from my prompt. This is fixed now by making each
niche kernel updater print its exit code code if it failed. Also, errors
are allowed, i.e. a broken `update-rt.sh` doesn't block
`hardened/update.py` etc..

The issue itself is rather simple. When I updated the kernels in #249636,
the sha256sums.asc for rt kernels[1] looked like this:

    199bbb0cdb97ead22732473b95c8b2e8da62dfd71bde2339163119fb537a2b7c  patch-6.1.38-rt13-rc1.patch.gz
    a1af54f6987e96de06cad0a3226c5b5a992b60df084a904b6b94ea247fb46027  patch-6.1.38-rt13-rc1.patch.xz
    7bb68561787e46e3c433d9b514373ce368d587ac459b91df41934e70280d008f  patches-6.1.38-rt13-rc1.tar.gz
    ee65336dd6ae0be398796e7b75291918811a23e10121dc09bd84b244b12402fa  patches-6.1.38-rt13-rc1.tar.xz

However, the script itself skips any RC versions of the realtime
patches, so no releases were usable and the script failed. It's probably
possible to use the overview over all releases instead[2], however
that'd complicate the script notably. Anyways, since RT kernels don't
bump to each patch-level release, I don't think it hurts too much if
such an update is slightly more delayed. However if we want to fix this, I'd prefer
this to be fixed by folks who care more about rt kernels than I do.

[1] https://kernel.org/pub/linux/kernel/projects/rt/6.1/sha256sums.asc
[2] https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/6.1/older/sha256sums.asc
2023-08-26 11:06:00 +08:00
chn
ef4323e25b Revert "nginx move extraConfig to the end of location block"
This reverts commit 127bcf01ca.
2023-08-26 00:53:44 +08:00
chn
cab6477d87 allow nginx to not pass host header 2023-08-26 00:53:07 +08:00
chn
127bcf01ca nginx move extraConfig to the end of location block 2023-08-26 00:27:54 +08:00
chn
5fc3f40439 update firefoxpwa 2023-08-23 15:17:09 +08:00
chn
ab6c7e3769 add pwa 2023-08-23 13:40:56 +08:00
chn
4fd3021a17 Revert "disable yubicoAuth as default"
This reverts commit 28156b2bbf.
2023-08-21 13:26:33 +08:00
chn
e692927818 disable failed test 2023-08-20 23:43:24 +08:00
chn
08077df82a disable failed test for silvermont 2023-08-19 20:17:09 +08:00
chn
afd21d5b8f fix fflas-ffpack build on slivermont 2023-08-19 19:59:45 +08:00
chn
36c74cdf3f Merge branch 'new-machine' into nixos-unstable 2023-08-19 11:38:49 +08:00
nixpkgs-upkeep-bot
e6547efac6 vscode: 1.81.0 -> 1.81.1 2023-08-19 10:53:39 +08:00
chn
ca10437094 disable failed test for silvermont 2023-08-18 20:38:38 +08:00
chn
961ff6f7b4 disable failed test for znver3 2023-08-18 03:38:12 +08:00
Kiskae
7a2eae2e82 linuxPackages.nvidia_x11_production: 535.86.05-> 535.98 2023-08-17 23:14:43 +08:00
chn
d18ed60d15 disable failed test for znver3 2023-08-17 20:38:50 +08:00
chn
ef0d56d9e6 Revert "vscode: 1.81.0 -> 1.81.1"
This reverts commit b9d1d71a1a.
2023-08-17 19:24:59 +08:00
nixpkgs-upkeep-bot
b9d1d71a1a vscode: 1.81.0 -> 1.81.1 2023-08-17 15:52:40 +08:00
chn
0e3191967b disable failed test for znver3 2023-08-17 15:35:22 +08:00
chn
73c72c32c2 disable failed test 2023-08-17 11:20:01 +08:00
chn
2054a5ccef disable failed test for znver3 2023-08-17 02:14:49 +08:00
chn
dc3d9927c7 disable failed test for znver3 2023-08-16 23:44:00 +08:00
chn
a2c376d595 fix netease-cloud-music-gtk build error 2023-08-12 00:35:13 +08:00
chn
a1f2441df9 disable failed tests on alderlake 2023-08-11 16:22:15 +08:00
Theodore Ni
d40b54153f python3.pkgs.python-telegram-bot: 20.2 -> 20.4 2023-08-11 16:20:43 +08:00
chn
7a747486c9 fix yubikey-manager build 2023-08-11 09:35:26 +08:00
chn
b1aefd8166 disable failed test for alderlake 2023-08-10 23:21:03 +08:00
chn
d048bc5060 bump crow translate 2023-08-10 03:20:16 +08:00
chn
18e098aae9 Merge remote-tracking branch 'upstream/nixos-unstable' into next 2023-08-09 15:19:26 +08:00
chn
a1a25b7ba4 disable failed test for znver2 2023-08-08 00:59:12 +08:00
chn
ff6d951b36 disable failed test for znver2 2023-08-08 00:04:40 +08:00
chn
156e1c5d41 disable failed test for znver3 2023-08-07 17:01:30 +08:00
chn
d5f2b02c7d disable failed check for znver3 2023-08-07 15:52:47 +08:00
chn
c8069f502b add patch for znver2 and znver3 2023-08-07 10:20:17 +08:00
chn
8dc7782ee4 bump embree 2023-08-06 18:13:49 +08:00
chn
a8b44b35c2 disable failed test for alderlake 2023-08-06 15:34:12 +08:00
chn
23b44ef952 disable check for sandybridge 2023-08-06 13:57:34 +08:00
chn
ec622d2440 bump netease-cloud-music-gtk 2023-08-05 13:43:06 +08:00
chn
17ab015c05 fix yubico pam 2023-08-03 16:47:18 +08:00
chn
68d2d86543 pam.yubico add autofile 2023-08-03 16:23:45 +08:00
chn
28156b2bbf disable yubicoAuth as default 2023-08-03 16:14:13 +08:00
chn
a14b371dc3 remove .github 2023-07-31 11:14:15 +08:00
chn
b568ffd587 disable failed tests 2023-07-22 21:04:13 +08:00
chn
a5ef91a2e3 disable check for x509-validation 2023-07-22 20:59:17 +08:00
chn
a0e65839b8 x509 disable check on alderlake 2023-07-22 20:49:45 +08:00
chn
ece52e0080 larger ccache size 2023-07-17 00:27:58 +08:00
chn
b043f18e6c webkitgtk: allow to disable unified builds 2023-07-16 23:40:23 +08:00
chn
06f6e1dafa Merge remote-tracking branch 'upstream/nixos-unstable' into next 2023-07-14 15:50:39 +08:00
chn
63b4ec6cdb Revert "set compiler for libobjc2"
This reverts commit f5057ba99b.
2023-07-14 15:50:21 +08:00
chn
8e22575b0c fix libobjc2 build failed 2023-07-13 16:36:00 +08:00
chn
f5057ba99b set compiler for libobjc2 2023-07-12 22:51:00 +08:00
chn
e7fb5b6249 disable failed test 2023-07-12 22:06:54 +08:00
chn
ea3c13e01e ccache do not compress and use larger cache size 2023-07-12 14:19:57 +08:00
chn
00c280989f enable ccacheWrapper if ccache is enabled 2023-07-12 13:58:19 +08:00
chn
a350e78a35 disable failed tests 2023-07-11 11:30:51 +08:00
chn
eb89545d4b Merge remote-tracking branch 'upstream/nixos-unstable' into next 2023-07-11 10:00:10 +08:00
chn
faed709424 remove redundant flags 2023-06-23 19:50:47 +08:00
chn
c691ac6da5 Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs into nixos-unstable 2023-06-23 19:46:41 +08:00
chn
1394c0cb5b Revert "always disable debugpy failed test"
This reverts commit 5305c1a026.
2023-06-21 21:13:29 +08:00
chn
5305c1a026 always disable debugpy failed test 2023-06-21 20:55:18 +08:00
chn
7cecdb24b1 Revert "fix failed build"
This reverts commit bbc8663bd6.
2023-06-21 20:44:40 +08:00
chn
bbc8663bd6 fix failed build 2023-06-21 20:40:11 +08:00
chn
fc405d7756 fix libreoffice patch 2023-06-21 20:07:26 +08:00
chn
f94ee5e8df Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs into nixos-unstable 2023-06-21 19:36:59 +08:00
chn
ec0ddf03a2 diable failed test of libreoffice for alderlake 2023-06-18 07:05:54 +08:00
chn
b8662bb47a disable failed test for hypothesis 2023-06-18 01:32:02 +08:00
chn
af2718df35 disable faile test for gdal on alderlake 2023-06-17 20:08:16 +08:00
chn
a837e80e8e 将修改限制到alderlake
添加说明
2023-06-15 13:24:53 +08:00
chn
57902dfe3d Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs into nixos-unstable 2023-06-15 10:07:44 +08:00
chn
1d946017fc disable check for cryptonite 2023-06-14 23:58:30 +08:00
chn
e0fa7e81f3 disable failed test for thrift 2023-06-14 22:27:32 +08:00
chn
e139732a08 disable failed test for debugpy 2023-06-14 20:43:48 +08:00
chn
bb8af33b9c fix python-aiohttp 2023-06-14 00:49:41 +08:00
chn
9c7ef6f03c try to fix openexr test failed 2023-06-14 00:48:09 +08:00
chn
c250f39f78 修正 alderlake 参数 2023-06-14 00:47:31 +08:00
chn
01a9f90b52 Revert "try to fix openexr test failed"
This reverts commit 802b4d6d5c.
2023-06-11 16:43:27 +08:00
chn
68827fc777 Revert "fix python-aiohttp"
This reverts commit 4e868d7ccb.
2023-06-11 16:43:24 +08:00
chn
8bb2fac893 Revert "bump mono"
This reverts commit a92a7900e5.
2023-06-11 16:43:19 +08:00
chn
a92a7900e5 bump mono 2023-06-11 00:44:36 +08:00
chn
4e868d7ccb fix python-aiohttp 2023-06-10 21:12:11 +08:00
chn
802b4d6d5c try to fix openexr test failed 2023-06-10 13:06:25 +08:00
Nick Cao
07678f07d6 perlPackages.TextBibTeX: always install libbtparse.so to /lib instead of /lib64 2023-06-03 06:34:44 +08:00
chn
03b8e6642f Merge branch 'nixos-unstable' of github.com:CHN-beta/nixpkgs into nixos-unstable 2023-06-03 06:32:21 +08:00
chn
22435341dd disable check for openexr 2023-05-17 15:21:55 +08:00
chn
f52f47099b add alderlake support 2023-05-16 20:58:40 +08:00
chn
cca9ac9e48 add alderlake support 2023-05-16 11:07:04 +08:00
28 changed files with 210 additions and 4779 deletions

View File

@@ -1,3 +1,19 @@
Modified for personal use, mainly for compiling natively on Alderlake.
The following files were modified:
* `lib/systems/architectures.nix`
* `pkgs/development`:
* `haskell-modules/default.nix`
* `libraries`:
* `thrift/default.nix`
* `openexr`:
* `3.nix`
* `fix_nan_compare.patch`
* `python-modules`:
* `debugpy/default.nix`
* `aiohttp/default.nix`
<p align="center">
<a href="https://nixos.org#gh-light-mode-only">
<img src="https://raw.githubusercontent.com/NixOS/nixos-homepage/master/logo/nixos-hires.png" width="500px" alt="NixOS logo"/>

View File

@@ -52,14 +52,17 @@ in {
# target configuration
(mkIf (cfg.packageNames != []) {
nixpkgs.overlays = [
(self: super: genAttrs cfg.packageNames (pn: super.${pn}.override { stdenv = builtins.trace "with ccache: ${pn}" self.ccacheStdenv; }))
(self: super: genAttrs cfg.packageNames (pn: super.${pn}.override { stdenv = builtins.trace "with ccache: ${pn}" self.ccacheStdenv; }))];})
(mkIf cfg.enable {
nixpkgs.overlays = [
(self: super: {
ccacheWrapper = super.ccacheWrapper.override {
extraConfig = ''
export CCACHE_COMPRESS=1
export CCACHE_NOCOMPRESS=true
export CCACHE_DIR="${cfg.cacheDir}"
export CCACHE_UMASK=007
export CCACHE_MAXSIZE=300G
if [ ! -d "$CCACHE_DIR" ]; then
echo "====="
echo "Directory '$CCACHE_DIR' does not exist"

View File

@@ -102,6 +102,14 @@ let
proxy_set_header X-Forwarded-Server $host;
'';
recommendedProxyConfigNoHost = pkgs.writeText "nginx-recommended-proxy-headers-no-host.conf" ''
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
'';
proxyCachePathConfig = concatStringsSep "\n" (mapAttrsToList (name: proxyCachePath: ''
proxy_cache_path ${concatStringsSep " " [
"/var/cache/nginx/${name}"
@@ -451,6 +459,7 @@ let
${optionalString (config.return != null) "return ${config.return};"}
${config.extraConfig}
${optionalString (config.proxyPass != null && config.recommendedProxySettings) "include ${recommendedProxyConfig};"}
${optionalString (config.proxyPass != null && config.recommendedProxySettingsNoHost) "include ${recommendedProxyConfigNoHost};"}
${mkBasicAuth "sublocation" config}
}
'') (sortProperties (mapAttrsToList (k: v: v // { location = k; }) locations)));

View File

@@ -137,5 +137,11 @@ with lib;
Enable recommended proxy settings.
'';
};
recommendedProxySettingsNoHost = mkOption {
type = types.bool;
default = false;
description = lib.mdDoc ''recommendedProxySettingsNoHost'';
};
};
}

View File

@@ -15,6 +15,10 @@
, libraw
, libtiff
, quazip
, config
, cudaSupport ? config.cudaSupport
, cudatoolkit
}:
stdenv.mkDerivation rec {
@@ -34,7 +38,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [cmake
pkg-config
wrapQtAppsHook];
wrapQtAppsHook]
++ lib.optional cudaSupport [cudatoolkit];
buildInputs = [qtbase
qttools

View File

@@ -241,10 +241,10 @@ let
};
}));
nativeBuildInputs = [ makeWrapper lndir jq ];
buildInputs = [ browser.gtk3 ];
buildCommand = ''
if [ ! -x "${browser}/bin/${applicationName}" ]
then

View File

@@ -385,7 +385,10 @@ in stdenv.mkDerivation (finalAttrs: {
find -name "*.cmd" -exec sed -i s,/lib:/usr/lib,, {} \;
'' + optionalString stdenv.isAarch64 ''
sed -e '/CPPUNIT_TEST(testStatisticalFormulasFODS);/d' -i './sc/qa/unit/functions_statistical.cxx'
'';
'' + (if builtins.elem stdenv.hostPlatform.gcc.arch or "" [ "alderlake" "znver3" ] then
''
sed -e '/CPPUNIT_TEST(testDubiousArrayFormulasFODS);/d' -i './sc/qa/unit/functions_array.cxx'
'' else "");
makeFlags = [ "SHELL=${bash}/bin/bash" ];

View File

@@ -76652,7 +76652,7 @@ self: {
"crypton" = callPackage
({ mkDerivation, base, basement, bytestring, deepseq, gauge
, ghc-prim, integer-gmp, memory, random, tasty, tasty-hunit
, tasty-kat, tasty-quickcheck
, tasty-kat, tasty-quickcheck, stdenv
}:
mkDerivation {
pname = "crypton";
@@ -76669,6 +76669,7 @@ self: {
];
description = "Cryptography Primitives sink";
license = lib.licenses.bsd3;
configureFlags = if stdenv.hostPlatform.avx2Support then [ "--ghc-option=-optc-mno-avx2" ] else [];
}) {};
"crypton_0_33" = callPackage
@@ -76819,7 +76820,7 @@ self: {
"cryptonite" = callPackage
({ mkDerivation, base, basement, bytestring, deepseq, gauge
, ghc-prim, integer-gmp, memory, random, tasty, tasty-hunit
, tasty-kat, tasty-quickcheck
, tasty-kat, tasty-quickcheck, stdenv
}:
mkDerivation {
pname = "cryptonite";
@@ -76836,6 +76837,7 @@ self: {
];
description = "Cryptography Primitives sink";
license = lib.licenses.bsd3;
configureFlags = if stdenv.hostPlatform.avx2Support then [ "--ghc-option=-optc-mno-avx2" ] else [];
}) {};
"cryptonite-cd" = callPackage

View File

@@ -3,30 +3,22 @@
stdenv.mkDerivation rec {
pname = "embree";
version = "3.13.5";
version = "4.2.0";
src = fetchFromGitHub {
owner = "embree";
repo = "embree";
rev = "v${version}";
sha256 = "sha256-tfM4SGOFVBG0pQK9B/iN2xDaW3yjefnTtsoUad75m80=";
sha256 = "sha256-yYCbYVuazDZjNA0Y/90/IOOKK3rgzj/G25ZVJ5+dTXc=";
};
patches = [
(fetchpatch {
name = "fixed-compilation-issues-for-arm-aarch64-processor-under-linux.patch";
url = "https://github.com/embree/embree/commit/82ca6b5ccb7abe0403a658a0e079926478f04cb1.patch";
hash = "sha256-l9S4PBk+yQUypQ22l05daD0ruouZKE4VHkGvzKxkH4o=";
})
];
postPatch = ''
# Fix duplicate /nix/store/.../nix/store/.../ paths
sed -i "s|SET(EMBREE_ROOT_DIR .*)|set(EMBREE_ROOT_DIR $out)|" \
common/cmake/embree-config.cmake
sed -i "s|$""{EMBREE_ROOT_DIR}/||" common/cmake/embree-config.cmake
substituteInPlace common/math/math.h --replace 'defined(__MACOSX__) && !defined(__INTEL_COMPILER)' 0
substituteInPlace common/math/math.h --replace 'defined(__WIN32__) || defined(__FreeBSD__)' 'defined(__WIN32__) || defined(__FreeBSD__) || defined(__MACOSX__)'
# substituteInPlace common/math/math.h --replace 'defined(__MACOSX__) && !defined(__INTEL_COMPILER)' 0
# substituteInPlace common/math/math.h --replace 'defined(__WIN32__) || defined(__FreeBSD__)' 'defined(__WIN32__) || defined(__FreeBSD__) || defined(__MACOSX__)'
'';
cmakeFlags = [

View File

@@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, givaro, pkg-config, blas, lapack
, gmpxx
, gmpxx, fetchpatch
}:
assert (!blas.isILP64) && (!lapack.isILP64);
@@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
"--${if stdenv.hostPlatform.fmaSupport then "enable" else "disable"}-fma"
"--${if stdenv.hostPlatform.fma4Support then "enable" else "disable"}-fma4"
];
doCheck = true;
doCheck = stdenv.hostPlatform.gcc.arch or "" != "silvermont";
meta = with lib; {
broken = stdenv.isDarwin;

View File

@@ -241,6 +241,8 @@ stdenv.mkDerivation (finalAttrs: {
"test_rda_download_queue"
] ++ lib.optionals (lib.versionOlder proj.version "8") [
"test_ogr_parquet_write_crs_without_id_in_datum_ensemble_members"
] ++ lib.optionals (builtins.elem stdenv.hostPlatform.gcc.arch or "" [ "alderlake" "znver3" ]) [
"test_jp2openjpeg_22"
] ++ lib.optionals (!usePoppler) [
"test_pdf_jpx_compression"
];

View File

@@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
"-DGLM_TEST_ENABLE=${if doCheck then "ON" else "OFF"}"
];
doCheck = true;
doCheck = stdenv.hostPlatform.gcc.arch or "" != "alderlake";
installPhase = ''
runHook preInstall

View File

@@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
# https://github.com/linbox-team/linbox/issues/304
hardeningDisable = [ "fortify3" ];
doCheck = true;
doCheck = stdenv.hostPlatform.gcc.arch or "" != "silvermont";
enableParallelBuilding = true;

View File

@@ -88,7 +88,7 @@ stdenv.mkDerivation rec {
++ lib.optional (!buildApps) "-DOCIO_BUILD_APPS=OFF";
# precision issues on non-x86
doCheck = stdenv.isx86_64;
doCheck = stdenv.isx86_64 && (!builtins.elem stdenv.hostPlatform.gcc.arch or "" [ "alderlake" "znver3" ]);
meta = with lib; {
homepage = "https://opencolorio.org";

View File

@@ -115,7 +115,7 @@ stdenv.mkDerivation rec {
"StressTest"
"StressTestConcurrent"
"StressTestNonBlocking"
];
] ++ lib.optionals (stdenv.hostPlatform.gcc.arch or "" == "alderlake") [ "TInterruptTest" ];
doCheck = !static;

View File

@@ -66,6 +66,7 @@
, withLibsecret ? true
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd
, testers
, enableUnifiedBuilds ? null
}:
stdenv.mkDerivation (finalAttrs: {
@@ -218,6 +219,8 @@ stdenv.mkDerivation (finalAttrs: {
"-DUSE_GTK4=ON"
] ++ lib.optionals (!systemdSupport) [
"-DENABLE_JOURNALD_LOG=OFF"
] ++ lib.optionals (enableUnifiedBuilds != null) [
"-DENABLE_UNIFIED_BUILDS=${cmakeBool enableUnifiedBuilds}"
];
postPatch = ''

View File

@@ -114,7 +114,10 @@ buildPythonPackage rec {
] ++ lib.optionals stdenv.isDarwin [
"test_addresses" # https://github.com/aio-libs/aiohttp/issues/3572, remove >= v4.0.0
"test_close"
];
]
# issue https://github.com/NixOS/nixpkgs/issues/236552
++ lib.optionals (builtins.elem stdenv.hostPlatform.gcc.arch or "" [ "broadwell" "alderlake" ])
[ "test_web_sendfile_functional" ];
disabledTestPaths = [
"test_proxy_functional.py" # FIXME package proxy.py

View File

@@ -103,6 +103,10 @@ buildPythonPackage rec {
};
};
disabledTests = [] ++ lib.optionals (stdenv.hostPlatform.gcc.arch or "" == "alderlake") [
"test_initialize_rule_populate_bundle"
];
meta = with lib; {
description = "Library for property based testing";
homepage = "https://github.com/HypothesisWorks/hypothesis";

View File

@@ -11,6 +11,7 @@
, requests
, requests-mock
, six
, stdenv
}:
buildPythonPackage rec {
@@ -62,6 +63,7 @@ buildPythonPackage rec {
"test_multiquery_into_dataframe"
"test_multiquery_into_dataframe_dropna"
];
doCheck = !builtins.elem stdenv.hostPlatform.gcc.arch or "" [ "alderlake" "znver3" ];
pythonImportsCheck = [ "influxdb" ];

View File

@@ -62,7 +62,9 @@ in buildPythonPackage rec {
# patch to distutils.
++ lib.optionals python.hasDistutilsCxxPatch [
./numpy-distutils-C++.patch
];
]
++ (if (builtins.elem (stdenv.hostPlatform.gcc.arch or "") [ "broadwell" "alderlake" "znver2" "znver3" ])
then [ ./disable-failed-test.patch ] else []);
postPatch = ''
# fails with multiple errors because we are not using the pinned setuptools version

View File

@@ -0,0 +1,36 @@
--- a/numpy/core/tests/test_umath_accuracy.py 2023-07-09 03:25:45.476263000 +0800
+++ b/numpy/core/tests/test_umath_accuracy.py 2023-08-10 16:42:01.847961778 +0800
@@ -38,33 +38,6 @@
str_to_float = np.vectorize(convert)
class TestAccuracy:
- @platform_skip
- def test_validate_transcendentals(self):
- with np.errstate(all='ignore'):
- data_dir = path.join(path.dirname(__file__), 'data')
- files = os.listdir(data_dir)
- files = list(filter(lambda f: f.endswith('.csv'), files))
- for filename in files:
- filepath = path.join(data_dir, filename)
- with open(filepath) as fid:
- file_without_comments = (r for r in fid if not r[0] in ('$', '#'))
- data = np.genfromtxt(file_without_comments,
- dtype=('|S39','|S39','|S39',int),
- names=('type','input','output','ulperr'),
- delimiter=',',
- skip_header=1)
- npname = path.splitext(filename)[0].split('-')[3]
- npfunc = getattr(np, npname)
- for datatype in np.unique(data['type']):
- data_subset = data[data['type'] == datatype]
- inval = np.array(str_to_float(data_subset['input'].astype(str), data_subset['type'].astype(str)), dtype=eval(datatype))
- outval = np.array(str_to_float(data_subset['output'].astype(str), data_subset['type'].astype(str)), dtype=eval(datatype))
- perm = np.random.permutation(len(inval))
- inval = inval[perm]
- outval = outval[perm]
- maxulperr = data_subset['ulperr'].max()
- assert_array_max_ulp(npfunc(inval), outval, maxulperr)
-
@pytest.mark.parametrize("ufunc", UNARY_OBJECT_UFUNCS)
def test_validate_fp16_transcendentals(self, ufunc):
with np.errstate(all='ignore'):

View File

@@ -227,7 +227,9 @@ buildPythonPackage rec {
"test_binops"
# These tests are unreliable on aarch64-darwin. See https://github.com/pandas-dev/pandas/issues/38921.
"test_rolling"
];
]
++ lib.optionals (builtins.elem stdenv.hostPlatform.gcc.arch or "" [ "broadwell" "alderlake" "znver3" ])
[ "test_rolling_var_numerical_issues" ];
# Tests have relative paths, and need to reference compiled C extensions
# so change directory where `import .test` is able to be resolved

View File

@@ -74,7 +74,11 @@ in buildPythonPackage {
"doc/source/dev/contributor/meson_advanced.rst"
];
})
];
] ++ (
if (builtins.elem stdenv.hostPlatform.gcc.arch or "" [ "broadwell" ])
then [ ./disable-failed-tests.patch ]
else []
);
# Relax deps a bit
postPatch = ''

View File

@@ -0,0 +1,79 @@
diff --color -ur /var/cache/nix/nix-build-python3.10-scipy-1.11.1.drv-0/source/scipy/optimize/tests/test_optimize.py source/scipy/optimize/tests/test_optimize.py
--- /var/cache/nix/nix-build-python3.10-scipy-1.11.1.drv-0/source/scipy/optimize/tests/test_optimize.py 1980-01-02 08:00:00.000000000 +0800
+++ source/scipy/optimize/tests/test_optimize.py 2023-08-29 12:30:51.928840728 +0800
@@ -2804,75 +2804,6 @@
eb_data = setup_test_equal_bounds()
-# This test is about handling fixed variables, not the accuracy of the solvers
-@pytest.mark.xfail_on_32bit("Failures due to floating point issues, not logic")
-@pytest.mark.parametrize('method', eb_data["methods"])
-@pytest.mark.parametrize('kwds', eb_data["kwds"])
-@pytest.mark.parametrize('bound_type', eb_data["bound_types"])
-@pytest.mark.parametrize('constraints', eb_data["constraints"])
-@pytest.mark.parametrize('callback', eb_data["callbacks"])
-def test_equal_bounds(method, kwds, bound_type, constraints, callback):
- """
- Tests that minimizers still work if (bounds.lb == bounds.ub).any()
- gh12502 - Divide by zero in Jacobian numerical differentiation when
- equality bounds constraints are used
- """
- # GH-15051; slightly more skips than necessary; hopefully fixed by GH-14882
- if (platform.machine() == 'aarch64' and method == "TNC"
- and kwds["jac"] is False and callback is not None):
- pytest.skip('Tolerance violation on aarch')
-
- lb, ub = eb_data["lb"], eb_data["ub"]
- x0, i_eb = eb_data["x0"], eb_data["i_eb"]
-
- test_constraints, reference_constraints = constraints
- if test_constraints and not method == 'SLSQP':
- pytest.skip('Only SLSQP supports nonlinear constraints')
- # reference constraints always have analytical jacobian
- # if test constraints are not the same, we'll need finite differences
- fd_needed = (test_constraints != reference_constraints)
-
- bounds = bound_type(lb, ub) # old- or new-style
-
- kwds.update({"x0": x0, "method": method, "bounds": bounds,
- "constraints": test_constraints, "callback": callback})
- res = optimize.minimize(**kwds)
-
- expected = optimize.minimize(optimize.rosen, x0, method=method,
- jac=optimize.rosen_der, bounds=bounds,
- constraints=reference_constraints)
-
- # compare the output of a solution with FD vs that of an analytic grad
- assert res.success
- assert_allclose(res.fun, expected.fun, rtol=1e-6)
- assert_allclose(res.x, expected.x, rtol=5e-4)
-
- if fd_needed or kwds['jac'] is False:
- expected.jac[i_eb] = np.nan
- assert res.jac.shape[0] == 4
- assert_allclose(res.jac[i_eb], expected.jac[i_eb], rtol=1e-6)
-
- if not (kwds['jac'] or test_constraints or isinstance(bounds, Bounds)):
- # compare the output to an equivalent FD minimization that doesn't
- # need factorization
- def fun(x):
- new_x = np.array([np.nan, 2, np.nan, -1])
- new_x[[0, 2]] = x
- return optimize.rosen(new_x)
-
- fd_res = optimize.minimize(fun,
- x0[[0, 2]],
- method=method,
- bounds=bounds[::2])
- assert_allclose(res.fun, fd_res.fun)
- # TODO this test should really be equivalent to factorized version
- # above, down to res.nfev. However, testing found that when TNC is
- # called with or without a callback the output is different. The two
- # should be the same! This indicates that the TNC callback may be
- # mutating something when it should't.
- assert_allclose(res.x[[0, 2]], fd_res.x, rtol=2e-6)
-
-
@pytest.mark.parametrize('method', eb_data["methods"])
def test_all_bounds_equal(method):
# this only tests methods that have parameters factored out when lb==ub

View File

@@ -239,7 +239,8 @@ stdenv.mkDerivation (finalAttrs: {
# TODO: wrapGAppsHook wraps efi capsule even though it is not ELF
dontWrapGApps = true;
doCheck = true;
doCheck = !(builtins.elem (stdenv.hostPlatform.gcc.arch or "")
[ "alderlake" "sandybridge" "silvermont" "znver2" "znver3" ]);
# Environment variables

View File

@@ -51,7 +51,7 @@ stdenv.mkDerivation (finalAttrs: {
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [ "-std=c11" ]);
# darwin currently lacks a pure `pgrep` which is extensively used here
doCheck = !stdenv.isDarwin;
doCheck = !stdenv.isDarwin && !(stdenv.hostPlatform.gcc.arch or "" == "alderlake");
nativeCheckInputs = [ which tcl ps ] ++ lib.optionals stdenv.hostPlatform.isStatic [ getconf ];
checkPhase = ''
runHook preCheck

File diff suppressed because it is too large Load Diff

View File

@@ -7,17 +7,17 @@
, nix-update-script
}:
let version = "1.3.1";
let version = "1.3.3";
in
rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage rec {
pname = "meilisearch";
inherit version;
src = fetchFromGitHub {
owner = "meilisearch";
repo = "MeiliSearch";
rev = "refs/tags/v${version}";
hash = "sha256-jttT4qChoqwTnjjoW0Zc15ZieZN7KD1Us64Tk0eDG3Y=";
rev = "v${version}";
hash = "sha256-BwJZIvFTNw7tbTVQfCZtRXQMAV7hrA+idqC0Soxt8h8=";
};
cargoBuildFlags = [
@@ -25,7 +25,7 @@ rustPlatform.buildRustPackage {
];
cargoLock = {
lockFile = ./Cargo.lock;
lockFile = "${src}/Cargo.lock";
outputHashes = {
"actix-web-static-files-3.0.5" = "sha256-2BN0RzLhdykvN3ceRLkaKwSZtel2DBqZ+uz4Qut+nII=";
"heed-0.12.7" = "sha256-mthHMaTqmNae8gpe4ZnozABKBrgFQdn9KWCvIzJJ+u4=";