Skip to content

Commit 347b2b4

Browse files
authored
Merge pull request #2212 from digitallyinduced/amitaibu-patch-4
Update mail setup instructions for flake.nix
2 parents d31db98 + 9db0bd4 commit 347b2b4

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Guide/mail.markdown

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ IHP provides email sending functionality via the `ihp-mail` package. It's built
1212

1313
To use mail functionality, you need to add `ihp-mail` to your project dependencies.
1414

15-
Add `ihp-mail` to your `<projectname>.cabal` file:
15+
Add `ihp-mail` to your `flake.nix` file:
1616

17-
```cabal
18-
build-depends:
19-
...
20-
, ihp-mail
17+
```nix
18+
haskellPackages = p: with p; [
19+
# Haskell dependencies go here
20+
p.ihp
21+
cabal-install
22+
base
23+
wai
24+
# Add this:
25+
ihp-mail
2126
```
2227

2328
After adding the dependency, rebuild your project with `devenv up` or restart the development server.

0 commit comments

Comments
 (0)