4fc29cb41f
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
36 lines
830 B
Nix
36 lines
830 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, glib
|
|
, glibc
|
|
, systemd
|
|
, nixosTests
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "conmon";
|
|
version = "2.0.17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containers";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "01bicv0qr4aiahkw9cp6igk3jv1fqkbxmsp80nfvq6rxx873v0q7";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ glib systemd ]
|
|
++ stdenv.lib.optionals (!stdenv.hostPlatform.isMusl) [ glibc glibc.static ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
passthru.tests.podman = nixosTests.podman;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://github.com/containers/conmon";
|
|
description = "An OCI container runtime monitor";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ] ++ teams.podman.members;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|