Skip to content

Commit 08e36aa

Browse files
committed
Merge remote-tracking branch 'upstream/master' into support-revisions-and-more
2 parents 4805269 + 146a785 commit 08e36aa

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

docs/tutorials/getting-started-flakes.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ start setting up your project.
1414

1515
## Using `flake init` and `nix`
1616

17-
The `flake init` command create an example `hello` package from hackage
18-
containing an `flake.nix` and `nix/hix.nix` file. The project can be used with
19-
regular `nix` tools.
17+
The following `nix flake init` command creates a template `hello` package containing a `flake.nix` and `nix/hix.nix` file. The project can be used with
18+
regular `nix` tools. This template is defined in the [NixOS/templates repository](https://github.com/NixOS/templates/tree/master/haskell.nix).
2019

2120
```bash
2221
nix flake init --template templates#haskell-nix --impure

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.

lib/call-cabal-project-to-nix.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ let
224224
then inputMap."${repoData.url}/${repoData.rev or repoData.ref}"
225225
else if inputMap ? ${repoData.url}
226226
then
227-
(if inputMap.${repoData.url}.rev != repoData.ref
228-
then throw "${inputMap.${repoData.url}.rev} may not match ${repoData.ref} for ${repoData.url} use \"${repoData.url}/${repoData.ref}\" as the inputMap key if ${repoData.ref} is a branch or tag that points to ${inputMap.${repoData.url}.rev}."
227+
(if inputMap.${repoData.url}.rev != (repoData.rev or repoData.ref)
228+
then throw "${inputMap.${repoData.url}.rev} may not match ${repoData.rev or repoData.ref} for ${repoData.url} use \"${repoData.url}/${repoData.rev or repoData.ref}\" as the inputMap key if ${repoData.rev or repoData.ref} is a branch or tag that points to ${inputMap.${repoData.url}.rev}."
229229
else inputMap.${repoData.url})
230230
else if repoData.sha256 != null
231231
then fetchgit { inherit (repoData) url sha256; rev = repoData.rev or repoData.ref; }

0 commit comments

Comments
 (0)