Skip to content

Commit 34f2ad0

Browse files
committed
nareffetsio for addToStore in hnix-store-remote
1 parent 7bd82c9 commit 34f2ad0

File tree

1 file changed

+3
-3
lines changed
  • hnix-store-remote/src/System/Nix/Store

1 file changed

+3
-3
lines changed

hnix-store-remote/src/System/Nix/Store/Remote.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import qualified System.Nix.GC as GC
5252
import System.Nix.Hash (Digest, HashAlgorithm)
5353
import System.Nix.Path
5454
import System.Nix.Hash
55-
import System.Nix.Nar (localPackNar, putNar)
55+
import System.Nix.Nar (localPackNar, putNar, narEffectsIO)
5656
import System.Nix.Util
5757

5858
import System.Nix.Store.Remote.Types
@@ -206,10 +206,10 @@ addToStore
206206
-> MonadStore Path
207207
addToStore name pth recursive algoProxy pfilter repair = do
208208
-- Get length first
209-
len <- liftIO $ LBS.length . B.runPut . putNar <$> localPackNar undefined pth
209+
len <- liftIO $ LBS.length . B.runPut . putNar <$> localPackNar narEffectsIO pth
210210
-- Fetch full NAR bytestring separately. We are trying to
211211
-- avoid forcing the full string in memory
212-
bs :: LBS.ByteString <- liftIO $ B.runPut . putNar <$> localPackNar undefined pth
212+
bs :: LBS.ByteString <- liftIO $ B.runPut . putNar <$> localPackNar narEffectsIO pth
213213
runOpArgs AddToStore $ do
214214
putByteStringLen name
215215
-- TODO: really send the string 0 or 1? Or is this Word8's 0 and 1?

0 commit comments

Comments
 (0)