Skip to content

haskellPackages.HsOpenSSL-x509-system: fix Mac runtime - #450225

Merged
wolfgangwalther merged 2 commits into
NixOS:haskell-updatesfrom
raehik:raehik/hs-hsopenssl-x509-mac-fix
Oct 13, 2025
Merged

wolfgangwalther merged 2 commits into
NixOS:haskell-updatesfrom
raehik:raehik/hs-hsopenssl-x509-mac-fix

Conversation

@raehik

@raehik raehik commented Oct 9, 2025

Copy link
Copy Markdown
Contributor

HsOpenSSL-x509-system has platform-specific code for getting at system certs.
For Mac, it calls security and trusts the $PATH. This doesn't work on Nix.
I use the same bandaid security -> /usr/bin/security applied to similar packages.

This issue has cropped up plenty over time, most recently:

The fix never got propagated to HsOpenSSL-x509-system, which is used by the less-popular http-client-openssl.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: haskell General-purpose, statically typed, purely functional programming language labels Oct 9, 2025
@raehik

raehik commented Oct 9, 2025

Copy link
Copy Markdown
Contributor Author

I have an upstream issue at redneb/HsOpenSSL-x509-system#6 , but no solution, and the related packages similarly have long-standing languishing issues ( e.g. kazu-yamamoto/crypton-certificate#9 ).

@Sigmanificient

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 450225
Commit: f0c60315160364fdc21feeadf9c096a793a48e6c (subsequent changes)
Merge: 9c60346df1d5edb638a8e5723a9c202a2b11df22

Logs: https://github.com/Sigmanificient/nixpkgs-review-gha/actions/runs/18372176267


x86_64-darwin (sandbox = true)

✅ 16 packages built:
  • glirc
  • haskellPackages.HsOpenSSL-x509-system
  • haskellPackages.HsOpenSSL-x509-system.doc
  • haskellPackages.ehlo
  • haskellPackages.ehlo.doc
  • haskellPackages.gerrit
  • haskellPackages.gerrit.doc
  • haskellPackages.glirc
  • haskellPackages.glirc.doc
  • haskellPackages.hookup
  • haskellPackages.hookup.doc
  • haskellPackages.http-client-openssl
  • haskellPackages.http-client-openssl.doc
  • haskellPackages.vaultenv
  • haskellPackages.vaultenv.doc
  • vaultenv

aarch64-darwin (sandbox = true)

✅ 16 packages built:
  • glirc
  • haskellPackages.HsOpenSSL-x509-system
  • haskellPackages.HsOpenSSL-x509-system.doc
  • haskellPackages.ehlo
  • haskellPackages.ehlo.doc
  • haskellPackages.gerrit
  • haskellPackages.gerrit.doc
  • haskellPackages.glirc
  • haskellPackages.glirc.doc
  • haskellPackages.hookup
  • haskellPackages.hookup.doc
  • haskellPackages.http-client-openssl
  • haskellPackages.http-client-openssl.doc
  • haskellPackages.vaultenv
  • haskellPackages.vaultenv.doc
  • vaultenv

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 9, 2025
It's the same sort of platform-specific code as the
{crypton-,}x509-system packages. Applying the same bandaid fixes.
@raehik
raehik force-pushed the raehik/hs-hsopenssl-x509-mac-fix branch from f0c6031 to 4debea0 Compare October 10, 2025 11:34
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. and removed 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. labels Oct 10, 2025
@raehik
raehik changed the base branch from master to haskell-updates October 10, 2025 12:38
@nixpkgs-ci nixpkgs-ci Bot closed this Oct 10, 2025
@nixpkgs-ci nixpkgs-ci Bot reopened this Oct 10, 2025
@raehik

raehik commented Oct 13, 2025

Copy link
Copy Markdown
Contributor Author

This is targeting haskell-updates now. ping @wolfgangwalther

@wolfgangwalther

Copy link
Copy Markdown
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 450225 --package haskellPackages.crypton-x509-system --package haskellPackages.llvm-hs --package haskellPackages.GLHUI --package haskellPackages.SDL-mixer --package haskellPackages.SDL-image --package haskellPackages.HTF --package haskellPackages.HsOpenSSL-x509-system --package haskellPackages.di-core --package haskellPackages.x509-system
Commit: 4debea0de966f33505b745cfc681088c53e29921


aarch64-darwin

✅ 13 packages built:
  • haskellPackages.HTF
  • haskellPackages.HTF.doc (haskellPackages.HTF.doc.doc)
  • haskellPackages.HsOpenSSL-x509-system
  • haskellPackages.HsOpenSSL-x509-system.doc (haskellPackages.HsOpenSSL-x509-system.doc.doc)
  • haskellPackages.SDL-image
  • haskellPackages.SDL-image.data (haskellPackages.SDL-image.data.data, haskellPackages.SDL-image.data.doc)
  • haskellPackages.SDL-image.doc (haskellPackages.SDL-image.doc.data, haskellPackages.SDL-image.doc.doc)
  • haskellPackages.crypton-x509-system
  • haskellPackages.crypton-x509-system.doc (haskellPackages.crypton-x509-system.doc.doc)
  • haskellPackages.di-core
  • haskellPackages.di-core.doc (haskellPackages.di-core.doc.doc)
  • haskellPackages.x509-system
  • haskellPackages.x509-system.doc (haskellPackages.x509-system.doc.doc)

@wolfgangwalther
wolfgangwalther added this pull request to the merge queue Oct 13, 2025
Merged via the queue into NixOS:haskell-updates with commit 17cdf7e Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: haskell General-purpose, statically typed, purely functional programming language 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants