@@ -112,7 +112,7 @@ hashDerivationModulo (Derivation {
112112 $ " fixed:out"
113113 <> (if hashMode == Recursive then " :r" else " " )
114114 <> " :" <> (Store. algoName @ hashType )
115- <> " :" <> (Store. encodeBase16 digest)
115+ <> " :" <> (Store. encodeInBase Store. Base16 digest)
116116 <> " :" <> path
117117 outputsList -> throwError $ ErrorCall $ " This is weird. A fixed output drv should only have one output named 'out'. Got " ++ show outputsList
118118hashDerivationModulo drv@ (Derivation {inputs = (inputSrcs, inputDrvs)}) = do
@@ -122,7 +122,7 @@ hashDerivationModulo drv@(Derivation {inputs = (inputSrcs, inputDrvs)}) = do
122122 Just hash -> return (hash, outs)
123123 Nothing -> do
124124 drv' <- readDerivation $ Text. unpack path
125- hash <- Store. encodeBase16 <$> hashDerivationModulo drv'
125+ hash <- Store. encodeInBase Store. Base16 <$> hashDerivationModulo drv'
126126 return (hash, outs)
127127 )
128128 return $ Store. hash @ 'Store.SHA256 $ Text. encodeUtf8 $ unparseDrv (drv {inputs = (inputSrcs, inputsModulo)})
@@ -135,7 +135,7 @@ unparseDrv (Derivation {..}) = Text.append "Derive" $ parens
135135 case mFixed of
136136 Nothing -> parens [s outputName, s outputPath, s " " , s " " ]
137137 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]
139139 )
140140 , -- inputDrvs
141141 list $ flip map (Map. toList $ snd inputs) (\ (path, outs) ->
@@ -257,7 +257,7 @@ defaultDerivationStrict = fromValue @(AttrSet (NValue t f m)) >=> \s -> do
257257 drvPath <- pathToText <$> writeDerivation drv'
258258
259259 -- 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'
261261 modify (\ (a, b) -> (a, MS. insert drvPath drvHash b))
262262
263263 let outputsWithContext = Map. mapWithKey (\ out path -> principledMakeNixStringWithSingletonContext path (StringContext drvPath (DerivationOutput out))) (outputs drv')
0 commit comments