80e04da5d4
Change-Id: I2912e32fe1b2d3d3aff7bafba809634ec4c9adb6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8470 Autosubmit: Profpatsch <mail@profpatsch.de> Reviewed-by: Profpatsch <mail@profpatsch.de> Tested-by: BuildkiteCI
32 lines
640 B
Nix
32 lines
640 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 = [
|
|
depot.users.Profpatsch.my-prelude
|
|
pkgs.haskellPackages.nicify-lib
|
|
pkgs.haskellPackages.tagsoup
|
|
];
|
|
ghcArgs = [ "-threaded" ];
|
|
}
|
|
./ReverseHaskellDeps.hs;
|
|
|
|
|
|
in
|
|
rev
|