about summary refs log tree commit diff
path: root/users/Profpatsch/reverse-haskell-deps.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/Profpatsch/reverse-haskell-deps.nix')
-rw-r--r--users/Profpatsch/reverse-haskell-deps.nix26
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