summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/sn/snapcraft/os-platform.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/sn/snapcraft/os-platform.patch')
-rw-r--r--pkgs/by-name/sn/snapcraft/os-platform.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/by-name/sn/snapcraft/os-platform.patch b/pkgs/by-name/sn/snapcraft/os-platform.patch
new file mode 100644
index 000000000000..0b441ec8d4bc
--- /dev/null
+++ b/pkgs/by-name/sn/snapcraft/os-platform.patch
@@ -0,0 +1,21 @@
+diff --git a/snapcraft/utils.py b/snapcraft/utils.py
+index 511effe2..4af5a029 100644
+--- a/snapcraft/utils.py
++++ b/snapcraft/utils.py
+@@ -15,6 +15,7 @@
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ """Utilities for snapcraft."""
++
+ import multiprocessing
+ import os
+ import pathlib
+@@ -91,7 +92,7 @@ def get_os_platform(
+ 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()