nixpkgs/pkgs/by-name/sn/snapcraft/os-platform.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
473 B
Diff
Raw Permalink Normal View History

2024-04-18 07:36:54 -04:00
diff --git a/snapcraft/utils.py b/snapcraft/utils.py
2024-07-09 07:42:12 -04:00
index 999a64ec..4f38b4cd 100644
2024-04-18 07:36:54 -04:00
--- a/snapcraft/utils.py
+++ b/snapcraft/utils.py
2024-07-09 07:42:12 -04:00
@@ -94,7 +94,7 @@ def get_os_platform(
2024-04-18 07:36:54 -04:00
release = platform.release()
machine = platform.machine()
- if system == "Linux":
+ if system == "Linux" and "NixOS" not in platform.version():
try:
with filepath.open("rt", encoding="utf-8") as release_file:
lines = release_file.readlines()