mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-12-13 23:56:37 +03:00
Merge pull request #145 from layus/fix-makeTextPath-order
Reorder references in makeTextPath
This commit is contained in:
commit
f2ee216e9c
@ -8,6 +8,7 @@ module System.Nix.ReadonlyStore where
|
||||
|
||||
import Data.ByteString ( ByteString )
|
||||
import qualified Data.ByteString as BS
|
||||
import Data.List ( sort )
|
||||
import qualified Data.Text as T
|
||||
import qualified Data.HashSet as HS
|
||||
import Data.Text.Encoding
|
||||
@ -41,7 +42,7 @@ makeTextPath
|
||||
makeTextPath fp nm h refs = makeStorePath fp ty h nm
|
||||
where
|
||||
ty =
|
||||
BS.intercalate ":" ("text" : fmap storePathToRawFilePath (HS.toList refs))
|
||||
BS.intercalate ":" ("text" : sort (fmap storePathToRawFilePath (HS.toList refs)))
|
||||
|
||||
makeFixedOutputPath
|
||||
:: forall hashAlgo
|
||||
|
Loading…
Reference in New Issue
Block a user