Add HaskNag as a custom Auron package.
Open, NormalPublic

Description

HaskNag is our nagios alert bot that sits in #haskell-alerts and spits out messages from nagios as they come in. Right now, the live nagios box pulls this from a custom copr repo hosted in Fedora land using a simple RPM I made. But for Auron we can just use cabal2nix or similar and generate a .nix expression from the HaskNag cabal file.

relrod created this task.Jun 14 2014, 12:07 AM
relrod updated the task description. (Show Details)
relrod raised the priority of this task from to Low.
relrod claimed this task.
relrod added a subscriber: relrod.
relrod added a subscriber: austin.Sep 2 2014, 1:59 AM

@austin how do I add cabal packages in auron/src/pkgs that aren't in Hackage? Running into issues with:

{ cabal, fetchgit, irc, network }:

cabal.mkDerivation (self: {
  pname = "hasknag";
  version = "20140901";

  src = fetchgit {
    url = git://github.com/haskell-infra/HaskNag.git;
    rev = "refs/heads/master";
    # TODO: Update this hash.
    sha256 = "1ap319isjg8bafm4jz2krfwvvg11hj5yk0g99a3l1a3a36hpdgzw";
  };
  isLibrary = false;
  isExecutable = true;
  buildDepends = [
    irc
    network
  ];
  meta = {
    homepage = "https://github.com/haskell-infra/HaskNag";
    description = "Haskell nagios IRC announce bot";
    license = self.stdenv.lib.licenses.bsd3;
    platforms = self.ghc.meta.platforms;
  };
})

When I import the file in a role and try to refer to the variable I imported it as in a string (to reference a file path in the systemd config), it says error: cannot coerce a function to a string, at /home/ricky/devel/haskell/infra/auron/src/hosts/roles/nagios.nix:76:16

…which makes me think cabal definitions work differently than regular packages in nixpkgs.

austin raised the priority of this task from Low to Normal.Oct 23 2014, 9:25 PM
austin changed the visibility from "All Users" to "Public (No Login Required)".Oct 25 2014, 3:17 AM
austin changed the edit policy from "All Users" to "Haskell.org Infrastructure (Project)".