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 8cc6595 commit d62d6a2Copy full SHA for d62d6a2
hnix-store-core/src/System/Nix/ReadonlyStore.hs
@@ -24,6 +24,15 @@ makeStorePath storeDir ty h nm = Path storeHash (PathName nm)
24
]
25
storeHash = truncateDigest $ hash $ encodeUtf8 s
26
27
+makeFixedOutputPath :: Text -> Bool -> Digest 'SHA256 -> Text -> Path
28
+makeFixedOutputPath storeDir recursive h nm =
29
+ makeStorePath storeDir ty h' nm
30
+ where
31
+ (ty, h') =
32
+ if recursive
33
+ then ("source", h)
34
+ else ("output:out", hash ("fixed:out:" <> encodeUtf8 (digestText16 h) <> ":"))
35
+
36
makeTextPath :: Text -> Text -> Digest 'SHA256 -> PathSet -> Path
37
makeTextPath storeDir nm h refs = makeStorePath storeDir ty h nm
38
where
0 commit comments