about summary refs log tree commit diff
path: root/users/Profpatsch/parked/reverse-haskell-deps/default.nix.inactive
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2024-10-05T12·37+0200
committerProfpatsch <mail@profpatsch.de>2024-10-05T13·49+0000
commit2b5a10a45c9c183aa4593620757beb15f9203fff (patch)
treec69dc91d13119c57d7b1168d5f7db10d10bcc4bf /users/Profpatsch/parked/reverse-haskell-deps/default.nix.inactive
parentb0ee9cd6947a382067a0506aa79567f4410c6c49 (diff)
chore(users/Profpatsch/reverse-haskell-deps): park r/8779
Change-Id: I3940764f8aba806f97d62b0e1cf8d200aa6346ff
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12582
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/Profpatsch/parked/reverse-haskell-deps/default.nix.inactive')
-rw-r--r--users/Profpatsch/parked/reverse-haskell-deps/default.nix.inactive32
1 files changed, 32 insertions, 0 deletions
diff --git a/users/Profpatsch/parked/reverse-haskell-deps/default.nix.inactive b/users/Profpatsch/parked/reverse-haskell-deps/default.nix.inactive
new file mode 100644
index 000000000000..b0a44420d793
--- /dev/null
+++ b/users/Profpatsch/parked/reverse-haskell-deps/default.nix.inactive
@@ -0,0 +1,32 @@
+{ 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