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-04-03 07:27:56 +00:00
|
|
|
version = "2.0.15";
|
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-04-03 07:27:56 +00:00
|
|
|
sha256 = "1fshcmnfqzbagzcrh5nxw7pi0dd60xpq47a2lzfghklqhl1h0b5i";
|
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;
|
2020-04-03 10:11:24 +00:00
|
|
|
maintainers = with maintainers; [ ] ++ teams.podman.members;
|
2019-05-29 11:33:07 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|