{-# LANGUAGE OverloadedStrings #-}
module System.Nix.Nar.Options
( NarOptions(..)
, defaultNarOptions
, caseHackSuffix
) where
import Data.Text (Text)
import qualified System.Info
data NarOptions = NarOptions {
NarOptions -> Bool
optUseCaseHack :: Bool
}
defaultNarOptions :: NarOptions
defaultNarOptions :: NarOptions
defaultNarOptions = NarOptions {
optUseCaseHack :: Bool
optUseCaseHack =
if String
System.Info.os String -> String -> Bool
forall a. Eq a => a -> a -> Bool
== String
"darwin"
then Bool
True
else Bool
False
}
caseHackSuffix :: Text
caseHackSuffix :: Text
caseHackSuffix = Text
"~nix~case~hack~"