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