4dd4f85430
The smtps-gmail upgrade causes a build failure:
/nix/store/8h8mravvbcm09rhybxq7hi4459lkssg8-stdenv/setup: line 937: ./Setup: No such file or directory
This reverts commit a7c80c11e5
.
24 lines
667 B
Nix
24 lines
667 B
Nix
{ cabal, base64String, cprngAes, network, tlsExtra, utf8String
|
|
}:
|
|
|
|
cabal.mkDerivation (self: {
|
|
pname = "smtps-gmail";
|
|
version = "1.0.0";
|
|
sha256 = "0kv5m8rg5z1iic10av3bscdygnph1iab4b22sq3hmx6a93abqkc2";
|
|
isLibrary = true;
|
|
isExecutable = true;
|
|
buildDepends = [
|
|
base64String cprngAes network tlsExtra utf8String
|
|
];
|
|
meta = {
|
|
homepage = "https://github.com/enzoh/smtps-gmail";
|
|
description = "Gmail API";
|
|
license = self.stdenv.lib.licenses.bsd3;
|
|
platforms = self.ghc.meta.platforms;
|
|
};
|
|
# adding a Setup script as it's needed by nix
|
|
preConfigure = ''
|
|
printf "import Distribution.Simple\nmain = defaultMain\n" > Setup.hs
|
|
'';
|
|
})
|