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-16 23:54:40 +01:00
|
|
|
version = "2.0.12";
|
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-16 23:54:40 +01:00
|
|
|
sha256 = "0vf88j582hv6dabmk3pnmbn60pp5w7hja2wmrhqq8wm2y07djhhi";
|
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;
|
|
|
|
};
|
|
|
|
}
|