feat(users/Profpatsch): add reverse-haskell-deps

Dis is dumb

Change-Id: If09300eedff7227ed452dcec7a8e80c7ffb24757
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3231
Tested-by: BuildkiteCI
Reviewed-by: Profpatsch <mail@profpatsch.de>
This commit is contained in:
Profpatsch 2021-06-26 15:21:41 +02:00
parent e22bd20e27
commit f25e930ec7
2 changed files with 98 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ 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