aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--README.md13
-rw-r--r--birthday.cabal15
3 files changed, 18 insertions, 14 deletions
diff --git a/.gitignore b/.gitignore
index 22c0c69..5ac0a89 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,7 +1,5 @@
+shell.nix
birthdates.csv
-.cabal-sandbox
-cabal.sandbox.config
dist
config.txt
-deploy
logs
diff --git a/README.md b/README.md
index 148d4aa..41f4a36 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,12 @@ Birthday
Notify by email if there are any birthday today or next week. This program is
intended to be launched everyday.
+## Required dependencies
+
+- `cabal2nix`
+- `nix-shell`
+- `cabal-install`
+
Usage
-----
@@ -32,10 +38,9 @@ day-for-next-week-notification = Friday
Launch the following commands:
```
-cabal sandbox init
-cabal instal --only-dependencies
-cabal build
-./dist/build/birthday/birthday
+cabal2nix --shell . > shell.nix
+nix-shell -I ~ --command 'cabal configure'
+cabal run
```
Notification
diff --git a/birthday.cabal b/birthday.cabal
index cd8393e..a79f2b3 100644
--- a/birthday.cabal
+++ b/birthday.cabal
@@ -1,5 +1,6 @@
-name: Birthday
+name: birthday
version: 1.0.0
+license: GPL-3
homepage: https://github.com/guyonvarch/birthday
author: Joris Guyonvarch
build-type: Simple
@@ -10,9 +11,9 @@ executable birthday
hs-source-dirs: src
ghc-options: -Wall -fwarn-incomplete-uni-patterns
build-depends: base
- , text == 1.2.1.3
- , mime-mail == 0.4.11
- , time == 1.5.0.1
- , ConfigFile == 1.1.4
- , transformers == 0.4.3.0
- , parsec == 3.1.9
+ , text
+ , mime-mail
+ , time
+ , ConfigFile
+ , transformers
+ , parsec