File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -170,11 +170,12 @@ final: prev: {
170170 inherit mkPkgSet stackage excludeBootPackages ;
171171 hackage = hackageForStack ;
172172 } ;
173- # Pick a recent LTS snapshot to be our "default" package set.
173+ # Pick the most recent LTS snapshot to be our "default" package set.
174174 haskellPackages =
175- if final . stdenv . targetPlatform . isAarch64 && final . stdenv . buildPlatform . isAarch64
176- then snapshots . "lts-15.13"
177- else snapshots . "lts-14.13" ;
175+ let
176+ versions = final . lib . mapAttrsToList
177+ ( name : _ : final . lib . removePrefix "lts-" name ) snapshots ;
178+ in snapshots . "lts-${ final . lib . head ( final . lib . sort final . lib . versionAtLeast versions ) } " ;
178179
179180 # Creates Cabal local repository from { name, index } set.
180181 mkLocalHackageRepo = import ../mk-local-hackage-repo final ;
You can’t perform that action at this time.
0 commit comments