File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
hnix-store-core/src/System/Nix Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ module System.Nix.ReadonlyStore where
77import Data.ByteString (ByteString )
88import qualified Data.ByteString as BS
99import qualified Data.HashSet as HS
10+ import Data.Text (Text )
1011import Data.Text.Encoding
1112import System.Nix.Hash
1213import System.Nix.StorePath
@@ -37,5 +38,9 @@ makeFixedOutputPath recursive h nm =
3738 then (" source" , h)
3839 else (" output:out" , hash (" fixed:out:" <> encodeUtf8 (encodeBase16 h) <> " :" ))
3940
41+ makeFixedOutputCA :: Bool -> Digest hashAlgo -> Text
42+ makeFixedOutputCA recursive h =
43+ " fixed:" <> (if recursive then " r:" else " " ) <> encodeBase16 h
44+
4045computeStorePathForText :: (KnownStoreDir storeDir ) => StorePathName -> ByteString -> StorePathSet storeDir -> StorePath storeDir
4146computeStorePathForText nm s refs = makeTextPath nm (hash s) refs
You can’t perform that action at this time.
0 commit comments