haskellPackages.qhs: 0.4.1 -> 0.4.3

Use the upstream release with relaxed dependency bounds and declared
test build tools. Fetch it without IFD and keep the built executable on
PATH during checkPhase.
This commit is contained in:
Peter A.
2026-05-07 12:48:05 +02:00
committed by Wolfgang Walther
parent 4911739d60
commit 6790716eaa
4 changed files with 21 additions and 3 deletions
@@ -832,6 +832,15 @@ with haskellLib;
# Tests require a Kafka broker running locally
haskakafka = dontCheck super.haskakafka;
# https://github.com/itchyny/qhs/issues/8
qhs = overrideSrc {
version = "0.4.3";
src = pkgs.fetchzip {
url = "mirror://hackage/qhs-0.4.3/qhs-0.4.3.tar.gz";
sha256 = "191015m47qdxzi8w5pvadgv95g8vk7v2gr76jzfgglyjy6zhb5wb";
};
} (warnAfterVersion "0.4.2" super.qhs);
# Fix build with time >= 1.10 while retaining compat with time < 1.9
mbox = appendPatch ./patches/mbox-time-1.10.patch (
overrideCabal {
@@ -5160,7 +5160,6 @@ broken-packages:
- qc-oi-testgenerator # failure in job https://hydra.nixos.org/build/233197822 at 2023-09-02
- qd # failure in job https://hydra.nixos.org/build/233213936 at 2023-09-02
- qed # failure in job https://hydra.nixos.org/build/233249635 at 2023-09-02
- qhs # failure in job https://hydra.nixos.org/build/315099159 at 2025-11-29
- qhull-simple # failure in job https://hydra.nixos.org/build/233248108 at 2023-09-02
- qif # failure in job https://hydra.nixos.org/build/233227609 at 2023-09-02
- QIO # failure in job https://hydra.nixos.org/build/233233009 at 2023-09-02
@@ -134,6 +134,18 @@ builtins.intersectAttrs super {
### END HASKELL-LANGUAGE-SERVER SECTION ###
###########################################
qhs = lib.pipe super.qhs [
# Package does not declare tool dependency hspec-discover
(addTestToolDepends [ self.hspec-discover ])
# tests depend on executable
(overrideCabal (drv: {
preCheck = ''
${drv.preCheck or ""}
export PATH="$PWD/dist/build/qhs:$PATH"
'';
}))
];
# Test suite needs executable
agda2lagda = overrideCabal (drv: {
preCheck = ''
-2
View File
@@ -569853,9 +569853,7 @@ self: {
doHaddock = false;
description = "Command line tool qhs, SQL queries on CSV and TSV files";
license = lib.meta.getLicenseFromSpdxId "MIT";
hydraPlatforms = lib.platforms.none;
mainProgram = "qhs";
broken = true;
}
) { };