Remove as-yet unused System.Nix.Build

This commit is contained in:
Shea Levy 2019-03-22 22:24:57 -04:00
parent 67f1f0b1fa
commit f2beabb10f
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27
2 changed files with 0 additions and 50 deletions

View File

@ -18,7 +18,6 @@ cabal-version: >=1.10
library
exposed-modules: System.Nix.Base32
, System.Nix.Build
, System.Nix.Hash
, System.Nix.Internal.Hash
, System.Nix.Internal.StorePath

View File

@ -1,49 +0,0 @@
{-# LANGUAGE RecordWildCards #-}
{-|
Description : Build related types
Maintainer : srk <srk@48.io>
|-}
module System.Nix.Build (
BuildMode(..)
, BuildStatus(..)
, BuildResult(..)
, buildSuccess
) where
import Data.Text (Text)
import Data.HashSet (HashSet)
data BuildMode = Normal | Repair | Check
deriving (Eq, Ord, Enum, Show)
data BuildStatus =
Built
| Substituted
| AlreadyValid
| PermanentFailure
| InputRejected
| OutputRejected
| TransientFailure -- possibly transient
| CachedFailure -- no longer used
| TimedOut
| MiscFailure
| DependencyFailed
| LogLimitExceeded
| NotDeterministic
deriving (Eq, Ord, Enum, Show)
-- | Result of the build
data BuildResult = BuildResult
{ -- | build status, MiscFailure should be default
status :: !BuildStatus
, -- | possible build error message
error :: !(Maybe Text)
, -- | How many times this build was performed
timesBuilt :: !Integer
, -- | If timesBuilt > 1, whether some builds did not produce the same result
isNonDeterministic :: !Bool
-- XXX: | startTime stopTime time_t
} deriving (Eq, Ord, Show)
buildSuccess BuildResult{..} = status == Built || status == Substituted || status == AlreadyValid