summary refs log tree commit diff
path: root/pkgs/tools/system/osquery/platform-nixos.patch
blob: 7e1afcb640b3d8d6d101d776db1716e1d76e3dab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/tools/get_platform.py b/tools/get_platform.py
index 3dd34516..f53ca83a 100644
--- a/tools/get_platform.py
+++ b/tools/get_platform.py
@@ -26,6 +26,8 @@ DEBIAN_VERSION = "/etc/debian_version"
 GENTOO_RELEASE = "/etc/gentoo-release"
 
 def _platform():
+    return ("nixos", "nixos")
+
     osType, _, _, _, _, _ = platform.uname()
 
     if osType == "Windows":
@@ -75,6 +77,8 @@ def _platform():
         return (None, osType.lower())
 
 def _distro(osType):
+    return "unknown_version"
+
     def getRedhatDistroVersion(pattern):
         with open(SYSTEM_RELEASE, "r") as fd:
             contents = fd.read()