!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

696 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/139 Servers

Load older messages


SenderMessageTime
21 Sep 2025
@sternenseemann:systemli.orgsterniWe could08:26:55
@maralorn:maralorn.demaralornbtw. what’s up with the nixpkgs-ci bot regularly closing and opening PRs? Seems a bit spamy?^^08:27:07
@maralorn:maralorn.demaralornFixing stuff on staging-next really sucks for review builds …08:28:26
@wolfgangwalther:matrix.orgWolfgang WaltherThat's whenever you change the base branch of a PR. It's a lot less spammy than the alternatives.08:43:28
@maralorn:maralorn.demaralornIt prevents the mass pings?08:45:39
@wolfgangwalther:matrix.orgWolfgang Walther No, it prevents having to run CI on edited events, which happen for the base branch, but also for any PR title or description changes. If you run CI on these, but skip the jobs, the job log is spammed with a lot of skipped jobs. 08:52:35
@sternenseemann:systemli.orgsterni maralorn: will get better as builds finish. for now you can base the PRs themselves on haskell-updates which has cache 10:37:02
@maralorn:maralorn.demaralornYeah, that’s what I am doing.10:39:37
@maralorn:maralorn.demaralornCurrently fixing HLS on 9.6 and 9.4 which is a complete nightmare.10:39:52
@sternenseemann:systemli.orgsterni emily: if both work, is it preferrable to use python3.pkgs.xattr or darwin.xattr? I originally packaged the latter because xattr/xattr lacked some flags but seems like they merged Apple's changes back… 14:19:57
@emilazy:matrix.orgemily hmm, I think we use darwin.file_cmds (which xattr is now an output of) for very little, e.g. we use GNU coreutils over the BSD-derived Darwin commands generally… so using whatever "everything else" uses generally seems sensible to me. OTOH, why is the other one… Python? it's a C codebase, right? 14:23:30
@emilazy:matrix.orgemily I guess it looks like either they ported the main() to Python, or they forked from Apple when its main() was Python but Apple have since ported it to C?! 14:24:13
@emilazy:matrix.orgemilyit seems nice to avoid a runtime dependency on Python but I don't know if GHC already pulls that in14:24:41
@emilazy:matrix.orgemily I would say, if this is an "if Darwin, one package, else another" type thing, and the fallback case works fine, then just do that. if it's a dependency only used on Darwin, file_cmds seems more canonical. 14:24:59
@emilazy:matrix.orgemily it looks like GHC is literally the only thing using darwin.(file_cmds.)xattr, though, and the only other thing using darwin.file_cmds is the somewhat stupendously useless darwin.mail_cmds. so if I ever get around to cleaning up some of the source releases that seem like busywork to maintain it's possible it would go away anyway. (OTOH maybe Swift Build will make them less busywork since we can reuse the upstream build systems more.) 14:26:57
@emilazy:matrix.orgemily uh, what does GHC want an xattr(1) for, anyway? 14:27:04
@sternenseemann:systemli.orgsternihttps://gitlab.haskell.org/ghc/ghc/-/commit/bf65a7c388b14:41:54
@sternenseemann:systemli.orgsterniI never checked whether it is actually necessary, Randy set XATTR=/does-not-exist for some bindists. I just packaged the darwin one when GHC started failing because it started executing /usr/bin/xattr14:42:43
@sternenseemann:systemli.orgsterni emily: ah it used to be a literal fork of the python one (i.e. apple distributed the original (?) tarball and an ed(1) script) http://github.com/nixos/nixpkgs/commit/283d622397539f196416657da9dc804a4ca89846 14:48:17
@sternenseemann:systemli.orgsterniI guess now that that has changed, we it is better to use the C one14:48:29
@emilazy:matrix.orgemily the Nix store can't contain xattrs 14:48:50
@emilazy:matrix.orgemilyI believe it strips them automatically14:48:55
@emilazy:matrix.orgemilyso most likely you do not need to give it anything14:49:01
@sternenseemann:systemli.orgsternibut on write or on fixup14:49:14
@sternenseemann:systemli.orgsternithough I guess that doesn't matter14:49:33
@emilazy:matrix.orgemilyhttps://github.com/NixOS/nix/commit/d798349ede3d6eb6e92a2e4f95f6b2179407ceb914:49:35
@emilazy:matrix.orgemily uhh, #if __linux__ :) 14:49:44
@emilazy:matrix.orgemilyI think that changed since though14:49:50
@sternenseemann:systemli.orgsternihm https://github.com/NixOS/nixpkgs/pull/41345014:50:10
@emilazy:matrix.orgemily the bonus fun is that you can get com.apple.provenance ones in there that are difficult to strip because they're part of XProtect 14:50:09

Show newer messages


Back to Room ListRoom Version: 6