tree-wide: use cartesianProduct

Changed files
+8 -8
lib
tests
nixos
pkgs
development
ocaml-modules
ocaml-freestanding
+6 -6
lib/tests/misc.nix
···
boolToString
callPackagesWith
callPackageWith
-
cartesianProductOfSets
+
cartesianProduct
cli
composeExtensions
composeManyExtensions
···
};
testCartesianProductOfEmptySet = {
-
expr = cartesianProductOfSets {};
+
expr = cartesianProduct {};
expected = [ {} ];
};
testCartesianProductOfOneSet = {
-
expr = cartesianProductOfSets { a = [ 1 2 3 ]; };
+
expr = cartesianProduct { a = [ 1 2 3 ]; };
expected = [ { a = 1; } { a = 2; } { a = 3; } ];
};
testCartesianProductOfTwoSets = {
-
expr = cartesianProductOfSets { a = [ 1 ]; b = [ 10 20 ]; };
+
expr = cartesianProduct { a = [ 1 ]; b = [ 10 20 ]; };
expected = [
{ a = 1; b = 10; }
{ a = 1; b = 20; }
···
};
testCartesianProductOfTwoSetsWithOneEmpty = {
-
expr = cartesianProductOfSets { a = [ ]; b = [ 10 20 ]; };
+
expr = cartesianProduct { a = [ ]; b = [ 10 20 ]; };
expected = [ ];
};
testCartesianProductOfThreeSets = {
-
expr = cartesianProductOfSets {
+
expr = cartesianProduct {
a = [ 1 2 3 ];
b = [ 10 20 30 ];
c = [ 100 200 300 ];
+1 -1
nixos/tests/predictable-interface-names.nix
···
let
inherit (import ../lib/testing-python.nix { inherit system pkgs; }) makeTest;
-
testCombinations = pkgs.lib.cartesianProductOfSets {
+
testCombinations = pkgs.lib.cartesianProduct {
predictable = [true false];
withNetworkd = [true false];
systemdStage1 = [true false];
+1 -1
pkgs/development/ocaml-modules/ocaml-freestanding/default.nix
···
maintainers = [ maintainers.sternenseemann ];
homepage = "https://github.com/mirage/ocaml-freestanding";
platforms = builtins.map ({ arch, os }: "${arch}-${os}")
-
(cartesianProductOfSets {
+
(cartesianProduct {
arch = [ "aarch64" "x86_64" ];
os = [ "linux" ];
} ++ [