-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Marked as broken on nixpkgs #185
Comments
It appears the first issue (dependency bounds) is simply nixpkgs not having the required version, not a big deal. The second issue, however, appears to be due to the dear-imgui = {
type = "git";
submodules = true; # requires `type = "git"`
flake = false;
url = "https://github.com/haskell-game/dear-imgui.hs";
}; By default it appears flakes do not pull the submodules, which is why cabal could not find |
After looking into it further, it appears there is no general way to include submodules on self with flakes yet. All of the proposed solutions are either under debate, dropped, or are in development. I guess this means the documentation should probably be updated to include this info for nix users. The only other solution is cutting the submodule, but that seems like a lot more work. I don't see this package being freed of its "broken" status any other way. |
@Cajunvoodoo does it work when using |
I'm not sure how that would work in the flake inputs field. I looked up the documentation and it says it uses I spent the last 4 hours or so working on both a fork of nixpkgs and of dear-imgui.hs to little avail. The closest I have gotten is from modifying nixpkgs, but the biggest issue is now finding all of the system dependencies. The following produces better results, but errors: # in nixpkgs, configuration-common.nix
dear-imgui = overrideCabal (drv: {
src = pkgs.fetchFromGitHub {
owner = "haskell-game";
repo = "dear-imgui.hs";
sha256 = "";
fetchSubmodules = true;
};
libraryPkgconfigDepends = with pkgs; [
pkg-config
gcc
SDL2
# ...
];
} but it errors with "gcc: fatal error execv: Argument list too long." Looking into it, it appears this is still an open issue NixOS/nixpkgs#41340. Modifying dear-imgui.hs alongside it and pointing the above configuration to my fork resulted in similar errors. I can't think of a way to get around this, as adding packages to either will result in compilation failure. Why this occurs only for the nixpkgs version I have the faintest of clues. Hopefully someone with better nix-fu than me can provide some insight. |
Did you ever figure this out? |
Not in nixpkgs, no, but I recall a while back finding some workaround. You may want to look at this override to get a working version of dear-imgui.hs. Hope this helps. |
For what its worth, here are the overrides I am using: |
Currently, dear-imgui.hs is marked as broken on nixpkgs. Temporarily allowing broken packages gives the following error:
Ignoring dependency bounds with haskell-flake produces a different error:
I am using pkgs.haskell.packages.ghc92 (ghc 9.2.8) for my project.
The text was updated successfully, but these errors were encountered: