From 335099ad19ef99d2834d93ae9061609e8ae0779e Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 17 Nov 2023 17:03:10 +0800 Subject: [PATCH] Add rocky/void detection --- lib/GHCup/Platform.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/GHCup/Platform.hs b/lib/GHCup/Platform.hs index 2017e78..b580335 100644 --- a/lib/GHCup/Platform.hs +++ b/lib/GHCup/Platform.hs @@ -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