You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For simplicity (& because we are already in massive breackage) chosen to just
migrate to 0.5.
HNix currently winded-up wih 2 hashing packages, but what to choose would be
seen further down the line, it is smart to postphone in this case.
Copy file name to clipboardExpand all lines: src/Nix/Builtins.hs
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
{-# LANGUAGE TemplateHaskell #-}
13
13
{-# LANGUAGE UndecidableInstances #-}
14
14
{-# LANGUAGE ViewPatterns #-}
15
+
{-# LANGUAGE PackageImports #-} -- 2021-07-05: Due to hashing Haskell IT system situation, in HNix we currently ended-up with 2 hash package dependencies @{hashing, cryptonite}@
Copy file name to clipboardExpand all lines: src/Nix/Effects.hs
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
{-# LANGUAGE DataKinds #-}
6
6
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
7
7
{-# LANGUAGE UndecidableInstances #-}
8
+
{-# LANGUAGE PackageImports #-} -- 2021-07-05: Due to hashing Haskell IT system situation, in HNix we currently ended-up with 2 hash package dependencies @{hashing, cryptonite}@
8
9
9
10
{-# OPTIONS_GHC -Wno-orphans #-}
10
11
@@ -23,6 +24,7 @@ import qualified Data.Text as Text
Copy file name to clipboardExpand all lines: src/Nix/Effects/Derivation.hs
+15-13Lines changed: 15 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
{-# LANGUAGE NamedFieldPuns #-}
3
3
{-# LANGUAGE RecordWildCards #-}
4
4
{-# LANGUAGE ScopedTypeVariables #-}
5
-
5
+
{-# LANGUAGE PackageImports #-} -- 2021-07-05: Due to hashing Haskell IT system situation, in HNix we currently ended-up with 2 hash package dependencies @{hashing, cryptonite}@
6
6
7
7
moduleNix.Effects.Derivation ( defaultDerivationStrict ) where
8
8
@@ -18,6 +18,11 @@ import qualified Data.Map.Strict as Map
18
18
importqualifiedData.SetasSet
19
19
importqualifiedData.TextasText
20
20
21
+
importText.Megaparsec
22
+
importText.Megaparsec.Char
23
+
24
+
importqualified "cryptonite" Crypto.HashasHash-- 2021-07-05: Attrocity of Haskell hashing situation, in HNix we ended-up with 2 hash package dependencies @{hashing, cryptonite}@
25
+
21
26
importNix.Atoms
22
27
importNix.Convert
23
28
importNix.Effects
@@ -35,9 +40,6 @@ import Nix.Value.Monad
35
40
importqualifiedSystem.Nix.ReadonlyStoreasStore
36
41
importqualifiedSystem.Nix.HashasStore
37
42
importqualifiedSystem.Nix.StorePathasStore
38
-
39
-
importText.Megaparsec
40
-
importText.Megaparsec.Char
41
43
importPreludehiding (readFile)
42
44
43
45
@@ -77,21 +79,21 @@ writeDerivation drv@Derivation{inputs, name} = do
77
79
78
80
--| Traverse the graph of inputDrvs to replace fixed output derivations with their fixed output hash.
79
81
-- this avoids propagating changes to their .drv when the output hash stays the same.
80
-
hashDerivationModulo:: (MonadNixetfm, MonadState (b, AttrSetText) m) =>Derivation->m (Store.Digest'Store.SHA256)
82
+
hashDerivationModulo:: (MonadNixetfm, MonadState (b, AttrSetText) m) =>Derivation->m (Hash.DigestHash.SHA256)
0 commit comments