mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-08-17 10:20:33 +03:00
WIP-haskell-cabal: fetch correct cabal revisions
Fetch cabal revisions from `https://hackage.haskell.org/package/{name}-{version}/revisions/`, rather than `https://hackage.haskell.org/package/{name}/revisions/`, which fetches revisions for the latest package version, not the version pinned in `./dist-newstyle/cache/plan.json`.
This commit is contained in:
parent
4710341e67
commit
26a6c3a340
@ -46,10 +46,10 @@ for i, pkg in enumerate(pkgs):
|
||||
id = pkg["id"]
|
||||
version = pkg["pkg-version"]
|
||||
|
||||
print(f"[{i+1}/{pkg_len}] Resolving revision for {name}")
|
||||
print(f"[{i+1}/{pkg_len}] Resolving revision for {name}-{version}")
|
||||
|
||||
revisions = requests.get(
|
||||
f"https://hackage.haskell.org/package/{name}/revisions/",
|
||||
f"https://hackage.haskell.org/package/{name}-{version}/revisions/",
|
||||
headers={"Accept": "application/json"},
|
||||
).json()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user