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