We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ef34c7 commit f31dc6cCopy full SHA for f31dc6c
hnix-store-core/src/System/Nix/ReadonlyStore.hs
@@ -31,7 +31,11 @@ makeFixedOutputPath storeDir recursive h nm =
31
(ty, h') =
32
if recursive
33
then ("source", h)
34
- else ("output:out", hash ("fixed:out:" <> encodeUtf8 (digestText16 h) <> ":"))
+ else ("output:out", hash @'SHA256 ("fixed:out:" <> encodeUtf8 (digestText16 h) <> ":"))
35
+
36
+makeFixedOutputCA :: Bool -> Digest 'SHA256 -> Text
37
+makeFixedOutputCA recursive h =
38
+ "fixed:" <> (if recursive then "r:" else "") <> digestText32 h
39
40
makeTextPath :: Text -> Text -> Digest 'SHA256 -> PathSet -> Path
41
makeTextPath storeDir nm h refs = makeStorePath storeDir ty h nm
0 commit comments