2019-05-29 11:33:07 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2020-03-04 21:50:51 +00:00
|
|
|
, pkg-config
|
2019-05-29 11:33:07 +00:00
|
|
|
, glib
|
|
|
|
, glibc
|
|
|
|
, systemd
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-03-04 21:50:51 +00:00
|
|
|
pname = "conmon";
|
2020-03-20 22:15:42 +00:00
|
|
|
version = "2.0.14";
|
2019-05-29 11:33:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containers";
|
2020-03-04 21:50:51 +00:00
|
|
|
repo = pname;
|
2019-05-29 11:33:07 +00:00
|
|
|
rev = "v${version}";
|
2020-03-20 22:15:42 +00:00
|
|
|
sha256 = "1h5mxs8wrsm1q48fmd7slpa0j6g6kjbm1mcizyhk7xz1xrbnicc1";
|
2019-05-29 11:33:07 +00:00
|
|
|
};
|
|
|
|
|
2020-03-04 21:50:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-05-29 11:33:07 +00:00
|
|
|
buildInputs = [ glib systemd ] ++
|
|
|
|
stdenv.lib.optionals (!stdenv.hostPlatform.isMusl) [ glibc glibc.static ];
|
|
|
|
|
2020-03-04 21:50:51 +00:00
|
|
|
installPhase = "install -Dm755 bin/${pname} $out/bin/${pname}";
|
2019-05-29 11:33:07 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-03-04 21:50:51 +00:00
|
|
|
homepage = "https://github.com/containers/conmon";
|
2019-05-29 11:33:07 +00:00
|
|
|
description = "An OCI container runtime monitor";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ vdemeester saschagrunert ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|