nixpkgs/pkgs/data/misc/hackage/default.nix
Robert Hensing 1d3b238d28 all-cabal-hashes: Set name
Used to be just the hash from the basename, which was
not informative when appearing in logs etc.
2022-03-31 18:55:35 +02:00

11 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;
}