tvl-depot/users/Profpatsch/reverse-haskell-deps/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
640 B
Nix
Raw Normal View History

{ 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