Skip to content

Commit

Permalink
fix(spago): lock script uses correct package-set rev
Browse files Browse the repository at this point in the history
  • Loading branch information
aciceri authored and DavHau committed Oct 17, 2023
1 parent 419d6f0 commit 44703d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/dream2nix/WIP-spago/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,11 @@ in {
]
''
set -euo pipefail
mkdir $TMPDIR/package-sets
git clone https://github.com/purescript/package-sets.git $TMPDIR/package-sets
cd $TMPDIR/package-sets
curl -fL https://github.com/purescript/package-sets/archive/refs/heads/master.tar.gz | tar xz --strip-components=1
REGISTRY="$(yq ".workspace.package_set.registry" ${config.spago.spagoYamlFile})"
REV="$(git log --grep "$REGISTRY" --pretty=format:"%H")"
git checkout $REV
yq -o=json < ${config.spago.spagoYamlFile} > spago.json
python3 ${./lock.py}
'';
Expand Down

0 comments on commit 44703d4

Please sign in to comment.