2018-12-07 11:01:28 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkgconfig, glib }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "conmon-${version}";
|
2019-02-28 11:25:24 +01:00
|
|
|
version = "unstable-2019-02-15";
|
|
|
|
rev = "cc2b49590a485da9bd358440f92f219dfd6b230f";
|
2018-12-07 11:01:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containers";
|
|
|
|
repo = "conmon";
|
2019-02-28 11:25:24 +01:00
|
|
|
sha256 = "13f5as4a9y6nkmr7cg0n27c2hfx9pkr75fxq2m0hlpcwhaardbm7";
|
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;
|
|
|
|
};
|
|
|
|
}
|