Skip to content
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

Listing haskell ghc802 packages fails #44987

Closed
cah6 opened this issue Aug 13, 2018 · 1 comment
Closed

Listing haskell ghc802 packages fails #44987

cah6 opened this issue Aug 13, 2018 · 1 comment

Comments

@cah6
Copy link

cah6 commented Aug 13, 2018

Issue description

Not sure if I'm doing something wrong, but while nix-env -f "<nixpkgs>" -qaP -A haskell.packages.ghc822 returns all ghc822 packages, nix-env -f "<nixpkgs>" -qaP -A haskell.packages.ghc802 throws an error:

$ nix-env -f "<nixpkgs>" -qaP -A haskell.packages.ghc802
error: anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/development/haskell-modules/hackage-packages.nix:48851:6 called without required argument 'ghc-compact', at /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/development/haskell-modules/make-package-set.nix:88:27

Do I need to somehow feed ghc-compact into this?

Technical details

My info:

$ nix-shell -p nix-info --run "nix-info -m"
these paths will be fetched (0.52 MiB download, 2.51 MiB unpacked):
  /nix/store/9bkj2zjc8jdzwgwdwb5d890hrhrk9d3g-bash-4.4-p12-dev
  /nix/store/d5ki460cwwydf93f31is95sqpcf334r4-bash-4.4-p12-info
  /nix/store/f1rp3j71id6g6zcmiafrksmw1cgydl9k-bash-4.4-p12-doc
  /nix/store/fskpf2pdlgn4gm2kay7lfbw1cmjil6s3-bash-4.4-p12-man
  /nix/store/l3nz0167a4xhb78ldcjns5p4dwvlm1cw-stdenv
copying path '/nix/store/f1rp3j71id6g6zcmiafrksmw1cgydl9k-bash-4.4-p12-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/d5ki460cwwydf93f31is95sqpcf334r4-bash-4.4-p12-info' from 'https://cache.nixos.org'...
copying path '/nix/store/9bkj2zjc8jdzwgwdwb5d890hrhrk9d3g-bash-4.4-p12-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/fskpf2pdlgn4gm2kay7lfbw1cmjil6s3-bash-4.4-p12-man' from 'https://cache.nixos.org'...
copying path '/nix/store/l3nz0167a4xhb78ldcjns5p4dwvlm1cw-stdenv' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.48, NixOS, 18.03.132618.0f73fef53a9 (Impala)`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0.2`
 - channels(cah6): `"nixos-18.03-18.03.132618.0f73fef53a9"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
@typetetris
Copy link
Contributor

diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix
index 1a4638c51e1..f475512a8da 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix
@@ -19,6 +19,7 @@ self: super: {
   filepath = null;
   ghc-boot = null;
   ghc-boot-th = null;
+  ghc-compact = null;
   ghc-prim = null;
   ghci = null;
   haskeline = null;

gets the listing of packages going again, but the package depending on ghc-compact still don't build, as they have a base >= 4.10 constrain and ghc 8.0.2 has base 4.9.*

typetetris added a commit to typetetris/nixpkgs that referenced this issue Aug 14, 2018
nix-env -f '<nixpkgs>' -qaP -A haskell.packages.ghc802

will run again, but the packages depending on ghc-compact will still not
build, as they have a constrain on base >= 4.10 and ghc 8.0.2 has base
4.9.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants