From 8c4f6e37479002818bcfe7381cd4e4b47fd2d1fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 26 Apr 2019 01:32:07 +0200 Subject: Start splitting nix environment to smaller files --- pkgs/mtop/default.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkgs/mtop/default.nix (limited to 'pkgs/mtop') diff --git a/pkgs/mtop/default.nix b/pkgs/mtop/default.nix new file mode 100644 index 0000000..4a89430 --- /dev/null +++ b/pkgs/mtop/default.nix @@ -0,0 +1,24 @@ +{ buildPerlPackage, fetchurl, perlPackages, lib }: +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 = with perlPackages; [ DBI DBDmysql Curses ]; + + postInstall = '' + cd "$out" + preConfigure || true + ''; + + meta = with 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; + }; +} -- cgit v1.2.3