mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 02:12:11 +00:00
Add package install command for FreeBSD and OpenBSD. (#14051)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user