diff options
author | Joris | 2016-02-22 11:55:47 +0100 |
---|---|---|
committer | Joris | 2016-02-22 11:55:47 +0100 |
commit | e66ea0b49c8f7202114df366668598026f211eba (patch) | |
tree | 698e57f45328f38a770de935ed0ab9bc39ebd832 | |
parent | e6269b6750d50c2f72bf534e32c020f0554705a7 (diff) |
Use nix to manage dependancies
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | README.md | 13 | ||||
-rw-r--r-- | birthday.cabal | 15 |
3 files changed, 18 insertions, 14 deletions
@@ -1,7 +1,5 @@ +shell.nix birthdates.csv -.cabal-sandbox -cabal.sandbox.config dist config.txt -deploy logs @@ -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 |