···13341334 # we check if wirelessInterfaces is empty as that means all interfaces implicit13351335 shouldWarn = wirelessEnabled && (wirelessInterfaces == [ ] || hasInterfaceConflict);13361336 in13371337- if shouldWarn then13381338- [13391339- ''13401340- Some wireless interface is configured for both for client and access point mode:13411341- this is not allowed. Either specify `networking.wireless.interfaces` and exclude13421342- those from `services.hostapd.radios` or make sure to not run the `wpa_supplicant`13431343- and `hostapd` services simultaneously.13441344- ''13451345- ]13461346- else13471347- [ ];13371337+ lib.optional shouldWarn ''13381338+ Some wireless interface is configured for both for client and access point mode:13391339+ this is not allowed. Either specify `networking.wireless.interfaces` and exclude13401340+ those from `services.hostapd.radios` or make sure to not run the `wpa_supplicant`13411341+ and `hostapd` services simultaneously.13421342+ ''13431343+ ++ lib.optional config.networking.wireless.iwd.enable ''13441344+ hostapd and iwd do conflict,13451345+ use `networking.wireless.enable` in combination with `networking.wireless.interfaces` to avoid it.13461346+ '';13481347 assertions = [13491348 {13501349 assertion = cfg.radios != { };13511350 message = "At least one radio must be configured with hostapd!";13521352- }13531353- {13541354- assertion = !config.networking.wireless.iwd.enable;13551355- message = "hostapd and iwd conflict, use `networking.wireless.enable` in combination with `networking.wireless.interfaces`";13561351 }13571352 ]13581353 # Radio warnings
···19192020buildPythonPackage rec {2121 pname = "tree-sitter-language-pack";2222- version = "0.9.0";2222+ version = "0.9.1";2323 pyproject = true;24242525 # Using the GitHub sources necessitates fetching the treesitter grammar parsers by using a vendored script.···2828 src = fetchPypi {2929 pname = "tree_sitter_language_pack";3030 inherit version;3131- hash = "sha256-kA6zvYLBvPXPIO2FKxtv3H6uieQKhg+l4iGnlmh8NZo=";3131+ hash = "sha256-LaU5dR7MULnmu/yji1dQGjxV5nGGqTnVvxSdnLciCXQ=";3232 };33333434- # Upstream bumped the setuptools and typing-extensions dependencies, but we can still use older versions3535- # since the newer ones aren’t packaged in nixpkgs. We can't use pythonRelaxDepsHook here because it runs3636- # in postBuild, while the dependency check occurs during the build phase.3434+ # Upstream bumped dependencies aggressively, but we can still use older3535+ # versions since the newer ones aren’t packaged in nixpkgs. We can't use3636+ # pythonRelaxDepsHook here because it runs in postBuild, while the dependency3737+ # check occurs during the build phase.3738 postPatch = ''3839 substituteInPlace pyproject.toml \3939- --replace-fail "setuptools>=80.9.0" "setuptools>=78.1.0" \4040- --replace-fail "typing-extensions>=4.14.0" "typing-extensions>=4.13.2"4040+ --replace-fail "typing-extensions>=4.15.0" "typing-extensions>=4.14.1"4141 '';4242+4343+ nativeCheckInputs = [4444+ pytestCheckHook4545+ ];42464347 build-system = [4448 cython···5753 tree-sitter-yaml5854 ];59556060- nativeCheckInputs = [6161- pytestCheckHook5656+ pythonRelaxDeps = [5757+ "tree-sitter"5858+ "tree-sitter-embedded-template"5959+ "tree-sitter-yaml"6260 ];63616462 pythonImportsCheck = [···6862 "tree_sitter_language_pack.bindings"6963 ];70646565+ # make sure import the built version, not the source one7166 preCheck = ''7272- # make sure import the built version, not the source one7367 rm -r tree_sitter_language_pack7468 '';7569