2018-12-07 11:01:28 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkgconfig, glib }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "conmon-${version}";
|
2019-04-05 16:56:37 +02:00
|
|
|
version = "unstable-2019-03-19";
|
|
|
|
rev = "84c860029893e2e2dd71d62231f009c9dcd3c0b4";
|
2018-12-07 11:01:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containers";
|
|
|
|
repo = "conmon";
|
2019-04-05 16:56:37 +02:00
|
|
|
sha256 = "1ydidl3s7s5rfwk9gx0k80nxcixlilxw61g7x0vqsdy3mkylysv5";
|
2018-12-07 11:01:28 +01:00
|
|
|
inherit rev;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-12-10 13:49:11 +01:00
|
|
|
install -D -m 555 bin/conmon $out/bin/conmon
|
2018-12-07 11:01:28 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/containers/conmon;
|
|
|
|
description = "An OCI container runtime monitor";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ vdemeester ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|