Add package install command for FreeBSD and OpenBSD. (#14051)
This commit is contained in:
parent
5db0bb744c
commit
cb2b9bd797
1 changed files with 3 additions and 1 deletions
|
|
@ -231,8 +231,10 @@ proc foreignDepInstallCmd*(foreignPackageName: string): (string, bool) =
|
||||||
result = ("netpkg install " & p, true)
|
result = ("netpkg install " & p, true)
|
||||||
elif detectOs(NixOS):
|
elif detectOs(NixOS):
|
||||||
result = ("nix-env -i " & p, false)
|
result = ("nix-env -i " & p, false)
|
||||||
elif detectOs(Solaris):
|
elif detectOs(Solaris) or detectOs(FreeBSD):
|
||||||
result = ("pkg install " & p, true)
|
result = ("pkg install " & p, true)
|
||||||
|
elif detectOs(OpenBSD):
|
||||||
|
result = ("pkg_add " & p, true)
|
||||||
elif detectOs(PCLinuxOS):
|
elif detectOs(PCLinuxOS):
|
||||||
result = ("rpm -ivh " & p, true)
|
result = ("rpm -ivh " & p, true)
|
||||||
elif detectOs(ArchLinux) or detectOs(Manjaro):
|
elif detectOs(ArchLinux) or detectOs(Manjaro):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue