config: Add microsoftVisualStudioLicenseAccepted option for MSVC

This commit is contained in:
Ross Smyth 2025-07-28 00:19:15 -04:00
parent de9c29bbd3
commit aa4a380548

View File

@ -274,6 +274,18 @@ let
}
'';
};
microsoftVisualStudioLicenseAccepted = mkOption {
type = types.bool;
default = false;
# getEnv part is in check-meta.nix
defaultText = literalExpression ''false || builtins.getEnv "NIXPKGS_ALLOW_UNFREE" == "1"'';
description = ''
If the Microsoft Visual Studio license has been accepted.
Please read https://www.visualstudio.com/license-terms/mt644918/ and enable this config if you accept.
'';
};
};
in