From 7015c616867dc28ce07765efcb070b9b37b9e696 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 26 Dec 2014 16:03:50 +0100 Subject: [PATCH] journal-mailer: add version 0.1.1.0 --- pkgs/tools/system/journal-mailer/default.nix | 34 ++++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/tools/system/journal-mailer/default.nix diff --git a/pkgs/tools/system/journal-mailer/default.nix b/pkgs/tools/system/journal-mailer/default.nix new file mode 100644 index 000000000000..5de15f8457ad --- /dev/null +++ b/pkgs/tools/system/journal-mailer/default.nix @@ -0,0 +1,34 @@ +# This file was auto-generated by cabal2nix. Please do NOT edit manually! + +{ cabal, baseCompat, fetchgit, hspec, hspecExpectations +, libsystemdJournal, mimeMail, mtl, pipes, pipesBytestring +, pipesSafe, QuickCheck, silently, stringConversions, temporary +, text, time, unorderedContainers, yaml +}: + +cabal.mkDerivation (self: { + pname = "journal-mailer"; + version = "0.1.1.0"; + src = fetchgit { + url = "https://github.com/zalora/journal-mailer.git"; + sha256 = "cd28b39746fd8a9652eb5d4dc5dcfd66704826d1ee466572fb47925b054cd07b"; + rev = "ab1b4df09e7ddbe139959374437331cdddf754b2"; + }; + isLibrary = false; + isExecutable = true; + buildDepends = [ + baseCompat libsystemdJournal mimeMail pipes pipesBytestring + pipesSafe stringConversions text time unorderedContainers yaml + ]; + testDepends = [ + baseCompat hspec hspecExpectations libsystemdJournal mimeMail mtl + pipes pipesBytestring pipesSafe QuickCheck silently + stringConversions temporary text time unorderedContainers yaml + ]; + meta = { + description = "Sends out emails for every severe message logged to systemd's journal"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + maintainers = [ self.stdenv.lib.maintainers.tv ]; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index c9d1fc95f3b8..a9776377bd3c 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -3178,6 +3178,8 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in jailbreakCabal = callPackage ../development/tools/haskell/jailbreak-cabal {}; + journal-mailer = callPackage ../tools/system/journal-mailer {}; + keter = callPackage ../development/tools/haskell/keter {}; lhs2tex = callPackage ../tools/typesetting/lhs2tex {};