- mypkgs.mtop = buildPerlPackage rec {
- name = "mtop-${version}";
- version = "0.6.6";
- src = fetchurl {
- url = "http://downloads.sourceforge.net/project/mtop/mtop/v${version}/mtop-${version}.tar.gz";
- sha256 = "0x0x5300b1j9i0xxk8rsrki0pspyzj2vylhzv8qg3l6j26aw0zrf";
- };
- outputs = ["out"];
- buildInputs = [ perlPackages.DBI perlPackages.DBDmysql perlPackages.Curses ];
-
- postInstall = ''
- cd "$out"
- preConfigure || true
- '';
- meta = with stdenv.lib; {
- description = "MySQL top (monitor and examine slow queries)";
- homepage = http://mtop.sourceforge.net/;
- license = licenses.gpl3;
- maintainers = with maintainers; [ { name = "Marc Prewitt"; email = "mprewitt@chelsea.net"; } ];
- platforms = platforms.unix;
- };
- };
-
- mypkgs.tiv = buildPerlPackage rec {
- name = "tiv-${version}";
- version = "2015";
- src = fetchurl {
- url = "http://xyne.archlinux.ca/projects/tiv/src/tiv-${version}.tar.xz";
- sha256 = "1vq073v7z7vmcd57lhs4rf4jasji69cpjgkz4dykp94a77p1qq90";
- };
- outputs = ["out"];
- buildInputs = [ perlPackages.PerlMagick ];
- perlPreHookScript = ./hooks/tiv_builder.sh;
- perlPreHook = ''
- source ${perlPreHookScript}
- '';
- installPhase = ''
- install -Dm755 tiv "$out/bin/tiv"
- '';
- };
-
- mypkgs.cnagios = stdenv.mkDerivation (fetchedGithub ./fetched/cnagios.json // rec {
- configureFlags = [
- "--with-etc-dir=/etc/cnagios"
- "--with-var-dir=/var/lib/naemon"
- "--with-nagios-data=4"
- ];
-
- prePatch = ''
- sed -i -e "s/-lcurses/-lncurses/" Makefile.in
- '';
- installPhase = ''
- install -dm755 $out/share/doc/cnagios
- install -Dm644 cnagiosrc $out/share/doc/cnagios/
- install -Dm644 cnagios.help $out/share/doc/cnagios/
- install -Dm644 cnagios.pl $out/share/doc/cnagios/
- install -dm755 $out/bin
- install -Dm755 cnagios $out/bin/
- '';
- propagatedBuildInputs = [ perl ncurses ];
- });
-
- mypkgs.nagios-cli = python2Packages.buildPythonApplication (fetchedGithub ./fetched/nagios-cli.json);
-
- mypkgs.pg_activity = with python2Packages; buildPythonApplication (fetchedGithub ./fetched/pg_activity.json // rec {
- propagatedBuildInputs = [ psycopg2 psutil ];
- });
-
- mypkgs.pgloader = stdenv.mkDerivation (fetchedGithub ./fetched/pgloader.json // rec {
- buildInputs = [ sbcl cacert sqlite freetds libzip curl git openssl makeWrapper ];
- LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ sqlite libzip curl git openssl freetds ];
- buildPhase = ''
- export PATH=$PATH:$out/bin
- export HOME=$TMPDIR
- make pgloader
- '';
- dontStrip = true;
- enableParallelBuilding = false;
- installPhase = ''
- install -Dm755 build/bin/pgloader "$out/bin/pgloader"
- wrapProgram $out/bin/pgloader --prefix LD_LIBRARY_PATH : "${LD_LIBRARY_PATH}"
- '';
- });