Add Haskell client library for MailGun

Whichever package is on nixpkgs right now is broken, so I'm using `fetchGit` and
`callCabal2nix`.

Create Email module exposing a simplifies `send` function that partially applies
some of the configuration options.
This commit is contained in:
William Carroll 2020-07-30 17:05:05 +01:00
parent b6e8389edd
commit 30838b8df7
2 changed files with 52 additions and 0 deletions

View file

@ -1,5 +1,10 @@
let
pkgs = import <nixpkgs> {};
hailgun-src = builtins.fetchGit {
url = "https://bitbucket.org/echo_rm/hailgun.git";
rev = "9d5da7c902b2399e0fcf3d494ee04cf2bbfe7c9e";
};
hailgun = pkgs.haskellPackages.callCabal2nix "hailgun" hailgun-src {};
in pkgs.mkShell {
buildInputs = with pkgs; [
(haskellPackages.ghcWithPackages (hpkgs: with hpkgs; [
@ -11,6 +16,7 @@ in pkgs.mkShell {
hpkgs.cryptonite
hpkgs.uuid
hpkgs.envy
hailgun
]))
];
}