| 30 Apr 2026 |
Alex | The other problem here is that mhseval is not in the Cabal file, so naturally the stage 2 build won't include it either. | 23:48:31 |
Alex | Unless JS is supported as a buildPlatform, I think it might be best to first make microhs compatible with cross.
I'm not sure what's missing for cross, but I suspect it has to do with the targetPlatform not being passed to the build. | 23:51:42 |
| 1 May 2026 |
Alex | Well, cross isn't terribly difficult. I've just gotten it working. | 00:46:32 |
| VegOwOtenks joined the room. | 14:58:29 |
VegOwOtenks | I'm starting out with nix and having trouble with system library fiddling. GHC cannot load the shared object for z3, though the C headers are found just fine.
This is my flake definition:
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in {
devShells.default = with pkgs; mkShell
{
packages =
[ haskell.compiler.ghc914
z3
stack
libllvm
libclang
];
};
}
);
}
| 15:02:18 |
alexfmpe | I dunno about flakes, but nix-build -A haskellPackages.smtlib-backends-z3 on nixpkgs master works just fine on my macos | 15:04:23 |
alexfmpe | where hackage-packages.nix shows z3 on librarySystemDepends of smtlib-backends-z3 | 15:05:11 |
alexfmpe | ah, same for haskellPackages.z3 | 15:06:27 |
alexfmpe | huh, isn't packages for executables only? | 15:07:47 |
alexfmpe | https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-mkShell | 15:07:48 |
alexfmpe | * https://nixos.org/manual/nixpkgs/stable/#sec-pkgs-mkShell-attributes | 15:07:56 |
alexfmpe | try inputsFrom | 15:08:04 |
VegOwOtenks | Thanks! I will try inputsFrom, I don't have any clue about the differences. | 15:12:54 |
alexfmpe | my link should explain it | 15:15:50 |
alexfmpe | * my link above explains them | 15:15:59 |
alexfmpe | you probably want the same for libllvm and libclang | 15:17:55 |
alexfmpe | can we improve the whole security_tool issue for mac builds?
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/configuration-darwin.nix is littered with
dontCheck that, well, makes us not run tests
substituteInPlace System/X509/MacOS.hs --replace-fail security /usr/bin/security that breaks sandbox builds
I also run into it for some packages on darwin pkgsStatic builds somehow due to the iserv-proxy thing
statistics> [33 of 51] Compiling Statistics.Types ( Statistics/Types.hs, dist/build/Statistics/Types.o )
statistics> iserv-proxy: Uncaught exception ghc-internal:GHC.Internal.IO.Exception.IOException:
statistics>
statistics> /homeless-shelter/Library/Frameworks/Security.framework/Security: withBinaryFile: does not exist (No such file or directory)
statistics>
statistics> HasCallStack backtrace:
statistics> ioError, called at libraries/ghc-internal/src/GHC/Internal/Foreign/C/Error.hs:291:5 in ghc-internal:GHC.Internal.Foreign.C.Error
statistics>
statistics> <no location info>: error: External interpreter terminated (1)
| 16:45:24 |
alexfmpe | * can we improve the whole security_tool issue for mac builds?
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/configuration-darwin.nix is littered with
dontCheck that, well, makes us not run tests
substituteInPlace System/X509/MacOS.hs --replace-fail security /usr/bin/security that breaks sandbox builds
I also run into it for some packages on darwin pkgsStatic.haskellPackages builds somehow via iserv-proxy
statistics> [33 of 51] Compiling Statistics.Types ( Statistics/Types.hs, dist/build/Statistics/Types.o )
statistics> iserv-proxy: Uncaught exception ghc-internal:GHC.Internal.IO.Exception.IOException:
statistics>
statistics> /homeless-shelter/Library/Frameworks/Security.framework/Security: withBinaryFile: does not exist (No such file or directory)
statistics>
statistics> HasCallStack backtrace:
statistics> ioError, called at libraries/ghc-internal/src/GHC/Internal/Foreign/C/Error.hs:291:5 in ghc-internal:GHC.Internal.Foreign.C.Error
statistics>
statistics> <no location info>: error: External interpreter terminated (1)
| 16:45:47 |
alexfmpe | huh, wait, maybe that's not the same "security" ? hard to tell with case insensitive system | 16:47:08 |
| 20 May 2021 |
| @grahamc:nixos.org set the history visibility to "world_readable". | 22:10:58 |
| @grahamc:nixos.org changed the room name to "" from "". | 22:10:58 |
| @grahamc:nixos.org invited maralorn. | 22:11:05 |
| maralorn joined the room. | 22:11:13 |
| andi- joined the room. | 22:30:49 |
| @grahamc:nixos.orgchanged room power levels. | 22:36:42 |
| Room Avatar Renderer. | 22:46:20 |
| maralorn changed the join rule to "public" from "public". | 22:54:26 |
| maralorn changed the room topic to "For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/" from "For discussions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/". | 22:56:19 |
| Server Stats Discoverer (traveler bot) joined the room. | 23:05:49 |
| pennae joined the room. | 23:06:26 |