2014-03-31 06:51:14 +00:00
|
|
|
{ cabal, base64String, cprngAes, network, tlsExtra, utf8String
|
2014-02-11 10:56:47 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
cabal.mkDerivation (self: {
|
|
|
|
pname = "smtps-gmail";
|
2014-03-31 06:51:14 +00:00
|
|
|
version = "1.0.0";
|
|
|
|
sha256 = "0kv5m8rg5z1iic10av3bscdygnph1iab4b22sq3hmx6a93abqkc2";
|
|
|
|
isLibrary = true;
|
|
|
|
isExecutable = true;
|
2014-02-11 10:56:47 +00:00
|
|
|
buildDepends = [
|
2014-03-31 06:51:14 +00:00
|
|
|
base64String cprngAes network tlsExtra utf8String
|
2014-02-11 10:56:47 +00:00
|
|
|
];
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/enzoh/smtps-gmail";
|
2014-03-31 06:51:14 +00:00
|
|
|
description = "Gmail API";
|
2014-02-11 10:56:47 +00:00
|
|
|
license = self.stdenv.lib.licenses.bsd3;
|
|
|
|
platforms = self.ghc.meta.platforms;
|
|
|
|
};
|
2014-03-31 06:51:14 +00:00
|
|
|
# adding a Setup script as it's needed by nix
|
|
|
|
preConfigure = ''
|
|
|
|
printf "import Distribution.Simple\nmain = defaultMain\n" > Setup.hs
|
|
|
|
'';
|
2014-02-11 10:56:47 +00:00
|
|
|
})
|