!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

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

You have reached the beginning of time (for this room).


SenderMessageTime
13 Aug 2025
@maralorn:maralorn.demaralornAh, well. How can you even test when cross compiling?^^18:04:53
@qyliss:fairydust.spaceAlyssa RossImagine cross compiling from glibc to musl, or x86_64 to i68618:05:38
@maralorn:maralorn.demaralornI mean I also find the code around that very confusing because it has "otherBuildInputsSystem" and "otherBuildInputs" which are both used and there is a TODO there.18:05:48
@qyliss:fairydust.spaceAlyssa RossCross compiling doesn't necessarily mean you can't execute18:05:50
@maralorn:maralorn.demaralornI see. Fair.18:06:10
@qyliss:fairydust.spaceAlyssa Ross Which is why we have a predicate in Nixpkgs called canExecute, which stdenv uses to decide whether to have checkPhase and reference checkInputs and nativeBuildInputs 18:06:14
@emilazy:matrix.orgemily(btw I have solved the LLVM 12 problem. still a WIP draft locally. but my experiment was a success)18:06:49
@emilazy:matrix.orgemily(it is a joyous occasion)18:07:05
@qyliss:fairydust.spaceAlyssa Ross * Which is why we have a predicate in Nixpkgs called canExecute, which stdenv uses to decide whether to have checkPhase and reference checkInputs and nativeCheckInputs 18:07:40
@maralorn:maralorn.demaralornSo in this case we would want Z3 to be compiled for the target plattform, right? And for that it should be nativeCheckInputs and not checkInputs?18:07:40
@qyliss:fairydust.spaceAlyssa RossWe would want it to be for the build platform, I thought18:07:54
@emilazy:matrix.orgemilyI assume the library invokes Z3 at runtime18:08:05
@qyliss:fairydust.spaceAlyssa RossSince PATH was mentioned.18:08:06
@emilazy:matrix.orgemilyso you want it for the host platform18:08:08
@emilazy:matrix.orgemily(you almost never want to say "target platform")18:08:15
@maralorn:maralorn.demaralornAaah, yeah.18:08:15
@emilazy:matrix.orgemily(unless what you are building is a single-target compiler)18:08:23
@qyliss:fairydust.spaceAlyssa RossWith strictDeps I believe checkInputs don't end up in PATH, only nativeCheckInputs18:08:34
@emilazy:matrix.orgemily I think we have a HOST_PATH thing or something. 18:08:50
@emilazy:matrix.orgemily for patchShebangs --host I guess. 18:09:05
@emilazy:matrix.orgemily but yeah cross testing is a mess. even with canExecute. 18:09:11
@emilazy:matrix.orgemilytbh I think it's fine to use whatever variable is convenient and leave it to the future generation that decides it wants to figure out how cross tests should work.18:09:24
@emilazy:matrix.orgemily (to which the answer will be "separate installCheckPhase derivation" if we raised them well) 18:09:36

Show newer messages


Back to Room ListRoom Version: 6