···21 testScript = ''
22 nameserver.start()
23 nameserver.wait_for_unit("tinydns.service")
24+25+ # We query tinydns a few times to trigger the bug:
26+ #
27+ # nameserver # [ 6.105872] mmap: tinydns (842): VmData 331776 exceed data ulimit 300000. Update limits or use boot option ignore_rlimit_data.
28+ #
29+ # which was reported in https://github.com/NixOS/nixpkgs/issues/119066.
30+ # Without the patch <nixpkgs/pkgs/tools/networking/djbdns/softlimit.patch>
31+ # it fails on the 10th iteration.
32+ nameserver.succeed(
33+ """
34+ for i in {1..100}; do
35+ host bla.foo.bar 192.168.1.1 | grep '1\.2\.3\.4'
36+ done
37+ """
38+ )
39 '';
40})
···1-{ buildPythonPackage, fetchFromGitHub, lib
2-# propagatedBuildInputs
3-, absl-py, numpy, opt-einsum
4-# checkInputs
5-, jaxlib, pytestCheckHook
0000006}:
78buildPythonPackage rec {
9 pname = "jax";
10- version = "0.2.21";
0001112- # Fetching from pypi doesn't allow us to run the test suite. See https://discourse.nixos.org/t/pythonremovetestsdir-hook-being-run-before-checkphase/14612/3.
13 src = fetchFromGitHub {
14 owner = "google";
15 repo = pname;
16 rev = "jax-v${version}";
17- sha256 = "05w157h6jv20k8w2gnmlxbycmzf24lr5v392q0c5v0qcql11q7pn";
18 };
1920 # jaxlib is _not_ included in propagatedBuildInputs because there are
21 # different versions of jaxlib depending on the desired target hardware. The
22 # JAX project ships separate wheels for CPU, GPU, and TPU. Currently only the
23 # CPU wheel is packaged.
24- propagatedBuildInputs = [ absl-py numpy opt-einsum ];
000000000002526- checkInputs = [ jaxlib pytestCheckHook ];
27 # NOTE: Don't run the tests in the expiremental directory as they require flax
28 # which creates a circular dependency. See https://discourse.nixos.org/t/how-to-nix-ify-python-packages-with-circular-dependencies/14648/2.
29 # Not a big deal, this is how the JAX docs suggest running the test suite
30 # anyhow.
31- pytestFlagsArray = [ "-W ignore::DeprecationWarning" "tests/" ];
00000003233 meta = with lib; {
34 description = "Differentiate, compile, and transform Numpy code";
35- homepage = "https://github.com/google/jax";
36- license = licenses.asl20;
37 maintainers = with maintainers; [ samuela ];
38 };
39}
···1+{ lib
2+, absl-py
3+, buildPythonPackage
4+, fetchFromGitHub
5+, jaxlib
6+, numpy
7+, opt-einsum
8+, pytestCheckHook
9+, pythonOlder
10+, scipy
11+, typing-extensions
12}:
1314buildPythonPackage rec {
15 pname = "jax";
16+ version = "0.2.24";
17+ format = "setuptools";
18+19+ disabled = pythonOlder "3.7";
20021 src = fetchFromGitHub {
22 owner = "google";
23 repo = pname;
24 rev = "jax-v${version}";
25+ sha256 = "1mmn1m4mprpwqlb1smjfdy3f74zm9p3l9dhhn25x6jrcj2cgc5pi";
26 };
2728 # jaxlib is _not_ included in propagatedBuildInputs because there are
29 # different versions of jaxlib depending on the desired target hardware. The
30 # JAX project ships separate wheels for CPU, GPU, and TPU. Currently only the
31 # CPU wheel is packaged.
32+ propagatedBuildInputs = [
33+ absl-py
34+ numpy
35+ opt-einsum
36+ scipy
37+ typing-extensions
38+ ];
39+40+ checkInputs = [
41+ jaxlib
42+ pytestCheckHook
43+ ];
44045 # NOTE: Don't run the tests in the expiremental directory as they require flax
46 # which creates a circular dependency. See https://discourse.nixos.org/t/how-to-nix-ify-python-packages-with-circular-dependencies/14648/2.
47 # Not a big deal, this is how the JAX docs suggest running the test suite
48 # anyhow.
49+ pytestFlagsArray = [
50+ "-W ignore::DeprecationWarning"
51+ "tests/"
52+ ];
53+54+ pythonImportsCheck = [
55+ "jax"
56+ ];
5758 meta = with lib; {
59 description = "Differentiate, compile, and transform Numpy code";
60+ homepage = "https://github.com/google/jax";
61+ license = licenses.asl20;
62 maintainers = with maintainers; [ samuela ];
63 };
64}
···1diff --git a/overlayunit.pas b/overlayunit.pas
2-index a56cea7..9a4f547 100644
3--- a/overlayunit.pas
4+++ b/overlayunit.pas
5-@@ -4880,7 +4880,7 @@ begin
6 //Determine Mangohud dependency status
78 //locate MangoHud and store result in tmp folder
···1112 // Assign Text file dependency_mangohud to variable mangohudVAR
13 AssignFile(mangohudVAR, '/tmp/goverlay/dependency_mangohud');
14-@@ -4889,7 +4889,7 @@ begin
15 CloseFile(mangohudVAR);
1617 // Read String and store value on mangohuddependencyVALUE based on result
···20 mangohuddependencyVALUE := 1
21 else
22 mangohuddependencyVALUE := 0;
23-@@ -4898,7 +4898,7 @@ begin
24 //Determine vkBasalt dependency staus
2526 //locate vkBasalt and store result in tmp folder
···2930 // Assign Text file dependency_mangohud to variable mangohudVAR
31 AssignFile(vkbasaltVAR, '/tmp/goverlay/dependency_vkbasalt');
32-@@ -4907,7 +4907,7 @@ begin
33 CloseFile(vkbasaltVAR);
3435 // Read String and store value on vkbasaltdependencyVALUE based on result
···1diff --git a/overlayunit.pas b/overlayunit.pas
2+index 8c2276d..a62e60a 100644
3--- a/overlayunit.pas
4+++ b/overlayunit.pas
5+@@ -4913,7 +4913,7 @@ begin
6 //Determine Mangohud dependency status
78 //locate MangoHud and store result in tmp folder
···1112 // Assign Text file dependency_mangohud to variable mangohudVAR
13 AssignFile(mangohudVAR, '/tmp/goverlay/dependency_mangohud');
14+@@ -4922,7 +4922,7 @@ begin
15 CloseFile(mangohudVAR);
1617 // Read String and store value on mangohuddependencyVALUE based on result
···20 mangohuddependencyVALUE := 1
21 else
22 mangohuddependencyVALUE := 0;
23+@@ -4931,7 +4931,7 @@ begin
24 //Determine vkBasalt dependency staus
2526 //locate vkBasalt and store result in tmp folder
···2930 // Assign Text file dependency_mangohud to variable mangohudVAR
31 AssignFile(vkbasaltVAR, '/tmp/goverlay/dependency_vkbasalt');
32+@@ -4940,7 +4940,7 @@ begin
33 CloseFile(vkbasaltVAR);
3435 // Read String and store value on vkbasaltdependencyVALUE based on result