release-haskell.nix: generate properly nested attribute sets to fix evaluation with nix-build

This commit is contained in:
Peter Simons 2013-04-19 09:37:33 +02:00
parent 49cbf42556
commit 67acbf8f37

View file

@ -31,7 +31,7 @@ let
map (system: mkSystemJob system ghc pkg) systems;
mkSystemJob = system: ghc: pkg:
pkgs.lib.nameValuePair "${ghc}.${system}" (pkgs.lib.getAttrFromPath ["haskellPackages_${ghc}" "${pkg}"] (pkgsFor system));
pkgs.lib.nameValuePair "${ghc}" (pkgs.lib.setAttrByPath [system] ((pkgs.lib.getAttrFromPath ["haskellPackages_${ghc}" "${pkg}"] (pkgsFor system))));
in