2019-05-29 12:33:07 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2020-03-04 21:50:51 +00:00
|
|
|
, pkg-config
|
2019-05-29 12:33:07 +01:00
|
|
|
, glib
|
|
|
|
, glibc
|
|
|
|
, systemd
|
2020-05-19 01:40:59 +01:00
|
|
|
, nixosTests
|
2019-05-29 12:33:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-03-04 21:50:51 +00:00
|
|
|
pname = "conmon";
|
2020-07-16 03:12:34 +01:00
|
|
|
version = "2.0.19";
|
2019-05-29 12:33:07 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containers";
|
2020-03-04 21:50:51 +00:00
|
|
|
repo = pname;
|
2019-05-29 12:33:07 +01:00
|
|
|
rev = "v${version}";
|
2020-07-16 03:12:34 +01:00
|
|
|
sha256 = "005sz8aimbfm12d99q79yvsqczxbvbbgc725pavcbly3k1qva207";
|
2019-05-29 12:33:07 +01:00
|
|
|
};
|
|
|
|
|
2020-03-04 21:50:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-19 01:14:41 +01:00
|
|
|
buildInputs = [ glib systemd ]
|
|
|
|
++ stdenv.lib.optionals (!stdenv.hostPlatform.isMusl) [ glibc glibc.static ];
|
2019-05-29 12:33:07 +01:00
|
|
|
|
2020-04-19 01:14:41 +01:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2019-05-29 12:33:07 +01:00
|
|
|
|
2020-05-19 01:40:59 +01:00
|
|
|
passthru.tests.podman = nixosTests.podman;
|
|
|
|
|
2019-05-29 12:33:07 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-04 21:50:51 +00:00
|
|
|
homepage = "https://github.com/containers/conmon";
|
2019-05-29 12:33:07 +01:00
|
|
|
description = "An OCI container runtime monitor";
|
|
|
|
license = licenses.asl20;
|
2020-04-03 11:11:24 +01:00
|
|
|
maintainers = with maintainers; [ ] ++ teams.podman.members;
|
2019-05-29 12:33:07 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|