@@ -36,12 +36,12 @@ import Obelisk.Migration
3636-- * ignored Git files
3737-- * empty directories
3838--
39−-- Uses the same predictive algorithm as that of Nix (`nix hash-path`).
39+-- Uses the same predictive algorithm as that of Nix (`nix-hash`).
4040--
4141-- This function will do a full copy of the directory to a temporary location before
4242-- computing the hash. Because it will be deleting the files in exclude list, and
43−-- other files if the directory is a git repo, which needs to be done as `nix
44−-- hash-path` doesn't support taking an excludes list.
43+-- other files if the directory is a git repo, which needs to be done as `nix-hash`
44+-- doesn't support taking an excludes list.
4545getDirectoryHash :: MonadObelisk m => [FilePath] -> FilePath -> m Hash
4646getDirectoryHash excludes dir = withSystemTempDirectory "obelisk-hash-" $ \tmpDir -> do
4747 withSpinnerNoTrail (T.pack $ "Copying " <> dir <> " to " <> tmpDir) $ do
@@ -87,8 +87,8 @@ getHashAtGitRevision revs excludes dir = withSystemTempDirectory "obelisk-hashre
8787 return result
8888
8989nixHash :: MonadObelisk m => FilePath -> m Hash
90−nixHash dir = withSpinnerNoTrail "Running `nix hash-path`" $
91− readProc $ proc "nix" ["hash-path", "--type", "md5", dir]
90+nixHash dir = withSpinnerNoTrail "Running `nix-hash`" $
91+ readProc $ proc "nix-hash" [dir]
9292
9393-- | Clean up the following files in the git working copy
9494--