mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-11 22:37:18 +03:00
fix(spago): lock script uses correct package-set
rev
This commit is contained in:
parent
419d6f08c4
commit
44703d424e
@ -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}
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user