2021-06-26 15:21:41 +02:00
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
# Parses https://packdeps.haskellers.com/reverse
|
|
|
|
# and outputs the amount of reverse dependencies of each hackage package.
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2022-01-30 17:06:58 +01:00
|
|
|
rev = depot.nix.writeExecline "reverse-haskell-deps" { } [
|
|
|
|
"pipeline"
|
|
|
|
[
|
|
|
|
"${pkgs.curl}/bin/curl"
|
|
|
|
"-L"
|
|
|
|
"https://packdeps.haskellers.com/reverse"
|
2021-06-26 15:21:41 +02:00
|
|
|
]
|
|
|
|
rev-hs
|
|
|
|
|
|
|
|
];
|
|
|
|
|
2022-01-30 17:06:58 +01:00
|
|
|
rev-hs = pkgs.writers.writeHaskell "revers-haskell-deps-hs"
|
|
|
|
{
|
|
|
|
libraries = [
|
|
|
|
pkgs.haskellPackages.nicify-lib
|
|
|
|
pkgs.haskellPackages.tagsoup
|
|
|
|
];
|
2021-06-26 15:21:41 +02:00
|
|
|
|
2022-01-30 17:06:58 +01:00
|
|
|
}
|
2021-06-26 15:21:41 +02:00
|
|
|
./reverse-haskell-deps.hs;
|
|
|
|
|
|
|
|
|
2022-01-30 17:06:58 +01:00
|
|
|
in
|
|
|
|
rev
|