tvl-depot/users/Profpatsch/reverse-haskell-deps/default.nix
Profpatsch 80e04da5d4 docs(users/Profpatsch): Add small README to most subdirs
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
2023-04-08 12:25:07 +00:00

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