update-hackage: actually modify the hacakge.nix copy of the index state (#187)

This commit is contained in:
Michael Peyton Jones 2019-06-24 11:32:33 +01:00 committed by Moritz Angermann
parent dffca45996
commit bec812b3e4
2 changed files with 4 additions and 3 deletions

View File

@ -13,6 +13,7 @@ import ./update-external.nix
git clone git@github.com:input-output-hk/hackage.nix.git
fi
set -x
# Make sure the hackage index is recent.
echo "Updating local hackage index..."
cabal update
@ -23,8 +24,8 @@ import ./update-external.nix
echo "Running update-index-state-hashes..."
${update-index-state-hashes}/bin/update-index-state-hashes > ./index-state-hashes.nix
cd hackage.nix
${update-index-state-hashes}/bin/update-index-state-hashes > index-state-hashes.nix
'';
}

View File

@ -37,6 +37,6 @@ writeShellScriptBin "update-index-state-hashes" ''
fi
done
# emit the finall closing brace.
# emit the final closing brace.
echo '}'
''