From b24f614f0f6aa8363b12f007a44a5d4bc41ec739 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Tue, 17 Oct 2023 10:59:24 +0200 Subject: make filter type-aware We interpret the following types: - ISO8601-formatted strings as dates, - integer-formatted strings as integers, - all other strings as strings. If the filter value matches a format, it is cast into the respective data type. For comparison-based filtering, the tag's value is then cast into the same data type and comparison is performed type-aware. If the tag's value is not castable, we consider it not matching. --- default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 8428c03..5bbe027 100644 --- a/default.nix +++ b/default.nix @@ -9,8 +9,9 @@ let overrides = self: super: { anissue = (super.callCabal2nix "anissue" ./. { }).overrideAttrs (oldAttrs: rec { nativeBuildInputs = [ pkgs.installShellFiles ]; - buildInputs = oldAttrs.buildInputs or [] ++ [ pkgs.makeWrapper ]; - passthru = oldAttrs.passthru // { dependencies = [ + buildInputs = oldAttrs.buildInputs or [ ] ++ [ pkgs.makeWrapper ]; + passthru = oldAttrs.passthru // { + dependencies = [ pkgs.coreutils pkgs.git pkgs.mdcat @@ -40,6 +41,7 @@ rec { buildInputs = [ haskellPackages.cabal-install haskellPackages.ormolu + haskellPackages.pointfree pkgs.ghcid pkgs.haskell-language-server ] ++ anissue.passthru.dependencies; -- cgit v1.2.3