aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-12-20 21:50:20 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-12-20 21:50:20 +0100
commit45cb532fb674aa09c4f3df228ace8b47268284e9 (patch)
tree48c0fc962e989a90e1c123feec09054ae49c5089 /default.nix
parentd0f8088176b96b41bb7fe5911b9a224883b4b9f1 (diff)
downloadNix-45cb532fb674aa09c4f3df228ace8b47268284e9.tar.gz
Nix-45cb532fb674aa09c4f3df228ace8b47268284e9.tar.zst
Nix-45cb532fb674aa09c4f3df228ace8b47268284e9.zip
Add mtop
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/default.nix b/default.nix
index c2fe492..b464031 100644
--- a/default.nix
+++ b/default.nix
@@ -122,6 +122,32 @@ let
122 sha256 = "13yrkcmvh5h5fwnai61sbmqkrjyisz08n62pq0ada2lyyqf7g6b9"; 122 sha256 = "13yrkcmvh5h5fwnai61sbmqkrjyisz08n62pq0ada2lyyqf7g6b9";
123 }; 123 };
124 }; 124 };
125
126 mtop = buildPerlPackage rec {
127 name = "mtop-${version}";
128 version = "0.6.6";
129 src = fetchurl {
130 url = "http://downloads.sourceforge.net/project/mtop/mtop/v${version}/mtop-${version}.tar.gz";
131 sha256 = "0x0x5300b1j9i0xxk8rsrki0pspyzj2vylhzv8qg3l6j26aw0zrf";
132 };
133 outputs = ["out"];
134 buildInputs = [ perlPackages.DBI perlPackages.DBDmysql perlPackages.Curses ];
135
136 postInstall = ''
137 cd "$out"
138 preConfigure || true
139 '';
140 meta = with stdenv.lib; {
141 description = "MySQL top (monitor and examine slow queries)";
142 homepage = http://mtop.sourceforge.net/;
143 license = licenses.gpl3;
144 maintainers = with maintainers; [ { name = "Marc Prewitt"; email = "mprewitt@chelsea.net"; } ];
145 platforms = platforms.unix;
146 };
147 };
148
149# https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh
150# https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks
125in 151in
126 { 152 {
127 inherit nix-prefetch-scripts; 153 inherit nix-prefetch-scripts;
@@ -146,5 +172,6 @@ in
146 inherit profanity; 172 inherit profanity;
147 inherit weechat; 173 inherit weechat;
148 inherit note terminal_velocity; 174 inherit note terminal_velocity;
175 inherit mtop;
149 #inherit nixos; 176 #inherit nixos;
150 } 177 }