Skip to content

top-level/release-haskell.nix: merge jobs using lib.recursiveUpdate#122212

Merged
maralorn merged 1 commit intoNixOS:haskell-updatesfrom
sternenseemann:haskell-updates-recursive-update
May 8, 2021
Merged

top-level/release-haskell.nix: merge jobs using lib.recursiveUpdate#122212
maralorn merged 1 commit intoNixOS:haskell-updatesfrom
sternenseemann:haskell-updates-recursive-update

Conversation

@sternenseemann
Copy link
Copy Markdown
Member

We have different attribute sets defining jobs: The list of base jobs,
the ones generated by versionedCompilerJobs and our added aggregate
jobs. During this we define haskell twice: Once for haskell.compiler
and once for haskell.packages.*. The // operator throws a way the
former which is fixed by using lib.recursiveUpdate.

Unfortunately makes the expression less pretty, but at least we have our
compiler jobs back.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

We have different attribute sets defining jobs: The list of base jobs,
the ones generated by versionedCompilerJobs and our added aggregate
jobs. During this we define `haskell` twice: Once for `haskell.compiler`
and once for `haskell.packages.*`. The `//` operator throws a way the
former which is fixed by using lib.recursiveUpdate.

Unfortunately makes the expression less pretty, but at least we have our
compiler jobs back.
@github-actions github-actions bot added the 6.topic: haskell General-purpose, statically typed, purely functional programming language label May 8, 2021
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels May 8, 2021
@maralorn
Copy link
Copy Markdown
Member

maralorn commented May 8, 2021

I like it!

Thx!

@maralorn maralorn merged commit 4fc9319 into NixOS:haskell-updates May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: haskell General-purpose, statically typed, purely functional programming language 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants