diff options
author | Arnaud Moura <arnaudmoura@gmail.com> | 2020-04-21 22:07:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 22:07:19 +0200 |
commit | cb2b9bd797b4ea8765eda302f66cd13907f28bd6 (patch) | |
tree | 97d955115e06848200d976ba6f81d98f2e2cb1b3 | |
parent | 5db0bb744c08feb0c2c17ecd9cba12c276cde374 (diff) | |
download | Nim-cb2b9bd797b4ea8765eda302f66cd13907f28bd6.tar.gz |
Add package install command for FreeBSD and OpenBSD. (#14051)
-rw-r--r-- | lib/pure/distros.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pure/distros.nim b/lib/pure/distros.nim index 8d4fbc857..a8f0946e1 100644 --- a/lib/pure/distros.nim +++ b/lib/pure/distros.nim @@ -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): |