Skip to content

distribution-nixpkgs: support Cabal 3.8 #571

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

Closed
wants to merge 16 commits into from

Conversation

sternenseemann
Copy link
Member

No description provided.

In preparation of making this repository a monorepo of cabal2nix and
related packages (distribution-nixpkgs, hackage-db, language-nix, …),
we'll move cabal2nix into its own subfolder and update CI and
cabal.project accordingly.

The doc folder is left as-is for now, since haskell4nix.readthedocs.io
probably has the location configured statically.
* Add dependencies of hackage-db, languagae-nix and distribution-nixpkgs
  to shell environment, drop their nixpkgs versions.

* Always build hackage-db examples, so they are not broken accidentally.
* Pick the widest common set of GHC major release series to test for all
  packages and bump to the latest available one. Sadly we can't test 8.6.5
  anymore and haskell-ci doesn't know about 9.2.3 yet.

* Include all packages tracked by the cabal.project file

* Apply PackageMap.hs doctest workaround for distribution-nixpkgs

* hlint will need to be reenabled later, see NixOS#565.
* Many Haskell-related files are no longer rooted to the repository root

* hackage2nix ignores are no longer relevant after NixOS#519.
Cabal 3.8 introduced the following new platform related type
constructors:

* S390X, the 64 bit Arch variant of S390
* Wasm32, the 32 bit WASM Arch
* Wasi, the WebAssembly System Interface, a new “OS”

This means that some of the tuples we were checking have a changed
representation when parsed and we need to update the test suite.

We don't need to adjust cabal2nix nor the related packages anywhere
else, as we don't hardcode the old representations for these OSes /
Arches anywhere.
Newly added platforms:

* rx-none
* microblaze-linux
* microblazeel-linux
* microblaze-none
* microblazeel-none
Seems like modules were shuffled around for some reason.
Additionally we allow disabling HLS, since it often lags behind a bit in
terms of support. To get a development environment for GHC 9.4.2, for
example, run:

    nix-shell --argstr ghcVersion "9.4.2" --arg withHls false

(You may need to pass in a more recent nixpkgs manually as well via the
`pkgs` argument.)
sternenseemann added a commit to lf-/nixpkgs that referenced this pull request Oct 2, 2022
This change introduces some actual overrides in
configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of
getting a basic 9.4 package set up. In particular the following
“interesting” packages are working:

* hpack
* hoogle
* cabal2nix
* cabal-install

You can get a better overview by looking at the overrides and the
versionedCompilerJobs in release-haskell.nix. Next obvious steps would
be working towards basic HLS support, but it seems that basically none
of the plugins are working so far. Big blockers here:

* alanz/ghc-exactprint#114
* ndmitchell/hlint#1413
* haskell/haskell-language-server#3190

We ourselves have some churn to take care of and should try to release
the changes in NixOS/cabal2nix#571 soon.

Co-authored-by: Rebecca Turner <[email protected]>
Co-authored-by: sternenseemann <[email protected]>
sternenseemann added a commit to NixOS/nixpkgs that referenced this pull request Oct 2, 2022
This change introduces some actual overrides in
configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of
getting a basic 9.4 package set up. In particular the following
“interesting” packages are working:

* hpack
* hoogle
* cabal2nix
* cabal-install

You can get a better overview by looking at the overrides and the
versionedCompilerJobs in release-haskell.nix. Next obvious steps would
be working towards basic HLS support, but it seems that basically none
of the plugins are working so far. Big blockers here:

* alanz/ghc-exactprint#114
* ndmitchell/hlint#1413
* haskell/haskell-language-server#3190

We ourselves have some churn to take care of and should try to release
the changes in NixOS/cabal2nix#571 soon.

Co-authored-by: Rebecca Turner <[email protected]>
Co-authored-by: sternenseemann <[email protected]>
@sternenseemann sternenseemann force-pushed the monorepo branch 2 times, most recently from 93b776a to 240f130 Compare October 9, 2022 16:02
@sternenseemann sternenseemann deleted the branch NixOS:monorepo October 10, 2022 10:43
j6carey pushed a commit to awakesecurity/nixpkgs that referenced this pull request Sep 27, 2023
This change introduces some actual overrides in
configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of
getting a basic 9.4 package set up. In particular the following
“interesting” packages are working:

* hpack
* hoogle
* cabal2nix
* cabal-install

You can get a better overview by looking at the overrides and the
versionedCompilerJobs in release-haskell.nix. Next obvious steps would
be working towards basic HLS support, but it seems that basically none
of the plugins are working so far. Big blockers here:

* alanz/ghc-exactprint#114
* ndmitchell/hlint#1413
* haskell/haskell-language-server#3190

We ourselves have some churn to take care of and should try to release
the changes in NixOS/cabal2nix#571 soon.

Co-authored-by: Rebecca Turner <[email protected]>
Co-authored-by: sternenseemann <[email protected]>
j6carey pushed a commit to awakesecurity/nixpkgs that referenced this pull request Nov 10, 2023
This change introduces some actual overrides in
configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of
getting a basic 9.4 package set up. In particular the following
“interesting” packages are working:

* hpack
* hoogle
* cabal2nix
* cabal-install

You can get a better overview by looking at the overrides and the
versionedCompilerJobs in release-haskell.nix. Next obvious steps would
be working towards basic HLS support, but it seems that basically none
of the plugins are working so far. Big blockers here:

* alanz/ghc-exactprint#114
* ndmitchell/hlint#1413
* haskell/haskell-language-server#3190

We ourselves have some churn to take care of and should try to release
the changes in NixOS/cabal2nix#571 soon.

Co-authored-by: Rebecca Turner <[email protected]>
Co-authored-by: sternenseemann <[email protected]>
jsoo1 pushed a commit to awakesecurity/nixpkgs that referenced this pull request Nov 13, 2023
This change introduces some actual overrides in
configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of
getting a basic 9.4 package set up. In particular the following
“interesting” packages are working:

* hpack
* hoogle
* cabal2nix
* cabal-install

You can get a better overview by looking at the overrides and the
versionedCompilerJobs in release-haskell.nix. Next obvious steps would
be working towards basic HLS support, but it seems that basically none
of the plugins are working so far. Big blockers here:

* alanz/ghc-exactprint#114
* ndmitchell/hlint#1413
* haskell/haskell-language-server#3190

We ourselves have some churn to take care of and should try to release
the changes in NixOS/cabal2nix#571 soon.

Co-authored-by: Rebecca Turner <[email protected]>
Co-authored-by: sternenseemann <[email protected]>
j6carey pushed a commit to awakesecurity/nixpkgs that referenced this pull request Dec 17, 2023
This change introduces some actual overrides in
configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of
getting a basic 9.4 package set up. In particular the following
“interesting” packages are working:

* hpack
* hoogle
* cabal2nix
* cabal-install

You can get a better overview by looking at the overrides and the
versionedCompilerJobs in release-haskell.nix. Next obvious steps would
be working towards basic HLS support, but it seems that basically none
of the plugins are working so far. Big blockers here:

* alanz/ghc-exactprint#114
* ndmitchell/hlint#1413
* haskell/haskell-language-server#3190

We ourselves have some churn to take care of and should try to release
the changes in NixOS/cabal2nix#571 soon.

Co-authored-by: Rebecca Turner <[email protected]>
Co-authored-by: sternenseemann <[email protected]>
tm-drtina pushed a commit to awakesecurity/nixpkgs that referenced this pull request Feb 27, 2024
This change introduces some actual overrides in
configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of
getting a basic 9.4 package set up. In particular the following
“interesting” packages are working:

* hpack
* hoogle
* cabal2nix
* cabal-install

You can get a better overview by looking at the overrides and the
versionedCompilerJobs in release-haskell.nix. Next obvious steps would
be working towards basic HLS support, but it seems that basically none
of the plugins are working so far. Big blockers here:

* alanz/ghc-exactprint#114
* ndmitchell/hlint#1413
* haskell/haskell-language-server#3190

We ourselves have some churn to take care of and should try to release
the changes in NixOS/cabal2nix#571 soon.

Co-authored-by: Rebecca Turner <[email protected]>
Co-authored-by: sternenseemann <[email protected]>
tm-drtina pushed a commit to awakesecurity/nixpkgs that referenced this pull request Apr 8, 2024
This change introduces some actual overrides in
configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of
getting a basic 9.4 package set up. In particular the following
“interesting” packages are working:

* hpack
* hoogle
* cabal2nix
* cabal-install

You can get a better overview by looking at the overrides and the
versionedCompilerJobs in release-haskell.nix. Next obvious steps would
be working towards basic HLS support, but it seems that basically none
of the plugins are working so far. Big blockers here:

* alanz/ghc-exactprint#114
* ndmitchell/hlint#1413
* haskell/haskell-language-server#3190

We ourselves have some churn to take care of and should try to release
the changes in NixOS/cabal2nix#571 soon.

Co-authored-by: Rebecca Turner <[email protected]>
Co-authored-by: sternenseemann <[email protected]>
tm-drtina pushed a commit to awakesecurity/nixpkgs that referenced this pull request May 16, 2024
This change introduces some actual overrides in
configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of
getting a basic 9.4 package set up. In particular the following
“interesting” packages are working:

* hpack
* hoogle
* cabal2nix
* cabal-install

You can get a better overview by looking at the overrides and the
versionedCompilerJobs in release-haskell.nix. Next obvious steps would
be working towards basic HLS support, but it seems that basically none
of the plugins are working so far. Big blockers here:

* alanz/ghc-exactprint#114
* ndmitchell/hlint#1413
* haskell/haskell-language-server#3190

We ourselves have some churn to take care of and should try to release
the changes in NixOS/cabal2nix#571 soon.

Co-authored-by: Rebecca Turner <[email protected]>
Co-authored-by: sternenseemann <[email protected]>
tm-drtina pushed a commit to awakesecurity/nixpkgs that referenced this pull request Jun 7, 2024
This change introduces some actual overrides in
configuration-ghc-9.4.x.nix (based on the ones for 9.2) with the aim of
getting a basic 9.4 package set up. In particular the following
“interesting” packages are working:

* hpack
* hoogle
* cabal2nix
* cabal-install

You can get a better overview by looking at the overrides and the
versionedCompilerJobs in release-haskell.nix. Next obvious steps would
be working towards basic HLS support, but it seems that basically none
of the plugins are working so far. Big blockers here:

* alanz/ghc-exactprint#114
* ndmitchell/hlint#1413
* haskell/haskell-language-server#3190

We ourselves have some churn to take care of and should try to release
the changes in NixOS/cabal2nix#571 soon.

Co-authored-by: Rebecca Turner <[email protected]>
Co-authored-by: sternenseemann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant