diff options
author | Profpatsch <mail@profpatsch.de> | 2021-06-26T13·21+0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-08-01T16·40+0000 |
commit | f25e930ec7bca94511835fc37f5ca837e0b7fa4b (patch) | |
tree | 85fdf5081d98936ceab24e5c5ae0cfdb7aa2aa3e /users/Profpatsch/reverse-haskell-deps.nix | |
parent | e22bd20e275322435c60381b37bce98be08d3e27 (diff) |
feat(users/Profpatsch): add reverse-haskell-deps r/2699
Dis is dumb Change-Id: If09300eedff7227ed452dcec7a8e80c7ffb24757 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3231 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
Diffstat (limited to 'users/Profpatsch/reverse-haskell-deps.nix')
-rw-r--r-- | users/Profpatsch/reverse-haskell-deps.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/users/Profpatsch/reverse-haskell-deps.nix b/users/Profpatsch/reverse-haskell-deps.nix new file mode 100644 index 000000000000..b47347ea9fea --- /dev/null +++ b/users/Profpatsch/reverse-haskell-deps.nix @@ -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 |