Add rocky/void detection

This commit is contained in:
Julian Ospald 2023-11-17 17:03:10 +08:00
parent b1106985ec
commit 335099ad19
No known key found for this signature in database
GPG Key ID: 4275CDA6A29BED43
1 changed files with 3 additions and 0 deletions

View File

@ -152,6 +152,9 @@ getLinuxDistro = do
| hasWord name ["exherbo"] -> Exherbo
| hasWord name ["gentoo"] -> Gentoo
| hasWord name ["amazonlinux", "Amazon Linux"] -> AmazonLinux
| hasWord name ["rocky", "Rocky Linux"] -> Rocky
-- https://github.com/void-linux/void-packages/blob/master/srcpkgs/base-files/files/os-release
| hasWord name ["void", "Void Linux"] -> Void
| otherwise -> UnknownLinux
pure (distro, parsedVer)
where