lol

mailctl: fix build

Pin warp to 3.3.30 for twain and mailctl. Twain requires an older
version of http2 than warp supports, see https://github.com/alexmingoia/twain/issues/5

+43 -1
+5 -1
pkgs/development/haskell-modules/configuration-common.nix
··· 336 336 # http2 also overridden in all-packages.nix for mailctl. 337 337 # twain is currently only used by mailctl, so the .overrideScope shouldn't 338 338 # negatively affect any other packages, at least currently... 339 - twain = super.twain.overrideScope (self: _: { http2 = self.http2_3_0_3; }); 339 + # https://github.com/alexmingoia/twain/issues/5 340 + twain = super.twain.overrideScope (self: _: { 341 + http2 = self.http2_3_0_3; 342 + warp = self.warp_3_3_30; 343 + }); 340 344 341 345 # The latest release on hackage has an upper bound on containers which 342 346 # breaks the build, though it works with the version of containers present
+1
pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml
··· 99 99 - text == 2.0.2 # 2023-09-14: Needed for elm (which is currently on ghc-8.10) 100 100 - th-abstraction < 0.6 # 2023-09-11: needed for aeson-2.2.0.0 101 101 - vty == 5.35.1 # 2022-07-08: needed for glirc-2.39.0.1 102 + - warp < 3.3.31 # 2024-03-20: for twain, which requires http2 3.0.3 102 103 - weeder == 2.2.* # 2022-02-21: preserve for GHC 8.10.7 103 104 - weeder == 2.3.* # 2022-05-31: preserve for GHC 9.0.2 104 105 - weeder == 2.4.* # 2023-02-02: preserve for GHC 9.2.*
+1
pkgs/development/haskell-modules/configuration-nix.nix
··· 348 348 349 349 # The curl executable is required for withApplication tests. 350 350 warp = addTestToolDepend pkgs.curl super.warp; 351 + warp_3_3_30 = addTestToolDepend pkgs.curl super.warp_3_3_30; 351 352 352 353 # Test suite requires running a database server. Testing is done upstream. 353 354 hasql = dontCheck super.hasql;
+35
pkgs/development/haskell-modules/hackage-packages.nix
··· 321411 321411 broken = true; 321412 321412 }) {}; 321413 321413 321414 + "warp_3_3_30" = callPackage 321415 + ({ mkDerivation, array, auto-update, base, bsb-http-chunked 321416 + , bytestring, case-insensitive, containers, crypton-x509, directory 321417 + , gauge, ghc-prim, hashable, hspec, hspec-discover, http-client 321418 + , http-date, http-types, http2, iproute, network, process 321419 + , QuickCheck, recv, simple-sendfile, stm, streaming-commons, text 321420 + , time-manager, unix, unliftio, vault, wai, word8 321421 + }: 321422 + mkDerivation { 321423 + pname = "warp"; 321424 + version = "3.3.30"; 321425 + sha256 = "1i5fnvc9n7w013asj7ckpfb59ybbvhif4d6f4g5jwwad50jmlbpg"; 321426 + libraryHaskellDepends = [ 321427 + array auto-update base bsb-http-chunked bytestring case-insensitive 321428 + containers crypton-x509 ghc-prim hashable http-date http-types 321429 + http2 iproute network recv simple-sendfile stm streaming-commons 321430 + text time-manager unix unliftio vault wai word8 321431 + ]; 321432 + testHaskellDepends = [ 321433 + array auto-update base bsb-http-chunked bytestring case-insensitive 321434 + containers crypton-x509 directory ghc-prim hashable hspec 321435 + http-client http-date http-types http2 iproute network process 321436 + QuickCheck recv simple-sendfile stm streaming-commons text 321437 + time-manager unix unliftio vault wai word8 321438 + ]; 321439 + testToolDepends = [ hspec-discover ]; 321440 + benchmarkHaskellDepends = [ 321441 + auto-update base bytestring containers crypton-x509 gauge hashable 321442 + http-date http-types network recv time-manager unix unliftio 321443 + ]; 321444 + description = "A fast, light-weight web server for WAI applications"; 321445 + license = lib.licenses.mit; 321446 + hydraPlatforms = lib.platforms.none; 321447 + }) {}; 321448 + 321414 321449 "warp" = callPackage 321415 321450 ({ mkDerivation, array, auto-update, base, bsb-http-chunked 321416 321451 , bytestring, case-insensitive, containers, crypton-x509, directory
+1
pkgs/top-level/all-packages.nix
··· 2734 2734 # Dependency twain requires an older version of http2, and we cannot mix 2735 2735 # versions of transitive dependencies. 2736 2736 http2 = final.http2_3_0_3; 2737 + warp = final.warp_3_3_30; 2737 2738 }); 2738 2739 2739 2740 mame = libsForQt5.callPackage ../applications/emulators/mame { };