|
1 | | -diff --git a/snapcraft/providers.py b/snapcraft/providers.py |
2 | | -index a999537a..dcd290a7 100644 |
3 | | ---- a/snapcraft/providers.py |
4 | | -+++ b/snapcraft/providers.py |
5 | | -@@ -21,6 +21,7 @@ import sys |
6 | | - from pathlib import Path |
7 | | - from textwrap import dedent |
8 | | - from typing import Dict, Optional |
9 | | -+import platform |
10 | | - |
11 | | - from craft_cli import emit |
12 | | - from craft_providers import Provider, ProviderError, bases, executor |
13 | | -@@ -178,14 +179,14 @@ def get_base_configuration( |
| 1 | +diff --git i/snapcraft/providers.py w/snapcraft/providers.py |
| 2 | +index 41ab6e8f1..ceaf7539b 100644 |
| 3 | +--- i/snapcraft/providers.py |
| 4 | ++++ w/snapcraft/providers.py |
| 5 | +@@ -177,14 +177,15 @@ def get_base_configuration( |
14 | 6 | # injecting a snap on a non-linux system is not supported, so default to |
15 | 7 | # install snapcraft from the store's stable channel |
16 | 8 | snap_channel = get_managed_environment_snap_channel() |
17 | 9 | - if sys.platform != "linux" and not snap_channel: |
| 10 | ++ import platform |
18 | 11 | + if snap_channel is None and (sys.platform != "linux" or "NixOS" in platform.version()): |
19 | 12 | emit.progress( |
20 | 13 | - "Using snapcraft from snap store channel 'latest/stable' in instance " |
|
0 commit comments