haskellPackages.HSH: patch openFd function from unix package

hellwolf 727df1e9 3edac3b7

Changed files
+20 -13
pkgs
development
+3
pkgs/development/haskell-modules/configuration-common.nix
···
})
] super.niv;
inherit
(let
unbreakRepa = packageName: drv: lib.pipe drv [
···
})
] super.niv;
+
# 2024-03-25: HSH broken because of the unix-2.8.0.0 breaking change
+
HSH = appendPatches [./patches/HSH-unix-openFd.patch] super.HSH;
+
inherit
(let
unbreakRepa = packageName: drv: lib.pipe drv [
-1
pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml
···
- hsgnutls-yj # failure in job https://hydra.nixos.org/build/233220680 at 2023-09-02
- hsgsom # failure in job https://hydra.nixos.org/build/233192340 at 2023-09-02
- HsHaruPDF # failure in job https://hydra.nixos.org/build/233220916 at 2023-09-02
-
- HSH # failure in job https://hydra.nixos.org/build/252713464 at 2024-03-16
- HsHyperEstraier # failure in job https://hydra.nixos.org/build/233253787 at 2023-09-02
- hsI2C # failure in job https://hydra.nixos.org/build/233247520 at 2023-09-02
- hSimpleDB # failure in job https://hydra.nixos.org/build/233236736 at 2023-09-02
···
- hsgnutls-yj # failure in job https://hydra.nixos.org/build/233220680 at 2023-09-02
- hsgsom # failure in job https://hydra.nixos.org/build/233192340 at 2023-09-02
- HsHaruPDF # failure in job https://hydra.nixos.org/build/233220916 at 2023-09-02
- HsHyperEstraier # failure in job https://hydra.nixos.org/build/233253787 at 2023-09-02
- hsI2C # failure in job https://hydra.nixos.org/build/233247520 at 2023-09-02
- hSimpleDB # failure in job https://hydra.nixos.org/build/233236736 at 2023-09-02
-5
pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml
···
- clckwrks-theme-bootstrap
- clckwrks-theme-clckwrks
- clckwrks-theme-geo-bootstrap
-
- clean-home
- cleff-plugin
- cless
- cleveland
···
- ddc-tools
- ddc-war
- ddci-core
-
- debian-binary
- debug
- decidable
- decimal-arithmetic
···
- hesh
- hesql
- heterolist
-
- hevm
- hevolisa
- hevolisa-dph
- hexpat-conduit
···
- mysql-simple-typed
- mywatch
- mywork
-
- n-m
- n2o-web
- nakadi-client
- named-servant-client
···
- rest-types
- rest-wai
- restful-snap
-
- restless-git
- restricted-workers
- rethinkdb-model
- rethinkdb-wereHamster
···
- clckwrks-theme-bootstrap
- clckwrks-theme-clckwrks
- clckwrks-theme-geo-bootstrap
- cleff-plugin
- cless
- cleveland
···
- ddc-tools
- ddc-war
- ddci-core
- debug
- decidable
- decimal-arithmetic
···
- hesh
- hesql
- heterolist
- hevolisa
- hevolisa-dph
- hexpat-conduit
···
- mysql-simple-typed
- mywatch
- mywork
- n2o-web
- nakadi-client
- named-servant-client
···
- rest-types
- rest-wai
- restful-snap
- restricted-workers
- rethinkdb-model
- rethinkdb-wereHamster
-7
pkgs/development/haskell-modules/hackage-packages.nix
···
];
description = "Library to mix shell scripting with Haskell programs";
license = "LGPL";
-
hydraPlatforms = lib.platforms.none;
-
broken = true;
}) {};
"HSHHelpers" = callPackage
···
];
description = "Keep your home dir clean by finding old conf files";
license = lib.licenses.bsd3;
-
hydraPlatforms = lib.platforms.none;
mainProgram = "clean-home";
}) {};
···
libraryHaskellDepends = [ base directory filepath HSH ];
description = "Utilities to work with debian binary packages";
license = "unknown";
-
hydraPlatforms = lib.platforms.none;
}) {};
"debian-build" = callPackage
···
doHaddock = false;
description = "Symbolic EVM Evaluator";
license = lib.licenses.agpl3Only;
-
hydraPlatforms = lib.platforms.none;
mainProgram = "hevm";
maintainers = [ lib.maintainers.arturcygan ];
}) {inherit (pkgs) gmp; inherit (pkgs) libff;
···
executableHaskellDepends = [ base HSH mtl process ];
description = "Utility to call iwconfig";
license = "unknown";
-
hydraPlatforms = lib.platforms.none;
mainProgram = "n-m";
}) {};
···
];
description = "Easy Git repository serialization";
license = lib.licenses.gpl3Only;
-
hydraPlatforms = lib.platforms.none;
}) {};
"restricted-workers" = callPackage
···
];
description = "Library to mix shell scripting with Haskell programs";
license = "LGPL";
}) {};
"HSHHelpers" = callPackage
···
];
description = "Keep your home dir clean by finding old conf files";
license = lib.licenses.bsd3;
mainProgram = "clean-home";
}) {};
···
libraryHaskellDepends = [ base directory filepath HSH ];
description = "Utilities to work with debian binary packages";
license = "unknown";
}) {};
"debian-build" = callPackage
···
doHaddock = false;
description = "Symbolic EVM Evaluator";
license = lib.licenses.agpl3Only;
mainProgram = "hevm";
maintainers = [ lib.maintainers.arturcygan ];
}) {inherit (pkgs) gmp; inherit (pkgs) libff;
···
executableHaskellDepends = [ base HSH mtl process ];
description = "Utility to call iwconfig";
license = "unknown";
mainProgram = "n-m";
}) {};
···
];
description = "Easy Git repository serialization";
license = lib.licenses.gpl3Only;
}) {};
"restricted-workers" = callPackage
+17
pkgs/development/haskell-modules/patches/HSH-unix-openFd.patch
···
···
+
diff --git a/HSH/ShellEquivs.hs b/HSH/ShellEquivs.hs
+
index f9287e8..b132737 100644
+
--- a/HSH/ShellEquivs.hs
+
+++ b/HSH/ShellEquivs.hs
+
@@ -223,9 +223,9 @@ catToFIFO fp ichan =
+
return (ChanString "")
+
+
fifoOpen :: FilePath -> IO Handle
+
-fifoOpen fp =
+
- do fd <- throwErrnoPathIf (< 0) "HSH fifoOpen" fp $
+
- openFd fp WriteOnly Nothing defaultFileFlags
+
+fifoOpen fp =
+
+ do fd <- throwErrnoPathIf (< 0) "HSH fifoOpen" fp $
+
+ openFd fp WriteOnly defaultFileFlags
+
fdToHandle fd
+
+
#endif