···7 { "1" = dune_1; "2" = dune_2; "3" = dune_3; }."${dune-version}"
8; in
910-if (args ? minimumOCamlVersion && ! lib.versionAtLeast ocaml.version args.minimumOCamlVersion) ||
11- (args ? minimalOCamlVersion && ! lib.versionAtLeast ocaml.version args.minimalOCamlVersion)
12then throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
13else
14
···7 { "1" = dune_1; "2" = dune_2; "3" = dune_3; }."${dune-version}"
8; in
910+if (args ? minimumOCamlVersion && lib.versionOlder ocaml.version args.minimumOCamlVersion) ||
11+ (args ? minimalOCamlVersion && lib.versionOlder ocaml.version args.minimalOCamlVersion)
12then throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
13else
14
+1-1
pkgs/build-support/ocaml/oasis.nix
···8}@args:
910if args ? minimumOCamlVersion &&
11- ! lib.versionAtLeast ocaml.version args.minimumOCamlVersion
12then throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
13else
14
···8}@args:
910if args ? minimumOCamlVersion &&
11+ lib.versionOlder ocaml.version args.minimumOCamlVersion
12then throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
13else
14
+5-5
pkgs/development/compilers/ocaml/generic.nix
···7in
89{ lib, stdenv, fetchurl, ncurses, buildEnv, libunwind, fetchpatch
10-, libX11, xorgproto, useX11 ? safeX11 stdenv && !lib.versionAtLeast version "4.09"
11, aflSupport ? false
12, flambdaSupport ? false
13, spaceTimeSupport ? false
···87 buildFlags = if useNativeCompilers
88 then ["nixpkgs_world_bootstrap_world_opt"]
89 else ["nixpkgs_world"];
90- buildInputs = optional (!lib.versionAtLeast version "4.07") ncurses
91 ++ optionals useX11 [ libX11 xorgproto ];
92 propagatedBuildInputs = optional spaceTimeSupport libunwind;
93 installTargets = [ "install" ] ++ optional useNativeCompilers "installopt";
94- preConfigure = optionalString (!lib.versionAtLeast version "4.04") ''
95 CAT=$(type -tp cat)
96 sed -e "s@/bin/cat@$CAT@" -i config/auto-aux/sharpbang
97- '' + optionalString (stdenv.isDarwin && !lib.versionAtLeast version "4.13") ''
98 # Do what upstream does by default now: https://github.com/ocaml/ocaml/pull/10176
99 # This is required for aarch64-darwin, everything else works as is.
100 AS="${stdenv.cc}/bin/cc -c" ASPP="${stdenv.cc}/bin/cc -c"
···137 '';
138139 platforms = with platforms; linux ++ darwin;
140- broken = stdenv.isAarch64 && !lib.versionAtLeast version "4.06";
141 };
142143})
···7in
89{ lib, stdenv, fetchurl, ncurses, buildEnv, libunwind, fetchpatch
10+, libX11, xorgproto, useX11 ? safeX11 stdenv && lib.versionOlder version "4.09"
11, aflSupport ? false
12, flambdaSupport ? false
13, spaceTimeSupport ? false
···87 buildFlags = if useNativeCompilers
88 then ["nixpkgs_world_bootstrap_world_opt"]
89 else ["nixpkgs_world"];
90+ buildInputs = optional (lib.versionOlder version "4.07") ncurses
91 ++ optionals useX11 [ libX11 xorgproto ];
92 propagatedBuildInputs = optional spaceTimeSupport libunwind;
93 installTargets = [ "install" ] ++ optional useNativeCompilers "installopt";
94+ preConfigure = optionalString (lib.versionOlder version "4.04") ''
95 CAT=$(type -tp cat)
96 sed -e "s@/bin/cat@$CAT@" -i config/auto-aux/sharpbang
97+ '' + optionalString (stdenv.isDarwin && lib.versionOlder version "4.13") ''
98 # Do what upstream does by default now: https://github.com/ocaml/ocaml/pull/10176
99 # This is required for aarch64-darwin, everything else works as is.
100 AS="${stdenv.cc}/bin/cc -c" ASPP="${stdenv.cc}/bin/cc -c"
···137 '';
138139 platforms = with platforms; linux ++ darwin;
140+ broken = stdenv.isAarch64 && lib.versionOlder version "4.06";
141 };
142143})
+1-1
pkgs/development/interpreters/php/generic.nix
···272 export EXTENSION_DIR=$out/lib/php/extensions
273 ''
274 # PKG_CONFIG need not be a relative path
275- + lib.optionalString (!lib.versionAtLeast version "7.4") ''
276 for i in $(find . -type f -name "*.m4"); do
277 substituteInPlace $i \
278 --replace 'test -x "$PKG_CONFIG"' 'type -P "$PKG_CONFIG" >/dev/null'
···272 export EXTENSION_DIR=$out/lib/php/extensions
273 ''
274 # PKG_CONFIG need not be a relative path
275+ + lib.optionalString (lib.versionOlder version "7.4") ''
276 for i in $(find . -type f -name "*.m4"); do
277 substituteInPlace $i \
278 --replace 'test -x "$PKG_CONFIG"' 'type -P "$PKG_CONFIG" >/dev/null'
···1{ stdenv, lib, fetchFromGitLab, ocaml, findlib, camlp4, config-file, lablgtk, xmlm }:
23-if !lib.versionAtLeast ocaml.version "4.02"
4|| lib.versionAtLeast ocaml.version "4.13"
5then throw "lablgtk-extras is not available for OCaml ${ocaml.version}"
6else
···1{ stdenv, lib, fetchFromGitLab, ocaml, findlib, camlp4, config-file, lablgtk, xmlm }:
23+if lib.versionOlder ocaml.version "4.02"
4|| lib.versionAtLeast ocaml.version "4.13"
5then throw "lablgtk-extras is not available for OCaml ${ocaml.version}"
6else
+1-1
pkgs/development/ocaml-modules/logs/default.nix
···8 webpage = "https://erratique.ch/software/${pname}";
9in
1011-if !lib.versionAtLeast ocaml.version "4.03"
12then throw "logs is not available for OCaml ${ocaml.version}"
13else
14
···8 webpage = "https://erratique.ch/software/${pname}";
9in
1011+if lib.versionOlder ocaml.version "4.03"
12then throw "logs is not available for OCaml ${ocaml.version}"
13else
14
+1-1
pkgs/development/ocaml-modules/lua-ml/default.nix
···1{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, opaline }:
23-if !lib.versionAtLeast ocaml.version "4.07"
4then throw "lua-ml is not available for OCaml ${ocaml.version}"
5else
6
···1{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild, opaline }:
23+if lib.versionOlder ocaml.version "4.07"
4then throw "lua-ml is not available for OCaml ${ocaml.version}"
5else
6
···1{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, react, opaline }:
23-if !lib.versionAtLeast ocaml.version "4.04"
4then throw "reactiveData is not available for OCaml ${ocaml.version}"
5else
6
···1{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, react, opaline }:
23+if lib.versionOlder ocaml.version "4.04"
4then throw "reactiveData is not available for OCaml ${ocaml.version}"
5else
6
+1-1
pkgs/development/ocaml-modules/sawja/default.nix
···5 version = "1.5.11";
6in
78-if !lib.versionAtLeast ocaml.version "4.07"
9then throw "${pname} is not available for OCaml ${ocaml.version}"
10else
11
···5 version = "1.5.11";
6in
78+if lib.versionOlder ocaml.version "4.07"
9then throw "${pname} is not available for OCaml ${ocaml.version}"
10else
11
+1-1
pkgs/development/ocaml-modules/sedlex/default.nix
···1{ stdenv, lib, fetchFromGitHub, ocaml, findlib, gen, ppx_tools_versioned, ocaml-migrate-parsetree }:
23-if !lib.versionAtLeast ocaml.version "4.02"
4then throw "sedlex is not available for OCaml ${ocaml.version}"
5else
6
···1{ stdenv, lib, fetchFromGitHub, ocaml, findlib, gen, ppx_tools_versioned, ocaml-migrate-parsetree }:
23+if lib.versionOlder ocaml.version "4.02"
4then throw "sedlex is not available for OCaml ${ocaml.version}"
5else
6
+1-1
pkgs/development/ocaml-modules/sosa/default.nix
···2, findlib, ocaml, ocamlbuild
3}:
45-if !lib.versionAtLeast ocaml.version "4.02"
6then throw "sosa is not available for OCaml ${ocaml.version}"
7else
8
···2, findlib, ocaml, ocamlbuild
3}:
45+if lib.versionOlder ocaml.version "4.02"
6then throw "sosa is not available for OCaml ${ocaml.version}"
7else
8
+1-1
pkgs/development/ocaml-modules/tsdl/default.nix
···1{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, ctypes, result, SDL2, pkg-config, ocb-stubblr }:
23-if !lib.versionAtLeast ocaml.version "4.03"
4then throw "tsdl is not available for OCaml ${ocaml.version}"
5else
6
···1{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, ctypes, result, SDL2, pkg-config, ocb-stubblr }:
23+if lib.versionOlder ocaml.version "4.03"
4then throw "tsdl is not available for OCaml ${ocaml.version}"
5else
6
+1-1
pkgs/development/ocaml-modules/uri/sexp.nix
···1{ lib, ocaml, buildDunePackage, uri, ounit, ppx_sexp_conv, sexplib0 }:
23-if !lib.versionAtLeast ocaml.version "4.04"
4then throw "uri-sexp is not available for OCaml ${ocaml.version}"
5else
6
···1{ lib, ocaml, buildDunePackage, uri, ounit, ppx_sexp_conv, sexplib0 }:
23+if lib.versionOlder ocaml.version "4.04"
4then throw "uri-sexp is not available for OCaml ${ocaml.version}"
5else
6
+1-1
pkgs/development/ocaml-modules/uucp/default.nix
···8 doCheck = true;
9in
1011-if !(lib.versionAtLeast ocaml.version minimumOCamlVersion)
12then builtins.throw "${pname} needs at least OCaml ${minimumOCamlVersion}"
13else
14
···8 doCheck = true;
9in
1011+if lib.versionOlder ocaml.version minimumOCamlVersion
12then builtins.throw "${pname} needs at least OCaml ${minimumOCamlVersion}"
13else
14
+1-1
pkgs/development/ocaml-modules/uunf/default.nix
···5 version = "14.0.0";
6in
78-if !lib.versionAtLeast ocaml.version "4.03"
9then throw "${pname} is not available for OCaml ${ocaml.version}"
10else
11
···5 version = "14.0.0";
6in
78+if lib.versionOlder ocaml.version "4.03"
9then throw "${pname} is not available for OCaml ${ocaml.version}"
10else
11
+2-2
pkgs/development/ocaml-modules/vg/default.nix
···8with lib;
910let
11- inherit (lib) optionals versionAtLeast;
1213 pname = "vg";
14 version = "0.9.4";
15 webpage = "https://erratique.ch/software/${pname}";
16in
1718-if !versionAtLeast ocaml.version "4.03"
19then throw "vg is not available for OCaml ${ocaml.version}"
20else
21
···8with lib;
910let
11+ inherit (lib) optionals versionOlder;
1213 pname = "vg";
14 version = "0.9.4";
15 webpage = "https://erratique.ch/software/${pname}";
16in
1718+if versionOlder ocaml.version "4.03"
19then throw "vg is not available for OCaml ${ocaml.version}"
20else
21
+1-1
pkgs/development/ocaml-modules/wasm/default.nix
···1{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
23-if !lib.versionAtLeast ocaml.version "4.03"
4|| lib.versionOlder "4.13" ocaml.version
5then throw "wasm is not available for OCaml ${ocaml.version}"
6else
···1{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
23+if lib.versionOlder ocaml.version "4.03"
4|| lib.versionOlder "4.13" ocaml.version
5then throw "wasm is not available for OCaml ${ocaml.version}"
6else
+1-1
pkgs/development/ocaml-modules/xmlm/default.nix
···4 webpage = "https://erratique.ch/software/${pname}";
5in
67-if !lib.versionAtLeast ocaml.version "4.02"
8then throw "xmlm is not available for OCaml ${ocaml.version}"
9else
10
···4 webpage = "https://erratique.ch/software/${pname}";
5in
67+if lib.versionOlder ocaml.version "4.02"
8then throw "xmlm is not available for OCaml ${ocaml.version}"
9else
10
+1-1
pkgs/development/ocaml-modules/z3/default.nix
···1{ stdenv, lib, ocaml, findlib, zarith, z3 }:
23-if !lib.versionAtLeast ocaml.version "4.07"
4then throw "z3 is not available for OCaml ${ocaml.version}"
5else
6
···1{ stdenv, lib, ocaml, findlib, zarith, z3 }:
23+if lib.versionOlder ocaml.version "4.07"
4then throw "z3 is not available for OCaml ${ocaml.version}"
5else
6
+1-1
pkgs/development/ocaml-modules/zarith/default.nix
···3, gmp
4}:
56-if !lib.versionAtLeast ocaml.version "4.04"
7then throw "zarith is not available for OCaml ${ocaml.version}"
8else
9
···3, gmp
4}:
56+if lib.versionOlder ocaml.version "4.04"
7then throw "zarith is not available for OCaml ${ocaml.version}"
8else
9
+4-4
pkgs/development/python-modules/ansible/core.nix
···2324let
25 ansible-collections = callPackage ./collections.nix {
26- version = "5.5.0";
27- sha256 = "sha256-uKdtc3iJyb/Q5rDyJ23PjYNtpmcGejVXdvNQTXpm1Rg=";
28 };
29in
30buildPythonPackage rec {
31 pname = "ansible-core";
32- version = "2.12.3";
3334 src = fetchPypi {
35 inherit pname version;
36- sha256 = "sha256-ihNan3TJfKtndZKTdErTQ1D3GVI+i9m7kAjfTPlTryA=";
37 };
3839 # ansible_connection is already wrapped, so don't pass it through
···2324let
25 ansible-collections = callPackage ./collections.nix {
26+ version = "5.6.0";
27+ sha256 = "sha256-rNMHMUNBVNo3bO7rQW7hVBzfuOo8ZIAjpVo0yz7K+fM=";
28 };
29in
30buildPythonPackage rec {
31 pname = "ansible-core";
32+ version = "2.12.5";
3334 src = fetchPypi {
35 inherit pname version;
36+ sha256 = "sha256-HMyZRPEBMxra0e1A1axmqBSRMwUq402wJnp0qnO+67M=";
37 };
3839 # ansible_connection is already wrapped, so don't pass it through
···55 export MAX_JOBS=$NIX_BUILD_CORES
56 '';
570000058 # The executables are just utility scripts that aren't too important
59 postInstall = ''
60 rm -r $out/bin
···55 export MAX_JOBS=$NIX_BUILD_CORES
56 '';
5758+ disabledTestPaths = [
59+ # Unexpected output fields from running code: {'stderr'}
60+ "onnx/examples/np_array_tensorproto.ipynb"
61+ ];
62+63 # The executables are just utility scripts that aren't too important
64 postInstall = ''
65 rm -r $out/bin
···881 oauth2_proxy = oauth2-proxy; # Added 2021-04-18
882 octoprint-plugins = throw "octoprint-plugins are now part of the octoprint.python.pkgs package set"; # Added 2021-01-24
883 ocz-ssd-guru = throw "ocz-ssd-guru has been removed due to there being no source available"; # Added 2021-07-12
0884 ofp = throw "ofp is not compatible with odp-dpdk";
885 olifant = throw "olifant has been removed from nixpkgs, as it was unmaintained"; # Added 2021-08-05
886 onnxruntime = throw "onnxruntime has been removed due to poor maintainability"; # Added 2020-12-04
···881 oauth2_proxy = oauth2-proxy; # Added 2021-04-18
882 octoprint-plugins = throw "octoprint-plugins are now part of the octoprint.python.pkgs package set"; # Added 2021-01-24
883 ocz-ssd-guru = throw "ocz-ssd-guru has been removed due to there being no source available"; # Added 2021-07-12
884+ odpdown = throw "odpdown has been removed because it lacks python3 support"; # Added 2022-04-25
885 ofp = throw "ofp is not compatible with odp-dpdk";
886 olifant = throw "olifant has been removed from nixpkgs, as it was unmaintained"; # Added 2021-08-05
887 onnxruntime = throw "onnxruntime has been removed due to poor maintainability"; # Added 2020-12-04