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-09-10 12:24:24 +01:00
|
|
|
version = "2.0.21";
|
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-09-10 12:24:24 +01:00
|
|
|
sha256 = "13g436s00bcwzs31qsx5rpgkbbyxd4zvx8mbkq10gkrsv4r04q23";
|
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-08-23 23:42:49 +01:00
|
|
|
passthru.tests = { inherit (nixosTests) cri-o podman; };
|
2020-05-19 01:40:59 +01:00
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|