mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/nixpkgs: add hostPlatform
& buildPlatform
options
This commit is contained in:
parent
5bd04ce09a
commit
8dc8fa38b0
2 changed files with 58 additions and 3 deletions
|
@ -32,11 +32,20 @@ let
|
|||
evalArgs
|
||||
// {
|
||||
modules = evalArgs.modules or [ ] ++ [
|
||||
# Use global packages by default in nixvim's submodule
|
||||
# TODO: `useGlobalPackages` option and/or deprecate using host packages?
|
||||
{
|
||||
_file = ./_shared.nix;
|
||||
nixpkgs.pkgs = lib.mkDefault pkgs;
|
||||
|
||||
nixpkgs = {
|
||||
# Use global packages by default in nixvim's submodule
|
||||
# TODO: `useGlobalPackages` option and/or deprecate using host packages?
|
||||
pkgs = lib.mkDefault pkgs;
|
||||
|
||||
# Inherit platform spec
|
||||
# FIXME: buildPlatform can't use option-default because it already has a default
|
||||
# (it defaults to hostPlatform)...
|
||||
hostPlatform = lib.mkOptionDefault pkgs.stdenv.hostPlatform;
|
||||
buildPlatform = lib.mkDefault pkgs.stdenv.buildPlatform;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue