2014-09-11 22:20:02 +02:00
|
|
|
{ lib, stdenv, fetchurl, python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-11-10 20:11:54 +01:00
|
|
|
name = "smem-${version}";
|
|
|
|
version = "1.5";
|
2014-09-11 22:20:02 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-11-10 20:11:54 +01:00
|
|
|
url = "https://selenic.com/repo/smem/archive/${version}.tar.bz2";
|
|
|
|
sha256 = "19ibv1byxf2b68186ysrgrhy5shkc5mc69abark1h18yigp3j34m";
|
2014-09-11 22:20:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ python ];
|
|
|
|
|
2018-11-10 20:11:54 +01:00
|
|
|
makeFlags = [ "smemcap" ];
|
2014-09-11 22:20:02 +02:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2018-11-10 20:11:54 +01:00
|
|
|
install -Dm555 -t $out/bin/ smem smemcap
|
|
|
|
install -Dm444 -t $out/share/man/man8/ smem.8
|
2014-09-11 22:20:02 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2018-11-10 20:11:54 +01:00
|
|
|
homepage = https://www.selenic.com/smem/;
|
2014-09-11 22:20:02 +02:00
|
|
|
description = "A memory usage reporting tool that takes shared memory into account";
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
2018-08-04 18:32:01 +02:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2014-09-11 22:20:02 +02:00
|
|
|
};
|
|
|
|
}
|