modules/nixpkgs: don't assign elaborated platforms

See https://github.com/NixOS/nixpkgs/pull/376988
This commit is contained in:
Matt Sturgeon 2025-02-04 18:25:33 +00:00
parent 6288354d43
commit f99264c1fb
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 14 additions and 13 deletions

View file

@ -39,9 +39,9 @@ let
# Use global packages in nixvim's submodule
pkgs = lib.mkIf config.nixpkgs.useGlobalPackages (lib.mkDefault pkgs);
# Inherit platform spec
hostPlatform = lib.mkOptionDefault pkgs.stdenv.hostPlatform;
buildPlatform = lib.mkOverride buildPlatformPrio pkgs.stdenv.buildPlatform;
# Inherit platforms
hostPlatform = lib.mkOptionDefault pkgs.stdenv.hostPlatform.system;
buildPlatform = lib.mkOverride buildPlatformPrio pkgs.stdenv.buildPlatform.system;
};
};