nixpkgs-suyu/pkgs/applications/virtualization/conmon/default.nix

34 lines
802 B
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, pkg-config
, glib
, glibc
, systemd
}:
stdenv.mkDerivation rec {
pname = "conmon";
version = "2.0.13";
src = fetchFromGitHub {
owner = "containers";
repo = pname;
rev = "v${version}";
sha256 = "1cp9hhanndr6c71g4hdxfgwk348vnnlgijkr12f7qmd5acwfl7jc";
};
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; [ vdemeester saschagrunert ];
platforms = platforms.linux;
};
}