diff options
author | Kyle Brown <kdb424@gmail.com> | 2021-08-02 00:38:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 03:38:15 -0400 |
commit | 499d4690fbbb59b6baf1698b1ed1574dde6ea7c5 (patch) | |
tree | 4e61186d60973f0d95234022480870fe992dcc1e | |
parent | 2bc07554ccd64d7405d0f386f17f7b1faa95bd6f (diff) | |
download | Nim-499d4690fbbb59b6baf1698b1ed1574dde6ea7c5.tar.gz |
Add Artix to distro list (#18629)
-rw-r--r-- | lib/pure/distros.nim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/pure/distros.nim b/lib/pure/distros.nim index c1bc44eeb..7a9910c1e 100644 --- a/lib/pure/distros.nim +++ b/lib/pure/distros.nim @@ -52,6 +52,7 @@ type CentOS Deepin ArchLinux + Artix Antergos PCLinuxOS Mageia @@ -133,7 +134,7 @@ type const - LacksDevPackages* = {Distribution.Gentoo, Distribution.Slackware, Distribution.ArchLinux} + LacksDevPackages* = {Distribution.Gentoo, Distribution.Slackware, Distribution.ArchLinux, Distribution.Artix} # we cache the result of the 'cmdRelease' # execution for faster platform detections. @@ -180,6 +181,8 @@ proc detectOsImpl(d: Distribution): bool = result = "rhel" in osReleaseID() of Distribution.ArchLinux: result = "arch" in osReleaseID() + of Distribution.Artix: + result = "artix" in osReleaseID() of Distribution.NixOS: # Check if this is a Nix build or NixOS environment result = existsEnv("NIX_BUILD_TOP") or existsEnv("__NIXOS_SET_ENVIRONMENT_DONE") @@ -249,7 +252,7 @@ proc foreignDepInstallCmd*(foreignPackageName: string): (string, bool) = result = ("pkg_add " & p, true) elif detectOs(PCLinuxOS): result = ("rpm -ivh " & p, true) - elif detectOs(ArchLinux) or detectOs(Manjaro): + elif detectOs(ArchLinux) or detectOs(Manjaro) or detectOs(Artix): result = ("pacman -S " & p, true) else: result = ("<your package manager here> install " & p, true) |