mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
1d3b238d28
Used to be just the hash from the basename, which was not informative when appearing in logs etc.
12 lines
384 B
Nix
12 lines
384 B
Nix
# Hackage database snapshot, used by maintainers/scripts/regenerate-hackage-packages.sh
|
|
# and callHackage
|
|
{ lib, fetchurl }:
|
|
let
|
|
pin = builtins.fromJSON (builtins.readFile ./pin.json);
|
|
in
|
|
fetchurl {
|
|
inherit (pin) url sha256;
|
|
name = "all-cabal-hashes-${lib.substring 0 7 pin.commit}.tar.gz";
|
|
passthru.updateScript = ../../../../maintainers/scripts/haskell/update-hackage.sh;
|
|
}
|