···88}@args:
991010if args ? minimumOCamlVersion &&
1111- ! lib.versionAtLeast ocaml.version args.minimumOCamlVersion
1111+ lib.versionOlder ocaml.version args.minimumOCamlVersion
1212then throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
1313else
1414
+5-5
pkgs/development/compilers/ocaml/generic.nix
···77in
8899{ lib, stdenv, fetchurl, ncurses, buildEnv, libunwind, fetchpatch
1010-, libX11, xorgproto, useX11 ? safeX11 stdenv && !lib.versionAtLeast version "4.09"
1010+, libX11, xorgproto, useX11 ? safeX11 stdenv && lib.versionOlder version "4.09"
1111, aflSupport ? false
1212, flambdaSupport ? false
1313, spaceTimeSupport ? false
···8787 buildFlags = if useNativeCompilers
8888 then ["nixpkgs_world_bootstrap_world_opt"]
8989 else ["nixpkgs_world"];
9090- buildInputs = optional (!lib.versionAtLeast version "4.07") ncurses
9090+ buildInputs = optional (lib.versionOlder version "4.07") ncurses
9191 ++ optionals useX11 [ libX11 xorgproto ];
9292 propagatedBuildInputs = optional spaceTimeSupport libunwind;
9393 installTargets = [ "install" ] ++ optional useNativeCompilers "installopt";
9494- preConfigure = optionalString (!lib.versionAtLeast version "4.04") ''
9494+ preConfigure = optionalString (lib.versionOlder version "4.04") ''
9595 CAT=$(type -tp cat)
9696 sed -e "s@/bin/cat@$CAT@" -i config/auto-aux/sharpbang
9797- '' + optionalString (stdenv.isDarwin && !lib.versionAtLeast version "4.13") ''
9797+ '' + optionalString (stdenv.isDarwin && lib.versionOlder version "4.13") ''
9898 # Do what upstream does by default now: https://github.com/ocaml/ocaml/pull/10176
9999 # This is required for aarch64-darwin, everything else works as is.
100100 AS="${stdenv.cc}/bin/cc -c" ASPP="${stdenv.cc}/bin/cc -c"
···137137 '';
138138139139 platforms = with platforms; linux ++ darwin;
140140- broken = stdenv.isAarch64 && !lib.versionAtLeast version "4.06";
140140+ broken = stdenv.isAarch64 && lib.versionOlder version "4.06";
141141 };
142142143143})
+1-1
pkgs/development/interpreters/php/generic.nix
···272272 export EXTENSION_DIR=$out/lib/php/extensions
273273 ''
274274 # PKG_CONFIG need not be a relative path
275275- + lib.optionalString (!lib.versionAtLeast version "7.4") ''
275275+ + lib.optionalString (lib.versionOlder version "7.4") ''
276276 for i in $(find . -type f -name "*.m4"); do
277277 substituteInPlace $i \
278278 --replace 'test -x "$PKG_CONFIG"' 'type -P "$PKG_CONFIG" >/dev/null'
···99, num
1010}:
11111212-if !lib.versionAtLeast ocaml.version "4.03"
1212+if lib.versionOlder ocaml.version "4.03"
1313then throw "ocsigen-deriving is not available of OCaml ${ocaml.version}"
1414else
1515
+1-1
pkgs/development/ocaml-modules/ppxlib/default.nix
···4949}."${version}"; in
50505151if param ? max_version && lib.versionAtLeast ocaml.version param.max_version
5252-|| param ? min_version && !lib.versionAtLeast ocaml.version param.min_version
5252+|| param ? min_version && lib.versionOlder ocaml.version param.min_version
5353then throw "ppxlib-${version} is not available for OCaml ${ocaml.version}"
5454else
5555
···11{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, react, opaline }:
2233-if !lib.versionAtLeast ocaml.version "4.04"
33+if lib.versionOlder ocaml.version "4.04"
44then throw "reactiveData is not available for OCaml ${ocaml.version}"
55else
66
+1-1
pkgs/development/ocaml-modules/sawja/default.nix
···55 version = "1.5.11";
66in
7788-if !lib.versionAtLeast ocaml.version "4.07"
88+if lib.versionOlder ocaml.version "4.07"
99then throw "${pname} is not available for OCaml ${ocaml.version}"
1010else
1111
+1-1
pkgs/development/ocaml-modules/sedlex/default.nix
···11{ stdenv, lib, fetchFromGitHub, ocaml, findlib, gen, ppx_tools_versioned, ocaml-migrate-parsetree }:
2233-if !lib.versionAtLeast ocaml.version "4.02"
33+if lib.versionOlder ocaml.version "4.02"
44then throw "sedlex is not available for OCaml ${ocaml.version}"
55else
66
+1-1
pkgs/development/ocaml-modules/sosa/default.nix
···22, findlib, ocaml, ocamlbuild
33}:
4455-if !lib.versionAtLeast ocaml.version "4.02"
55+if lib.versionOlder ocaml.version "4.02"
66then throw "sosa is not available for OCaml ${ocaml.version}"
77else
88
+1-1
pkgs/development/ocaml-modules/tsdl/default.nix
···11{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, ctypes, result, SDL2, pkg-config, ocb-stubblr }:
2233-if !lib.versionAtLeast ocaml.version "4.03"
33+if lib.versionOlder ocaml.version "4.03"
44then throw "tsdl is not available for OCaml ${ocaml.version}"
55else
66
+1-1
pkgs/development/ocaml-modules/uri/sexp.nix
···11{ lib, ocaml, buildDunePackage, uri, ounit, ppx_sexp_conv, sexplib0 }:
2233-if !lib.versionAtLeast ocaml.version "4.04"
33+if lib.versionOlder ocaml.version "4.04"
44then throw "uri-sexp is not available for OCaml ${ocaml.version}"
55else
66
···55 version = "14.0.0";
66in
7788-if !lib.versionAtLeast ocaml.version "4.03"
88+if lib.versionOlder ocaml.version "4.03"
99then throw "${pname} is not available for OCaml ${ocaml.version}"
1010else
1111
+2-2
pkgs/development/ocaml-modules/vg/default.nix
···88with lib;
991010let
1111- inherit (lib) optionals versionAtLeast;
1111+ inherit (lib) optionals versionOlder;
12121313 pname = "vg";
1414 version = "0.9.4";
1515 webpage = "https://erratique.ch/software/${pname}";
1616in
17171818-if !versionAtLeast ocaml.version "4.03"
1818+if versionOlder ocaml.version "4.03"
1919then throw "vg is not available for OCaml ${ocaml.version}"
2020else
2121
+1-1
pkgs/development/ocaml-modules/wasm/default.nix
···11{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
2233-if !lib.versionAtLeast ocaml.version "4.03"
33+if lib.versionOlder ocaml.version "4.03"
44|| lib.versionOlder "4.13" ocaml.version
55then throw "wasm is not available for OCaml ${ocaml.version}"
66else
+1-1
pkgs/development/ocaml-modules/xmlm/default.nix
···44 webpage = "https://erratique.ch/software/${pname}";
55in
6677-if !lib.versionAtLeast ocaml.version "4.02"
77+if lib.versionOlder ocaml.version "4.02"
88then throw "xmlm is not available for OCaml ${ocaml.version}"
99else
1010
+1-1
pkgs/development/ocaml-modules/z3/default.nix
···11{ stdenv, lib, ocaml, findlib, zarith, z3 }:
2233-if !lib.versionAtLeast ocaml.version "4.07"
33+if lib.versionOlder ocaml.version "4.07"
44then throw "z3 is not available for OCaml ${ocaml.version}"
55else
66
+1-1
pkgs/development/ocaml-modules/zarith/default.nix
···33, gmp
44}:
5566-if !lib.versionAtLeast ocaml.version "4.04"
66+if lib.versionOlder ocaml.version "4.04"
77then throw "zarith is not available for OCaml ${ocaml.version}"
88else
99
+4-4
pkgs/development/python-modules/ansible/core.nix
···23232424let
2525 ansible-collections = callPackage ./collections.nix {
2626- version = "5.5.0";
2727- sha256 = "sha256-uKdtc3iJyb/Q5rDyJ23PjYNtpmcGejVXdvNQTXpm1Rg=";
2626+ version = "5.6.0";
2727+ sha256 = "sha256-rNMHMUNBVNo3bO7rQW7hVBzfuOo8ZIAjpVo0yz7K+fM=";
2828 };
2929in
3030buildPythonPackage rec {
3131 pname = "ansible-core";
3232- version = "2.12.3";
3232+ version = "2.12.5";
33333434 src = fetchPypi {
3535 inherit pname version;
3636- sha256 = "sha256-ihNan3TJfKtndZKTdErTQ1D3GVI+i9m7kAjfTPlTryA=";
3636+ sha256 = "sha256-HMyZRPEBMxra0e1A1axmqBSRMwUq402wJnp0qnO+67M=";
3737 };
38383939 # ansible_connection is already wrapped, so don't pass it through
···11-#!/usr/bin/env nix-shell
22-#!nix-shell -i python -p python39Packages.requests python39Packages.pip python39Packages.packaging
33-44-import requests
55-import json
66-import subprocess
77-try:
88- from packaging.version import parse
99-except ImportError:
1010- from pip._vendor.packaging.version import parse
1111-1212-1313-URL_PATTERN = 'https://pypi.python.org/pypi/{package}/json'
1414-1515-def findLine(key,derivation):
1616- count = 0
1717- lines = []
1818- for line in derivation:
1919- if key in line:
2020- lines.append(count)
2121- count += 1
2222- return lines
2323-2424-def get_version(package, url_pattern=URL_PATTERN):
2525- """Return version of package on pypi.python.org using json."""
2626- req = requests.get(url_pattern.format(package=package))
2727- version = parse('0')
2828- if req.status_code == requests.codes.ok:
2929- j = json.loads(req.text.encode(req.encoding))
3030- releases = j.get('releases', [])
3131- for release in releases:
3232- ver = parse(release)
3333- if not ver.is_prerelease:
3434- if ver > version:
3535- version = ver
3636- sha256 = j["releases"][release][-1]["digests"]["sha256"]
3737- return version, sha256
3838-3939-4040-if __name__ == '__main__':
4141-4242- nixpkgs = subprocess.check_output(["git", "rev-parse", "--show-toplevel"]).decode("utf-8").strip('\n')
4343- swaytoolsFolder = "/pkgs/tools/wayland/swaytools/"
4444- with open(nixpkgs + swaytoolsFolder + "default.nix", 'r') as arq:
4545- derivation = arq.readlines()
4646-4747- version, sha256 = get_version('swaytools')
4848-4949- key = "version = "
5050- line = findLine(key,derivation)[0]
5151- derivation[line] = f' version = "{version}";\n'
5252-5353- key = "sha256 = "
5454- line = findLine(key,derivation)[0]
5555- derivation[line] = f' sha256 = "{sha256}";\n'
5656-5757- with open(nixpkgs + swaytoolsFolder + "default.nix", 'w') as arq:
5858- arq.writelines(derivation)
+1
pkgs/top-level/aliases.nix
···881881 oauth2_proxy = oauth2-proxy; # Added 2021-04-18
882882 octoprint-plugins = throw "octoprint-plugins are now part of the octoprint.python.pkgs package set"; # Added 2021-01-24
883883 ocz-ssd-guru = throw "ocz-ssd-guru has been removed due to there being no source available"; # Added 2021-07-12
884884+ odpdown = throw "odpdown has been removed because it lacks python3 support"; # Added 2022-04-25
884885 ofp = throw "ofp is not compatible with odp-dpdk";
885886 olifant = throw "olifant has been removed from nixpkgs, as it was unmaintained"; # Added 2021-08-05
886887 onnxruntime = throw "onnxruntime has been removed due to poor maintainability"; # Added 2020-12-04