mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-11-10 06:47:48 +03:00
update-hackage: actually modify the hacakge.nix copy of the index state (#187)
This commit is contained in:
parent
dffca45996
commit
bec812b3e4
@ -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
|
||||
'';
|
||||
}
|
||||
|
@ -37,6 +37,6 @@ writeShellScriptBin "update-index-state-hashes" ''
|
||||
fi
|
||||
done
|
||||
|
||||
# emit the finall closing brace.
|
||||
# emit the final closing brace.
|
||||
echo '}'
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user