Skip to content

Commit 9bf8cab

Browse files
running-grassmanateelazycat
authored andcommitted
support NixPkgs with nix profile
1 parent 483a2da commit 9bf8cab

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dependencies.json

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
"wmctrl",
1515
"node"
1616
],
17+
"nix": [
18+
"wmctrl",
19+
"node"
20+
],
1721
"emerge": [
1822
"x11-misc/wmctrl",
1923
"dev-python/gssapi",

install-eaf.py

+4
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ def install_sys_deps(distro: str, deps_list):
137137
command = ['doas', 'pkg', '-y', 'install']
138138
elif which("guix"):
139139
command = ['guix', 'install']
140+
elif which("nix"):
141+
command = ['nix', 'profile', 'install']
140142
elif which("zypper"):
141143
command = ['sudo', 'zypper', 'install','-y']
142144
command.extend(deps_list)
@@ -305,6 +307,8 @@ def get_distro():
305307
distro = "zypper"
306308
elif which("brew"):
307309
distro = "brew"
310+
elif which("nix"):
311+
distro = "nix"
308312
elif sys.platform == "linux":
309313
print("[EAF] Unsupported Linux distribution/package manager.")
310314
print(" Please see dependencies.json for list of dependencies.")

0 commit comments

Comments
 (0)