-
Notifications
You must be signed in to change notification settings - Fork 241
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
nightly cabal? #720
Comments
The
The second argument to Here are some examples:
|
So:
or if sources.cabal points to a download of https://github.com/haskell/cabal/
|
Thanks!
I tried replacing I'll try to instead put |
think this bit works -- thanks. :) |
Unfortunately, this turned out more involved than
Now, |
remaining issue seems a dupe of #545 |
I tried adding
This somehow seemed to fail still, as before plugging in the older |
okay, so my third attempt at adding |
Fyi, I've had success with an overlay like let
overlay = self: super: {
haskell-nix = super.haskell-nix // {
custom-tools = super.haskell-nix.custom-tools // {
cabal."3.4.0.0-rc4" = args: (self.haskell-nix.cabalProject (args // {
name = "cabal-install";
version = "3.4.0.0-rc4";
src = pkgs.fetchFromGitHub {
owner = "haskell";
repo = "cabal";
rev = "cabal-install-3.4.0.0-rc4";
sha256 = "049hllk1d8jid9yg70hmcsdgb0n7hm24p39vavllaahfb0qfimrk";
};
modules = [{
reinstallableLibGhc = true;
}];
})).cabal-install.components.exes.cabal;
};
};
};
pkgs = import nixpkgs (haskell-nix.nixpkgsArgs // {
overlays = haskell-nix.nixpkgsArgs.overlays ++ [ overlay ];
});
in pkgs This allowed me to use |
For source-repository-package's, cabal tries to build them on its own, even when all dependencies are already provided by Nix. Relevant issues: - haskell/cabal#6049 - IntersectMBO/ouroboros-network#645 - haskell/cabal#5586 (comment) This seems to be a problem even with a cabal that includes haskell/cabal#6917 (see input-output-hk/haskell.nix#720 (comment) for how to test a cabal-install 3.4) The only known workaround is to remove the source-repository-package sections from cabal.project, but this should only be done for cabal when used from a nix-shell, not from cabal without a nix-shell, and not outside the nix-shell. To make this work smoothly, the script `scripts/nix-setup` can be used, which splits the source-repository-package sections into cabal.project.srcs, which is then again included from here (to make the Nix setup still work). Running the script again undoes it.
For source-repository-package's, cabal tries to build them on its own, even when all dependencies are already provided by Nix. Relevant issues: - haskell/cabal#6049 - IntersectMBO/ouroboros-network#645 - haskell/cabal#5586 (comment) This seems to be a problem even with a cabal that includes haskell/cabal#6917 (see input-output-hk/haskell.nix#720 (comment) for how to test a cabal-install 3.4) The only known workaround is to remove the source-repository-package sections from cabal.project, but this should only be done for cabal when used from a nix-shell, not from cabal without a nix-shell, and not outside the nix-shell. To make this work smoothly, the script `scripts/nix-setup` can be used, which splits the source-repository-package sections into cabal.project.srcs, which is then again included from here (to make the Nix setup still work). Running the script again undoes it.
For source-repository-package's, cabal tries to build them on its own, even when all dependencies are already provided by Nix. Relevant issues: - haskell/cabal#6049 - IntersectMBO/ouroboros-network#645 - haskell/cabal#5586 (comment) This seems to be a problem even with a cabal that includes haskell/cabal#6917 (see input-output-hk/haskell.nix#720 (comment) for how to test a cabal-install 3.4) The only known workaround is to remove the source-repository-package sections from cabal.project, but this should only be done for cabal when used from a nix-shell, not from cabal without a nix-shell, and not outside the nix-shell. To make this work smoothly, the script `scripts/nix-setup` can be used, which splits the source-repository-package sections into cabal.project.srcs, which is then again included from here (to make the Nix setup still work). Running the script again undoes it.
For source-repository-package's, cabal tries to build them on its own, even when all dependencies are already provided by Nix. Relevant issues: - haskell/cabal#6049 - IntersectMBO/ouroboros-network#645 - haskell/cabal#5586 (comment) This seems to be a problem even with a cabal that includes haskell/cabal#6917 (see input-output-hk/haskell.nix#720 (comment) for how to test a cabal-install 3.4) The only known workaround is to remove the source-repository-package sections from cabal.project, but this should only be done for cabal when used from a nix-shell, not from cabal without a nix-shell, and not outside the nix-shell. To make this work smoothly, the script `scripts/nix-setup` can be used, which splits the source-repository-package sections into cabal.project.srcs, which is then again included from here (to make the Nix setup still work). Running the script again undoes it.
Cabal 3.4 is out properly now. |
Hi,
For HaskTorch we're currently using Haskell.nix's
shellFor
, currently simply grabbing the most recent releases ofcabal
andghcide
:tools = { cabal = "3.2.0.0"; ghcide = "0.2.0"; };
.Now, using the latest commit of
haskell.nix
seems to imply using the latest commit ofstackage.nix
, which in turn seems to determine package versions.However, nightly versions of Stackage use
base-4.14.0.0
, whereas that latest Cabal versions requires a lower version.Using a Cabal more recent than its release should address that, but currently Haskell.nix's
tool
currently only allows using Stackage releases, not git commits.This begs the question: how would anyone use one of the latest
haskell.nix
commits without running into this issue?The text was updated successfully, but these errors were encountered: