From a415f7340b5a435cc682e6d3fecc084b0b3e8691 Mon Sep 17 00:00:00 2001 From: Ai-Ya-Ya Date: Sun, 18 Jan 2026 05:13:59 +0000 Subject: [PATCH] haskellPackages.ghcup: deprecate ghcup does not have a relevant use case in NixOS --- pkgs/development/haskell-modules/configuration-common.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 42e30c172991..25ab9669cc34 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1635,6 +1635,11 @@ with haskellLib; # https://github.com/hasufell/lzma-static/pull/15 xz = doJailbreak super.xz; + ghcup = + lib.throwIf pkgs.config.allowAliases + "ghcup cannot be used to install the haskell tool chain on NixOS because there is no compatible bindist. Please install ghc etc. via Nix. On non-NixOS systems you can use the ghcup shell installer" + super.ghcup; + # This breaks because of version bounds, but compiles and runs fine. # Last commit is 5 years ago, so we likely won't get upstream fixed soon. # https://bitbucket.org/rvlm/hakyll-contrib-hyphenation/src/master/