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