···422422 (if v then "True" else "False")
423423 else if isFunction v then
424424 abort "generators.toDhall: cannot convert a function to Dhall"
425425- else if isNull v then
425425+ else if v == null then
426426 abort "generators.toDhall: cannot convert a null to Dhall"
427427 else
428428 builtins.toJSON v;
+1-1
maintainers/scripts/haskell/dependencies.nix
···33 pkgs = import ../../.. {};
44 inherit (pkgs) lib;
55 getDeps = _: pkg: {
66- deps = builtins.filter (x: !isNull x) (map (x: x.pname or null) (pkg.propagatedBuildInputs or []));
66+ deps = builtins.filter (x: x != null) (map (x: x.pname or null) (pkg.propagatedBuildInputs or []));
77 broken = (pkg.meta.hydraPlatforms or [null]) == [];
88 };
99in
···1616 if (any (str: k == str) secretKeys) then v
1717 else if isString v then "'${v}'"
1818 else if isBool v then boolToString v
1919- else if isNull v then "null"
1919+ else if v == null then "null"
2020 else toString v
2121 ;
2222 in
+5-6
nixos/modules/services/web-apps/writefreely.nix
···1010 format = pkgs.formats.ini {
1111 mkKeyValue = key: value:
1212 let
1313- value' = if builtins.isNull value then
1414- ""
1515- else if builtins.isBool value then
1616- if value == true then "true" else "false"
1717- else
1818- toString value;
1313+ value' = lib.optionalString (value != null)
1414+ (if builtins.isBool value then
1515+ if value == true then "true" else "false"
1616+ else
1717+ toString value);
1918 in "${key} = ${value'}";
2019 };
2120
···753753 mktplcRef = {
754754 name = "vscode-eslint";
755755 publisher = "dbaeumer";
756756- version = "2.2.6";
757757- sha256 = "sha256-1yZeyLrXuubhKzobWcd00F/CdU824uJDTkB6qlHkJlQ=";
756756+ version = "2.4.0";
757757+ sha256 = "sha256-7MUQJkLPOF3oO0kpmfP3bWbS3aT7J0RF7f74LW55BQs=";
758758 };
759759 meta = with lib; {
760760 changelog = "https://marketplace.visualstudio.com/items/dbaeumer.vscode-eslint/changelog";
···927927 mktplcRef = {
928928 name = "gitlens";
929929 publisher = "eamodio";
930930- version = "2023.3.1505";
931931- sha256 = "sha256-USAbI2x6UftNfIEJy2Pbqa/BTYJnUBCNjsdm0Pfrz0o=";
930930+ # Stable versions are listed on the GitHub releases page and use a
931931+ # semver scheme, contrary to preview versions which are listed on
932932+ # the VSCode Marketplace and use a calver scheme. We should avoid
933933+ # using preview versions, because they expire after two weeks.
934934+ version = "13.3.2";
935935+ sha256 = "sha256-4o4dmjio/I531szcoeGPVtfrNAyRAPJRrmsNny/PY2w=";
932936 };
933937 meta = with lib; {
934938 changelog = "https://marketplace.visualstudio.com/items/eamodio.gitlens/changelog";
···3535 cffi
3636 ] ++ lib.optionals gurobiSupport ([
3737 gurobipy
3838- ] ++ lib.optional (builtins.isNull gurobiHome) gurobi);
3838+ ] ++ lib.optional (gurobiHome == null) gurobi);
39394040 # Source files have CRLF terminators, which make patch error out when supplied
4141 # with diffs made on *nix machines
···58585959 # Make MIP use the Gurobi solver, if configured to do so
6060 makeWrapperArgs = lib.optional gurobiSupport
6161- "--set GUROBI_HOME ${if builtins.isNull gurobiHome then gurobi.outPath else gurobiHome}";
6161+ "--set GUROBI_HOME ${if gurobiHome == null then gurobi.outPath else gurobiHome}";
62626363 # Tests that rely on Gurobi are activated only when Gurobi support is enabled
6464 disabledTests = lib.optional (!gurobiSupport) "gurobi";
···2525 else "core";
26262727 targetArch =
2828- if isNull targetArchitecture
2828+ if targetArchitecture == null
2929 then defaultTargetArchitecture
3030 else targetArchitecture;
3131in
+1-1
pkgs/stdenv/generic/make-derivation.nix
···214214215215 checkDependencyList = checkDependencyList' [];
216216 checkDependencyList' = positions: name: deps: lib.flip lib.imap1 deps (index: dep:
217217- if lib.isDerivation dep || isNull dep || builtins.typeOf dep == "string" || builtins.typeOf dep == "path" then dep
217217+ if lib.isDerivation dep || dep == null || builtins.typeOf dep == "string" || builtins.typeOf dep == "path" then dep
218218 else if lib.isList dep then checkDependencyList' ([index] ++ positions) name dep
219219 else throw "Dependency is not of a valid type: ${lib.concatMapStrings (ix: "element ${toString ix} of ") ([index] ++ positions)}${name} for ${attrs.name or attrs.pname}");
220220in if builtins.length erroneousHardeningFlags != 0
+3-1
pkgs/tools/admin/azure-cli/default.nix
···2727 substituteInPlace setup.py \
2828 --replace "chardet~=3.0.4" "chardet" \
2929 --replace "javaproperties~=0.5.1" "javaproperties" \
3030- --replace "scp~=0.13.2" "scp"
3030+ --replace "scp~=0.13.2" "scp" \
3131+ --replace "packaging>=20.9,<22.0" "packaging" \
3232+ --replace "fabric~=2.4" "fabric"
31333234 # remove namespace hacks
3335 # remove urllib3 because it was added as 'urllib3[secure]', which doesn't get handled well