at 18.03-beta 25 lines 774 B view raw
1{ stdenv, fetchurl, ncurses, glib, pkgconfig, gtk2 }: 2 3stdenv.mkDerivation rec { 4 name = "latencytop-0.5"; 5 6 patchPhase = "sed -i s,/usr,$out, Makefile"; 7 preInstall = "mkdir -p $out/sbin"; 8 9 src = fetchurl { 10 urls = [ "http://latencytop.org/download/${name}.tar.gz" 11 "http://dbg.download.sourcemage.org/mirror/latencytop-0.5.tar.gz" ]; 12 sha256 = "1vq3j9zdab6njly2wp900b3d5244mnxfm88j2bkiinbvxbxp4zwy"; 13 }; 14 15 nativeBuildInputs = [ pkgconfig ]; 16 buildInputs = [ ncurses glib gtk2 ]; 17 18 meta = { 19 homepage = http://latencytop.org; 20 description = "Tool to show kernel reports on latencies (LATENCYTOP option)"; 21 license = stdenv.lib.licenses.gpl2; 22 maintainers = [ stdenv.lib.maintainers.viric ]; 23 platforms = stdenv.lib.platforms.linux; 24 }; 25}