File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ Or [use Nix](https://nixos.org/nix/download.html) to get a shell with the `clash
116116nix develop . 
117117
118118#  Start a dev shell with a specific GHC version
119- nix develop .# ghc961 
119+ nix develop .# ghc9101 
120120``` 
121121
122122You will need a modern version of nix with support for the new-style ` nix ` 
Original file line number Diff line number Diff line change 3636      # The versions of GHC that we want to be able to build / develop against 
3737      # within the nix environment. Since nix is lazy, only derivations for 
3838      # versions of GHC which are used are actually evaluated. 
39-       ghcVersions =  [  "ghc96 "  "ghc98 "  "ghc910 "  ] ; 
39+       ghcVersions =  [  "ghc964 "  "ghc982 "  "ghc9101 "  ] ; 
4040
4141      # We pick a single version of GHC to use by default within nix. This is 
4242      # probably cleaner than always having N copies of each package / app and 
4343      # being forced to refer to them by their GHC version. 
44-       defaultGhcVersion =  "ghc910 " ; 
44+       defaultGhcVersion =  "ghc9101 " ; 
4545
4646      # Overlays are not per-system, so let's only compute them once. 
4747      # For each version of GHC we produce a `pkgs.clashPackages-ghcVER`, e.g. 
Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ compilerVersion:
1515final : prev :
1616let 
1717  # An overlay with the things we need to change for the specified GHC version. 
18-   ghcOverlay =  import ( ./.  +  "/overlay-${ compilerVersion } .nix" )  { 
18+   # The overlays are named without the GHC minor version, so we need to strip the last character from the version 
19+   strippedMinorVersion =  builtins . substring 0  ( builtins . stringLength compilerVersion  -  1 )  compilerVersion ; 
20+   ghcOverlay =  import ( ./.  +  "/overlay-${ strippedMinorVersion } .nix" )  { 
1921    pkgs =  prev ; 
2022  } ; 
2123
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments