File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -170,11 +170,12 @@ final: prev: {
170
170
inherit mkPkgSet stackage excludeBootPackages ;
171
171
hackage = hackageForStack ;
172
172
} ;
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.
174
174
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 ) } " ;
178
179
179
180
# Creates Cabal local repository from { name, index } set.
180
181
mkLocalHackageRepo = import ../mk-local-hackage-repo final ;
You can’t perform that action at this time.
0 commit comments