Merge pull request #298968 from hellwolf/fix-haskell-pkgs-HSH

Fix haskell pkgs hsh

authored by Naïm Favier and committed by GitHub f683c5c1 3edac3b7

+20 -13
+3
pkgs/development/haskell-modules/configuration-common.nix
··· 2986 2986 }) 2987 2987 ] super.niv; 2988 2988 2989 + # 2024-03-25: HSH broken because of the unix-2.8.0.0 breaking change 2990 + HSH = appendPatches [./patches/HSH-unix-openFd.patch] super.HSH; 2991 + 2989 2992 inherit 2990 2993 (let 2991 2994 unbreakRepa = packageName: drv: lib.pipe drv [
-1
pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml
··· 2762 2762 - hsgnutls-yj # failure in job https://hydra.nixos.org/build/233220680 at 2023-09-02 2763 2763 - hsgsom # failure in job https://hydra.nixos.org/build/233192340 at 2023-09-02 2764 2764 - HsHaruPDF # failure in job https://hydra.nixos.org/build/233220916 at 2023-09-02 2765 - - HSH # failure in job https://hydra.nixos.org/build/252713464 at 2024-03-16 2766 2765 - HsHyperEstraier # failure in job https://hydra.nixos.org/build/233253787 at 2023-09-02 2767 2766 - hsI2C # failure in job https://hydra.nixos.org/build/233247520 at 2023-09-02 2768 2767 - hSimpleDB # failure in job https://hydra.nixos.org/build/233236736 at 2023-09-02
-5
pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml
··· 873 873 - clckwrks-theme-bootstrap 874 874 - clckwrks-theme-clckwrks 875 875 - clckwrks-theme-geo-bootstrap 876 - - clean-home 877 876 - cleff-plugin 878 877 - cless 879 878 - cleveland ··· 1098 1097 - ddc-tools 1099 1098 - ddc-war 1100 1099 - ddci-core 1101 - - debian-binary 1102 1100 - debug 1103 1101 - decidable 1104 1102 - decimal-arithmetic ··· 2078 2076 - hesh 2079 2077 - hesql 2080 2078 - heterolist 2081 - - hevm 2082 2079 - hevolisa 2083 2080 - hevolisa-dph 2084 2081 - hexpat-conduit ··· 2896 2893 - mysql-simple-typed 2897 2894 - mywatch 2898 2895 - mywork 2899 - - n-m 2900 2896 - n2o-web 2901 2897 - nakadi-client 2902 2898 - named-servant-client ··· 3453 3449 - rest-types 3454 3450 - rest-wai 3455 3451 - restful-snap 3456 - - restless-git 3457 3452 - restricted-workers 3458 3453 - rethinkdb-model 3459 3454 - rethinkdb-wereHamster
-7
pkgs/development/haskell-modules/hackage-packages.nix
··· 9716 9716 ]; 9717 9717 description = "Library to mix shell scripting with Haskell programs"; 9718 9718 license = "LGPL"; 9719 - hydraPlatforms = lib.platforms.none; 9720 - broken = true; 9721 9719 }) {}; 9722 9720 9723 9721 "HSHHelpers" = callPackage ··· 65701 65699 ]; 65702 65700 description = "Keep your home dir clean by finding old conf files"; 65703 65701 license = lib.licenses.bsd3; 65704 - hydraPlatforms = lib.platforms.none; 65705 65702 mainProgram = "clean-home"; 65706 65703 }) {}; 65707 65704 ··· 83665 83662 libraryHaskellDepends = [ base directory filepath HSH ]; 83666 83663 description = "Utilities to work with debian binary packages"; 83667 83664 license = "unknown"; 83668 - hydraPlatforms = lib.platforms.none; 83669 83665 }) {}; 83670 83666 83671 83667 "debian-build" = callPackage ··· 145813 145809 doHaddock = false; 145814 145810 description = "Symbolic EVM Evaluator"; 145815 145811 license = lib.licenses.agpl3Only; 145816 - hydraPlatforms = lib.platforms.none; 145817 145812 mainProgram = "hevm"; 145818 145813 maintainers = [ lib.maintainers.arturcygan ]; 145819 145814 }) {inherit (pkgs) gmp; inherit (pkgs) libff; ··· 211144 211139 executableHaskellDepends = [ base HSH mtl process ]; 211145 211140 description = "Utility to call iwconfig"; 211146 211141 license = "unknown"; 211147 - hydraPlatforms = lib.platforms.none; 211148 211142 mainProgram = "n-m"; 211149 211143 }) {}; 211150 211144 ··· 256962 256956 ]; 256963 256957 description = "Easy Git repository serialization"; 256964 256958 license = lib.licenses.gpl3Only; 256965 - hydraPlatforms = lib.platforms.none; 256966 256959 }) {}; 256967 256960 256968 256961 "restricted-workers" = callPackage
+17
pkgs/development/haskell-modules/patches/HSH-unix-openFd.patch
··· 1 + diff --git a/HSH/ShellEquivs.hs b/HSH/ShellEquivs.hs 2 + index f9287e8..b132737 100644 3 + --- a/HSH/ShellEquivs.hs 4 + +++ b/HSH/ShellEquivs.hs 5 + @@ -223,9 +223,9 @@ catToFIFO fp ichan = 6 + return (ChanString "") 7 + 8 + fifoOpen :: FilePath -> IO Handle 9 + -fifoOpen fp = 10 + - do fd <- throwErrnoPathIf (< 0) "HSH fifoOpen" fp $ 11 + - openFd fp WriteOnly Nothing defaultFileFlags 12 + +fifoOpen fp = 13 + + do fd <- throwErrnoPathIf (< 0) "HSH fifoOpen" fp $ 14 + + openFd fp WriteOnly defaultFileFlags 15 + fdToHandle fd 16 + 17 + #endif