2019-05-29 11:33:07 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, glib
|
|
|
|
, glibc
|
|
|
|
, systemd
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
project = "conmon";
|
|
|
|
name = "${project}-${version}";
|
2020-01-07 12:22:35 +00:00
|
|
|
version = "2.0.9";
|
2019-05-29 11:33:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containers";
|
|
|
|
repo = project;
|
|
|
|
rev = "v${version}";
|
2020-01-07 12:22:35 +00:00
|
|
|
sha256 = "0wy3nihif9ih62rlskrjysshfaxdl878fj5ni1zfb9db4nsx6z0m";
|
2019-05-29 11:33:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ glib systemd ] ++
|
|
|
|
stdenv.lib.optionals (!stdenv.hostPlatform.isMusl) [ glibc glibc.static ];
|
|
|
|
|
|
|
|
installPhase = "install -Dm755 bin/${project} $out/bin/${project}";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/containers/conmon;
|
|
|
|
description = "An OCI container runtime monitor";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ vdemeester saschagrunert ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|