34 lines
801 B
Nix
34 lines
801 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, glib
|
|
, glibc
|
|
, systemd
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "conmon";
|
|
version = "2.0.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containers";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1h5mxs8wrsm1q48fmd7slpa0j6g6kjbm1mcizyhk7xz1xrbnicc1";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ glib systemd ] ++
|
|
stdenv.lib.optionals (!stdenv.hostPlatform.isMusl) [ glibc glibc.static ];
|
|
|
|
installPhase = "install -Dm755 bin/${pname} $out/bin/${pname}";
|
|
|
|
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;
|
|
};
|
|
}
|