Skip to content

Commit af62a32

Browse files
committed
Merge remote-tracking branch 'origin/master' into hkm/combined-derivations
# Conflicts: # builder/make-config-files.nix
2 parents 82cda52 + 3c9acea commit af62a32

File tree

17 files changed

+73
-60
lines changed

17 files changed

+73
-60
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ docs/reference/modules.md
66
result*
77
/nt
88

9+
# https://github.com/nix-community/nix-direnv
10+
.direnv
11+
912
# Created by https://www.gitignore.io/api/haskell,emacs,vim
1013

1114
### Emacs ###

build.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ in rec {
3434
"ghc884" = "3.3.6";
3535
}.compiler-nix-name or "latest";
3636
};
37-
} // pkgs.lib.optionalAttrs (!__elem compiler-nix-name ["ghc921" "ghc922" "ghc923" "ghc924"]) {
3837
hls-latest = tool compiler-nix-name "haskell-language-server" { inherit evalPackages; };
3938
})
4039
);

ci.nix

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
inherit (import ./ci-lib.nix { inherit pkgs; }) dimension platformFilterGeneric filterAttrsOnlyRecursive;
1111
inherit (pkgs.haskell-nix) sources;
1212
nixpkgsVersions = {
13-
"R2111" = "nixpkgs-2111";
1413
"R2205" = "nixpkgs-2205";
1514
"unstable" = "nixpkgs-unstable";
1615
};
@@ -30,17 +29,14 @@
3029
# cabal-install and nix-tools plans. When removing a ghc version
3130
# from here (so that is no longer cached) also remove ./materialized/ghcXXX.
3231
# Update supported-ghc-versions.md to reflect any changes made here.
33-
nixpkgs.lib.optionalAttrs (nixpkgsName == "R2111") {
32+
nixpkgs.lib.optionalAttrs (nixpkgsName == "R2205") {
3433
ghc865 = false;
35-
ghc8107 = true;
36-
} // nixpkgs.lib.optionalAttrs (nixpkgsName == "R2205") {
37-
ghc865 = false;
38-
ghc8107 = true;
34+
ghc8107 = false;
3935
} // nixpkgs.lib.optionalAttrs (nixpkgsName == "unstable") {
4036
ghc865 = false;
4137
ghc884 = false; # Native version is used to boot 9.0.1
4238
ghc8107 = true;
43-
ghc902 = true;
39+
ghc902 = false;
4440
ghc924 = true;
4541
});
4642
systems = nixpkgsName: nixpkgs: compiler-nix-name: nixpkgs.lib.genAttrs (

docs/reference/supported-ghc-versions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ really should use an instance of Nixpkgs provided by `haskell.nix` itself.
2121

2222
| Nixpkgs version | Nixpkgs pinning | GHC version | `compiler-nix-name` | Tested in CI? |
2323
|------------------|--------------------|-------------|-----------------------|---------------|
24-
| 21.11 | `nixpkgs-2111` | 8.6.5 | `ghc865` | No |
25-
| 21.11 | `nixpkgs-2111` | 8.10.7 | `ghc8107` | Yes |
24+
| 22.05 | `nixpkgs-2205` | 8.6.5 | `ghc865` | No |
25+
| 22.05 | `nixpkgs-2205` | 8.10.7 | `ghc8107` | No |
2626
| unstable | `nixpkgs-unstable` | 8.6.5 | `ghc865` | No |
2727
| unstable | `nixpkgs-unstable` | 8.8.4 | `ghc884` | No |
2828
| unstable | `nixpkgs-unstable` | 8.10.7 | `ghc8107` | Yes |
29-
| unstable | `nixpkgs-unstable` | 9.0.2 | `ghc902` | Yes |
29+
| unstable | `nixpkgs-unstable` | 9.0.2 | `ghc902` | No |
3030
| unstable | `nixpkgs-unstable` | 9.2.4 | `ghc924` | Yes |
3131

3232
See [ci.nix](https://github.com/input-output-hk/haskell.nix/blob/master/ci.nix)

docs/tutorials/development.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Emacs to use it. The way I do it is:
175175

176176
## Using `nix repl`
177177

178-
It's sometimes useful to load [Haskell.nix][] in the REPL to explore
178+
It's sometimes useful to load [Haskell.nix][] in the [REPL](https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-repl.html) to explore
179179
attrsets and try examples.
180180

181181
```
@@ -190,19 +190,19 @@ rec {
190190
Load the example file:
191191

192192
```
193-
$ nix repl '<nixpkgs>' example.nix
194-
Welcome to Nix version 2.3pre6631_e58a7144. Type :? for help.
193+
$ nix repl
194+
Welcome to Nix 2.10.3. Type :? for help.
195195
196-
Loading '<nixpkgs>'...
197-
Added 10403 variables.
196+
nix-repl> :l <nixpkgs>
197+
Added 16938 variables.
198198
199-
Loading 'example.nix'...
199+
nix-repl> :l example.nix
200200
Added 2 variables.
201201
202202
nix-repl> lib.take 5 pkgNames
203-
[ "ALUT" "ANum" "Allure" "Boolean" "BoundedChan" ]
203+
[ "AC-Angle" "ALUT" "ANum" "Agda" "Allure" ]
204204
205-
nix-repl>
205+
nix-repl> :q
206206
```
207207

208208
Now that you have `nix-tools` and are able to import [Haskell.nix][],

docs/tutorials/getting-started-flakes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ Add `flake.nix`:
9292
];
9393
pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; };
9494
flake = pkgs.helloProject.flake {
95-
# This adds support for `nix build .#js-unknown-ghcjs-cabal:hello:exe:hello`
95+
# This adds support for `nix build .#js-unknown-ghcjs:hello:exe:hello`
9696
# crossPlatforms = p: [p.ghcjs];
9797
};
9898
in flake // {
9999
# Built by `nix build .`
100-
defaultPackage = flake.packages."hello:exe:hello";
100+
packages.${system}.default = flake.packages."hello:exe:hello";
101101
});
102102
}
103103
```

docs/tutorials/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ IMPORTANT: you *must* do this or you *will* build several copies of GHC!
1414

1515
You can configure Nix to use our binary cache, which is pushed to by CI, so should contain the artifacts that you need.
1616

17-
You need to add the following sections to `/etc/nix/nix.conf` or, if you are a trusted user, `~/.config/nix/nix.conf` (if you don't know what a "trusted user" is, you probably want to do the former).
17+
You need to add the following sections to `/etc/nix/nix.conf` or, if you are a trusted user, `~/.config/nix/nix.conf` (if you don't know what a "trusted user" is, you probably want to do the former). `[...]` denote any existing entries.
1818

1919
```
2020
trusted-public-keys = [...] hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= [...]

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137

138138
packages = ((self.internal.compat { inherit system; }).hix).apps;
139139

140-
devShell = with self.legacyPackages.${system};
140+
devShells.${system}.default = with self.legacyPackages.${system};
141141
mkShell {
142142
buildInputs = [
143143
nixUnstable

0 commit comments

Comments
 (0)