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
|
|
|
|
|
|
|
|
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 = [
|
2023-04-08 12:59:01 +02:00
|
|
|
depot.users.Profpatsch.my-prelude
|
2021-06-26 15:21:41 +02:00
|
|
|
pkgs.haskellPackages.nicify-lib
|
|
|
|
pkgs.haskellPackages.tagsoup
|
|
|
|
];
|
2023-04-08 14:19:20 +02:00
|
|
|
ghcArgs = [ "-threaded" ];
|
2021-06-26 15:21:41 +02:00
|
|
|
}
|
2023-04-08 12:59:01 +02:00
|
|
|
./ReverseHaskellDeps.hs;
|
2021-06-26 15:21:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
in
|
|
|
|
rev
|