depot/third_party/tvl/users/Profpatsch/reverse-haskell-deps.nix
Default email a291c8690a Project import generated by Copybara.
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
2022-05-19 16:39:52 +02:00

31 lines
568 B
Nix

{ depot, pkgs, ... }:
# Parses https://packdeps.haskellers.com/reverse
# and outputs the amount of reverse dependencies of each hackage package.
let
rev = depot.nix.writeExecline "reverse-haskell-deps" { } [
"pipeline"
[
"${pkgs.curl}/bin/curl"
"-L"
"https://packdeps.haskellers.com/reverse"
]
rev-hs
];
rev-hs = pkgs.writers.writeHaskell "revers-haskell-deps-hs"
{
libraries = [
pkgs.haskellPackages.nicify-lib
pkgs.haskellPackages.tagsoup
];
}
./reverse-haskell-deps.hs;
in
rev