Update atop

This commit is contained in:
Michael Raskin 2014-09-24 13:32:40 +04:00
parent ea12fb639b
commit af5d18edb5
2 changed files with 10 additions and 2 deletions

View File

@ -1,12 +1,12 @@
{stdenv, fetchurl, zlib, ncurses}: {stdenv, fetchurl, zlib, ncurses}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.0.2"; version = "2.1-1";
name = "atop-${version}"; name = "atop-${version}";
src = fetchurl { src = fetchurl {
url = "http://www.atoptool.nl/download/atop-${version}.tar.gz"; url = "http://www.atoptool.nl/download/atop-${version}.tar.gz";
sha256 = "029lfa2capz1lg3m3rnyrgb8v6jm4znin84vjh2f0zkwvvhdn856"; sha256 = "17wqqyym4d02cqmn1l1asah3sld939nlkc84g4ad939kpkzd98ir";
}; };
buildInputs = [zlib ncurses]; buildInputs = [zlib ncurses];
@ -27,6 +27,10 @@ stdenv.mkDerivation rec {
sed -e '/chkconfig/d' -i Makefile sed -e '/chkconfig/d' -i Makefile
''; '';
preInstall = ''
mkdir -p "$out"/{bin,sbin}
'';
meta = { meta = {
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [raskin]; maintainers = with stdenv.lib.maintainers; [raskin];

View File

@ -0,0 +1,4 @@
url http://atoptool.nl/downloadatop.php
version_link '[.]tar[.]'
version '[^0-9]*[-.]([0-9]([-0-9.]*[0-9])?)[.].*' '\1'
minimize_overwrite