diff options
author | sternenseemann <sternenseemann@systemli.org> | 2022-01-27 09:42:51 +0100 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2022-02-08 13:28:30 +0100 |
commit | 8c27f7a2bd3ce539f6441123c41376a591ab3395 (patch) | |
tree | efd54b3a4cb03ca321d29b744dc7854caa61d121 /nixos | |
parent | fae4895e11885ca16bf22cbbd17f990920ed24e5 (diff) | |
download | nixlib-8c27f7a2bd3ce539f6441123c41376a591ab3395.tar nixlib-8c27f7a2bd3ce539f6441123c41376a591ab3395.tar.gz nixlib-8c27f7a2bd3ce539f6441123c41376a591ab3395.tar.bz2 nixlib-8c27f7a2bd3ce539f6441123c41376a591ab3395.tar.lz nixlib-8c27f7a2bd3ce539f6441123c41376a591ab3395.tar.xz nixlib-8c27f7a2bd3ce539f6441123c41376a591ab3395.tar.zst nixlib-8c27f7a2bd3ce539f6441123c41376a591ab3395.zip |
haskellPackages.ghcWithPackages: throw on old override interface
Adding a fake override function via passthru will at least give users of the old override interface a more helpful error message. Additionally we also document the changes in the changelog.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/doc/manual/from_md/release-notes/rl-2205.section.xml | 13 | ||||
-rw-r--r-- | nixos/doc/manual/release-notes/rl-2205.section.md | 6 |
2 files changed, 19 insertions, 0 deletions
diff --git a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml index 2ec83dab09f7..04bb7ec12d3e 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml @@ -242,6 +242,19 @@ </listitem> <listitem> <para> + <literal>pkgs.ghc.withPackages</literal> as well as + <literal>haskellPackages.ghcWithPackages</literal> etc. now + needs be overridden directly, as opposed to overriding the + result of calling it. Additionally, the + <literal>withLLVM</literal> parameter has been renamed to + <literal>useLLVM</literal>. So instead of + <literal>(ghc.withPackages (p: [])).override { withLLVM = true; }</literal>, + one needs to use + <literal>(ghc.withPackages.override { useLLVM = true; }) (p: [])</literal>. + </para> + </listitem> + <listitem> + <para> <literal>pkgs.emacsPackages.orgPackages</literal> is removed because org elpa is deprecated. The packages in the top level of <literal>pkgs.emacsPackages</literal>, such as org and diff --git a/nixos/doc/manual/release-notes/rl-2205.section.md b/nixos/doc/manual/release-notes/rl-2205.section.md index ffb207503f84..a2e8038ae1f8 100644 --- a/nixos/doc/manual/release-notes/rl-2205.section.md +++ b/nixos/doc/manual/release-notes/rl-2205.section.md @@ -81,6 +81,12 @@ In addition to numerous new and upgraded packages, this release has the followin instead to ensure cross compilation keeps working (or switch to `haskellPackages.callPackage`). +- `pkgs.ghc.withPackages` as well as `haskellPackages.ghcWithPackages` etc. + now needs be overridden directly, as opposed to overriding the result of + calling it. Additionally, the `withLLVM` parameter has been renamed to + `useLLVM`. So instead of `(ghc.withPackages (p: [])).override { withLLVM = true; }`, + one needs to use `(ghc.withPackages.override { useLLVM = true; }) (p: [])`. + - `pkgs.emacsPackages.orgPackages` is removed because org elpa is deprecated. The packages in the top level of `pkgs.emacsPackages`, such as org and org-contrib, refer to the ones in `pkgs.emacsPackages.elpaPackages` and |