about summary refs log tree commit diff
path: root/pkgs/tools/system/monit/default.nix
blob: b8b2e2cbcdcf31ee8141d28714d634686691075a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
a :  
let 
  s = import ./src-for-default.nix;
  buildInputs = with a; [
    bison flex openssl
  ];
in
rec {
  src = a.fetchUrlFromSrcInfo s;

  inherit (s) name;
  inherit buildInputs;

  /* doConfigure should be removed if not needed */
  phaseNames = ["preConfigure" "doConfigure" "doMakeInstall"];
  configureFlags = [
    "--with-ssl-incl-dir=${a.openssl}/include"
    "--with-ssl-lib-dir=${a.openssl}/lib"
    ];
  preConfigure = a.fullDepEntry (''
    sed -e 's@/bin/@@' -i Makefile.in
  '') ["doUnpack" "minInit"];
      
  meta = {
    description = "Monitoring system";
    maintainers = [
      a.lib.maintainers.raskin
    ];
  };
}