treewide: Fix using pkgs.{build,host}Platform alias

This was recently changed in nixpkgs to be an alias; if nixpkgs is
configured to disable aliases, this usage will fail.
This commit is contained in:
Andrew Marshall authored and Felix Uhl committed 2024-10-29 09:32:41 +01:00
1 parent 0e55423bf8
commit 3979285062
4 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ let
(x: lib.hasSuffix ".nix" x && x != "default.nix")
(lib.attrNames (builtins.readDir ./.))
);
incompatibleTests = lib.optionals pkgs.buildPlatform.isRiscV64 [ "zfs" "zfs-over-legacy" "cli" "module" "complex" ];
incompatibleTests = lib.optionals pkgs.stdenv.buildPlatform.isRiscV64 [ "zfs" "zfs-over-legacy" "cli" "module" "complex" ];
allCompatibleFilenames = lib.subtractLists incompatibleTests allTestFilenames;
allTests = lib.genAttrs allCompatibleFilenames (test: import (./. + "/${test}.nix") { inherit diskoLib pkgs; });