File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ library
4343 , regex-base
4444 , regex-tdfa-text
4545 , text
46+ , time
4647 , unix
4748 , unordered-containers
4849 , vector
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ module System.Nix.Build (
1010 , buildSuccess
1111 ) where
1212
13+ import Data.Time (UTCTime )
1314import Data.Text (Text )
1415import Data.HashSet (HashSet )
1516import System.Nix.Path (Path )
@@ -39,12 +40,15 @@ data BuildResult = BuildResult
3940 { -- | build status, MiscFailure should be default
4041 status :: ! BuildStatus
4142 , -- | possible build error message
42- error :: ! (Maybe Text )
43+ errorMessage :: ! (Maybe Text )
4344 , -- | How many times this build was performed
4445 timesBuilt :: ! Integer
4546 , -- | If timesBuilt > 1, whether some builds did not produce the same result
4647 isNonDeterministic :: ! Bool
47- -- XXX: | startTime stopTime time_t
48+ , -- Start time of this build
49+ startTime :: ! UTCTime
50+ , -- Stop time of this build
51+ stopTime :: ! UTCTime
4852 } deriving (Eq , Ord , Show )
4953
5054buildSuccess BuildResult {.. } = status == Built || status == Substituted || status == AlreadyValid
You can’t perform that action at this time.
0 commit comments