From 12d23b3e64a278ab1419b72b52ffabe9c89100a1 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 30 Jun 2023 01:01:41 +0200 Subject: feat(users/Profpatsch/whatcd-resolver): Add torrent & basic status This is a bit dirty, ideally we have a single polling loop that uses `hx-swap-oob` to fill all status fields in the table (to avoid O(n) looping requests). Change-Id: I78ab392964cf00e39424002fe48cb35a60af184a Reviewed-on: https://cl.tvl.fyi/c/depot/+/8875 Tested-by: BuildkiteCI Reviewed-by: Profpatsch --- third_party/overlays/haskell/default.nix | 2 +- .../haskell/extra-pkgs/pa-json-0.2.0.0.nix | 43 --------------------- .../haskell/extra-pkgs/pa-json-0.2.1.0.nix | 45 ++++++++++++++++++++++ 3 files changed, 46 insertions(+), 44 deletions(-) delete mode 100644 third_party/overlays/haskell/extra-pkgs/pa-json-0.2.0.0.nix create mode 100644 third_party/overlays/haskell/extra-pkgs/pa-json-0.2.1.0.nix (limited to 'third_party/overlays') diff --git a/third_party/overlays/haskell/default.nix b/third_party/overlays/haskell/default.nix index 09b256bbb9ee..b745c063ab30 100644 --- a/third_party/overlays/haskell/default.nix +++ b/third_party/overlays/haskell/default.nix @@ -35,7 +35,7 @@ in pa-field-parser = hsSelf.callPackage ./extra-pkgs/pa-field-parser-0.1.0.1.nix { }; pa-label = hsSelf.callPackage ./extra-pkgs/pa-label-0.1.0.1.nix { }; pa-pretty = hsSelf.callPackage ./extra-pkgs/pa-pretty-0.1.1.0.nix { }; - pa-json = hsSelf.callPackage ./extra-pkgs/pa-json-0.2.0.0.nix { }; + pa-json = hsSelf.callPackage ./extra-pkgs/pa-json-0.2.1.0.nix { }; pa-run-command = hsSelf.callPackage ./extra-pkgs/pa-run-command-0.1.0.0.nix { }; }; }; diff --git a/third_party/overlays/haskell/extra-pkgs/pa-json-0.2.0.0.nix b/third_party/overlays/haskell/extra-pkgs/pa-json-0.2.0.0.nix deleted file mode 100644 index 56ee6eb2d10c..000000000000 --- a/third_party/overlays/haskell/extra-pkgs/pa-json-0.2.0.0.nix +++ /dev/null @@ -1,43 +0,0 @@ -{ mkDerivation -, aeson -, aeson-better-errors -, aeson-pretty -, base -, bytestring -, containers -, hspec-core -, hspec-expectations -, lib -, pa-error-tree -, pa-label -, pa-prelude -, scientific -, text -, time -, vector -}: -mkDerivation { - pname = "pa-json"; - version = "0.2.0.0"; - sha256 = "b57ef3888b8ea3230925675eccd6affbc3d296fc8762f5937435af4bdbd276e4"; - libraryHaskellDepends = [ - aeson - aeson-better-errors - aeson-pretty - base - bytestring - containers - hspec-core - hspec-expectations - pa-error-tree - pa-label - pa-prelude - scientific - text - time - vector - ]; - homepage = "https://github.com/possehl-analytics/pa-hackage"; - description = "Our JSON parsers/encoders"; - license = lib.licenses.bsd3; -} diff --git a/third_party/overlays/haskell/extra-pkgs/pa-json-0.2.1.0.nix b/third_party/overlays/haskell/extra-pkgs/pa-json-0.2.1.0.nix new file mode 100644 index 000000000000..4beeba32fe61 --- /dev/null +++ b/third_party/overlays/haskell/extra-pkgs/pa-json-0.2.1.0.nix @@ -0,0 +1,45 @@ +{ mkDerivation +, aeson +, aeson-better-errors +, aeson-pretty +, base +, base64-bytestring +, bytestring +, containers +, hspec-core +, hspec-expectations +, lib +, pa-error-tree +, pa-label +, pa-prelude +, scientific +, text +, time +, vector +}: +mkDerivation { + pname = "pa-json"; + version = "0.2.1.0"; + sha256 = "d0c274fa38c05d38e9c2c15ee9dd4ff3ac369650dbc918c973863457110646c8"; + libraryHaskellDepends = [ + aeson + aeson-better-errors + aeson-pretty + base + base64-bytestring + bytestring + containers + hspec-core + hspec-expectations + pa-error-tree + pa-label + pa-prelude + scientific + text + time + vector + ]; + homepage = "https://github.com/possehl-analytics/pa-hackage"; + description = "Our JSON parsers/encoders"; + license = lib.licenses.bsd3; +} -- cgit 1.4.1