mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 13:33:28 +01:00
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:
1 parent
0e55423bf8
commit
3979285062
4 files changed
+7
-7
No files matched your search
+1
-1
@@ -288,7 +288,7 @@ let
|
||||
*/
|
||||
writeCheckedBash = { pkgs, checked ? false, noDeps ? false }: pkgs.writers.makeScriptWriter {
|
||||
interpreter = if noDeps then "/usr/bin/env bash" else "${pkgs.bash}/bin/bash";
|
||||
check = lib.optionalString (checked && !pkgs.hostPlatform.isRiscV64 && !pkgs.hostPlatform.isx86_32) (pkgs.writeScript "check" ''
|
||||
check = lib.optionalString (checked && !pkgs.stdenv.hostPlatform.isRiscV64 && !pkgs.stdenv.hostPlatform.isx86_32) (pkgs.writeScript "check" ''
|
||||
set -efu
|
||||
# SC2054: our toShellVars function doesn't quote list elements with commas
|
||||
# SC2034: We don't use all variables exported by hooks.
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ let
|
||||
, bootCommands ? ""
|
||||
, extraInstallerConfig ? { }
|
||||
, extraSystemConfig ? { }
|
||||
, efi ? !pkgs.hostPlatform.isRiscV64
|
||||
, efi ? !pkgs.stdenv.hostPlatform.isRiscV64
|
||||
, postDisko ? ""
|
||||
, testMode ? "module" # can be one of direct module cli
|
||||
, testBoot ? true # if we actually want to test booting or just create/mount
|
||||
|
||||
Reference in new issue
Block a user