Add package install command for FreeBSD and OpenBSD. (#14051)

This commit is contained in:
Arnaud Moura
2020-04-21 22:07:19 +02:00
committed by GitHub
parent 5db0bb744c
commit cb2b9bd797

View File

@@ -231,8 +231,10 @@ proc foreignDepInstallCmd*(foreignPackageName: string): (string, bool) =
result = ("netpkg install " & p, true)
elif detectOs(NixOS):
result = ("nix-env -i " & p, false)
elif detectOs(Solaris):
elif detectOs(Solaris) or detectOs(FreeBSD):
result = ("pkg install " & p, true)
elif detectOs(OpenBSD):
result = ("pkg_add " & p, true)
elif detectOs(PCLinuxOS):
result = ("rpm -ivh " & p, true)
elif detectOs(ArchLinux) or detectOs(Manjaro):