@@ -112,7 +112,7 @@ hashDerivationModulo (Derivation {
112
112
$ " fixed:out"
113
113
<> (if hashMode == Recursive then " :r" else " " )
114
114
<> " :" <> (Store. algoName @ hashType )
115
- <> " :" <> (Store. encodeBase16 digest)
115
+ <> " :" <> (Store. encodeInBase Store. Base16 digest)
116
116
<> " :" <> path
117
117
outputsList -> throwError $ ErrorCall $ " This is weird. A fixed output drv should only have one output named 'out'. Got " ++ show outputsList
118
118
hashDerivationModulo drv@ (Derivation {inputs = (inputSrcs, inputDrvs)}) = do
@@ -122,7 +122,7 @@ hashDerivationModulo drv@(Derivation {inputs = (inputSrcs, inputDrvs)}) = do
122
122
Just hash -> return (hash, outs)
123
123
Nothing -> do
124
124
drv' <- readDerivation $ Text. unpack path
125
- hash <- Store. encodeBase16 <$> hashDerivationModulo drv'
125
+ hash <- Store. encodeInBase Store. Base16 <$> hashDerivationModulo drv'
126
126
return (hash, outs)
127
127
)
128
128
return $ Store. hash @ 'Store.SHA256 $ Text. encodeUtf8 $ unparseDrv (drv {inputs = (inputSrcs, inputsModulo)})
@@ -135,7 +135,7 @@ unparseDrv (Derivation {..}) = Text.append "Derive" $ parens
135
135
case mFixed of
136
136
Nothing -> parens [s outputName, s outputPath, s " " , s " " ]
137
137
Just (Store. SomeDigest (digest :: Store. Digest hashType )) ->
138
- parens [s outputName, s outputPath, s $ prefix <> Store. algoName @ hashType , s $ Store. encodeBase16 digest]
138
+ parens [s outputName, s outputPath, s $ prefix <> Store. algoName @ hashType , s $ Store. encodeInBase Store. Base16 digest]
139
139
)
140
140
, -- inputDrvs
141
141
list $ flip map (Map. toList $ snd inputs) (\ (path, outs) ->
@@ -257,7 +257,7 @@ defaultDerivationStrict = fromValue @(AttrSet (NValue t f m)) >=> \s -> do
257
257
drvPath <- pathToText <$> writeDerivation drv'
258
258
259
259
-- Memoize here, as it may be our last chance in case of readonly stores.
260
- drvHash <- Store. encodeBase16 <$> hashDerivationModulo drv'
260
+ drvHash <- Store. encodeInBase Store. Base16 <$> hashDerivationModulo drv'
261
261
modify (\ (a, b) -> (a, MS. insert drvPath drvHash b))
262
262
263
263
let outputsWithContext = Map. mapWithKey (\ out path -> principledMakeNixStringWithSingletonContext path (StringContext drvPath (DerivationOutput out))) (outputs drv')
0 commit comments