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-05-27 01:00:30 +01:00
|
|
|
version = "2.0.17";
|
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-05-27 01:00:30 +01:00
|
|
|
sha256 = "01bicv0qr4aiahkw9cp6igk3jv1fqkbxmsp80nfvq6rxx873v0q7";
|
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;
|
|
|
|
};
|
|
|
|
}
|